Skip to content

dr1408/eviltwin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nethunter AP

This eviltwin script lets you run a fake access point portal with handshake verification using a virtually created AP on Kali Nethunter. You only need one external adapter for deauthing the original network.

Dependencies

apt install aircrack-ng hostapd dnsmasq php python3 python3-pip ethtool dsniff iw tshark xtables-addons-common
pip3 install flask requests

Usage

git clone https://github.com/dr1408/eviltwin.git
cd eviltwin

iptables

update-alternatives --config iptables
choose iptables-legacy

IMPORTANT: One-Time iptables Setup

Evil twin attacks modify iptables rules. To prevent breaking your Android hotspot:

  1. Reboot your phone
  2. Create a clean backup:
    iptables-save | grep -v "bpf" > /sdcard/iptables-default

the script automatically restore this backup on exit to restore android hotspot functionality.

python3 attack.py

EvilTwin NetHunter module

Nethunter now automates saving of the default iptables on the first install and reboot of the phone so no need to run iptables-save manually.

after running setup in the module gui :

Plug adapter > turn off wifi > turn on cellular > select adapter as monitor interface > scan network and choose a target network > virtual ap from internal wlan0 or second adapter as ap > auto detect internet source > start attack

Attack Demo

demo.mp4

Credits

· @yesimxev - Internet sharing rules · @ikteach - Script editing · @Justxd22 - Handshake verification methods and portals Check his repo: https://github.com/Justxd22/Eviltwin-Huawei_XD

Legal Disclaimer

This tool is provided for educational and authorized security testing purposes only.

  • Use only on networks you own or have written permission to test
  • Unauthorized access to computer networks is illegal
  • The author is not responsible for any misuse or damage caused by this tool
  • Users assume full responsibility for their actions By using this tool, you agree to use it ethically and legally.

About

Nethunter eviltwin script to open fake portal with handshake verification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors