# C41N | An Automated Rogue Access Point Setup Tool

**URL:** <https://onehack.st/t/c41n-an-automated-rogue-access-point-setup-tool/180678>\
**Category:** Tools & Scripts\
**Tags:** tools, hacking, freebies, business, hosting\
**Created:** [April 28, 2021, 1:01am UTC](https://onehack.st/t/c41n-an-automated-rogue-access-point-setup-tool/180678 "2021-04-28T01:01:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Astrid](https://onehack.st/user_avatar/onehack.st/astrid/32/174869_2.png) [@Astrid](https://onehack.st/u/Astrid)\
**Post date:** [April 28, 2021, 1:01am UTC](https://onehack.st/t/c41n-an-automated-rogue-access-point-setup-tool/180678/1 "2021-04-28T01:01:58Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/0/2/02efcb96a020e3fcf5658f16f59bc85db7ae31d5.jpeg)

**c41n** is an automated Rogue Access Point setup tool.

**c41n** provides automated setup of several types of Rogue Access Points, and Evil Twin attacks. **c41n** sets up an access point with user defined characteristics (interface, name and channel for the access point), sets up DHCP server for the access point, and provides user with abilities of HTTP traffic sniffing, or Captive Portal setup with credential sniffing.

**Installation:**

Installation consists of cloning the repo, running a script that will install dependencies , and making **c41n** executable. Script only works with apt package manager (Debian based distributions).

```auto
# git clone https://github.com/MS-WEB-BN/c41n/# cd c41n# sudo bash install.sh# sudo chmod +x c41n

```

Dependencies can also be installed manually (without the script) with apt-get package manager (Debian based distributions):

```auto
# sudo apt-get install net-tools hostapd dnsmasq tcpflow

```

**Usage:**

**c41n** can be run in interactive, and quick mode.

To run **c41n** in _ **interactive mode** _:

```auto
# ./c41n

```

_ **Quick mode** _:

_Start Rogue AP_:

```auto
# ./c41n <AP interface> <internet connection interface> <AP name> <AP channel>

```

_Start Rogue AP + sniffing HTTP traffic_:

```auto
# ./c41n sniff <AP interface> <internet connection interface> <AP name> <AP channel>

```

_Start Rogue AP + captive portal_:

```auto
# ./c41n captive <ap interface> <internet connection interface> <AP name> <AP channel> <redirection parameter>

```

Redirection parameter can have the following values:

```auto
0: Redirects only predefined domains.1: Redirects all traffic.domains_file: Redirects predefined domains + domains from specified file (separated by new line).

```

_ **Examples** _:

[**1**] Start Rogue AP on wlan0 interface, route traffic from eth0 interface, AP name: ‘AP’, AP channel: ‘1’

```auto
# ./c41n wlan0 eth0 AP 1

```

[**2**] Start Rogue AP and sniff HTTP traffic on wlan0 interface, route traffic from wlan1 interface, AP name: ‘Access\_Point’, AP channel: ‘6’

```auto
# ./c41n sniff wlan0 wlan1 Access_Point 6

```

[**3**] Start Rogue AP with captive portal on wlp6s0 interface, redirect default domains and domains from custom file (/home/name/Documents/domains.txt), route traffic from eth1 interface, AP name: ‘router’, AP channel: ‘9’

```auto
# ./c41n captive wlp6s0 eth1 router 9 /home/name/Documents/domains.txt

```

**Disclaimer:**

Any actions and/or activities done by using **h4rpy** are solely your responsibility. The misuse of **h4rpy** can result in criminal charges brought against the persons in question. The author will not be held responsible in the event any criminal charges be brought against any individuals misusing **h4rpy** to break the law.

**Contribution note:**

Each of the scripts/tools/programs hosted here are made as a part of MS-WEBs cyber security courses, aimed toward beginners, therefore are purely educational and/or demonstrational, and are meant to stay that way, even if wider audience and real world usage are reached. All pauses present in code are there so that the user can read the output, so the action that is running is understood.

All pull requests removing such pauses, or parts of output are against the educational purpose, and will not be accepted.

_To remove sleeps from **c41n** use:_

```auto
sed -i '/sleep/d' ./c41n

```

## GitHub:

> **[GitHub - MS-WEB-BN/c41n: Automated rogue access point setup tool.](https://github.com/MS-WEB-BN/c41n)**
>
> Automated rogue access point setup tool.
