All Projects → lucascouto → krackattack-all-zero-tk-key

lucascouto / krackattack-all-zero-tk-key

Licence: MIT license
This code has base on a code made by Mathy Vanhoef (https://github.com/vanhoefm/krackattacks-poc-zerokey). Please, take a look on README.md. Enjoy!

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to krackattack-all-zero-tk-key

wifi-pentesting-guide
WiFi Penetration Testing Guide
Stars: ✭ 105 (+123.4%)
Mutual labels:  wifi-network
wap
give guests access to your WiFi with style
Stars: ✭ 17 (-63.83%)
Mutual labels:  wifi-network
wifisdk
Free WiFi Connect SDK
Stars: ✭ 28 (-40.43%)
Mutual labels:  wifi-network
Easy-HotSpot
Easy HotSpot is a super easy WiFi hotspot user management utility for Mikrotik RouterOS based Router devices. Voucher printing in 6 ready made templates are available. Can be installed in any PHP/MySql enabled servers locally or in Internet web servers. Uses the PHP PEAR2 API Client by boenrobot.
Stars: ✭ 45 (-4.26%)
Mutual labels:  wifi-network
wifi-bf
A (completely native) python3 wifi brute-force attack using the 100k most common passwords (2021)
Stars: ✭ 20 (-57.45%)
Mutual labels:  wifi-network
Airscript-ng
A python script to simplify the process of auditing wireless networks.
Stars: ✭ 83 (+76.6%)
Mutual labels:  wifi-network
Wifi Password
Quickly fetch your WiFi password and if needed, generate a QR code of your WiFi to allow phones to easily connect
Stars: ✭ 2,325 (+4846.81%)
Mutual labels:  wifi-network
Connectivity
🌐 Makes Internet connectivity detection more robust by detecting Wi-Fi networks without Internet access.
Stars: ✭ 1,476 (+3040.43%)
Mutual labels:  wifi-network
Wifi-Cracker
Wifi Cracking
Stars: ✭ 128 (+172.34%)
Mutual labels:  wifi-network
scale-network
SCaLE's on-site expo network configurations, wifi, tooling, and scripts
Stars: ✭ 13 (-72.34%)
Mutual labels:  wifi-network
connection checker
Android library for checking the internet connectivity of a device.
Stars: ✭ 26 (-44.68%)
Mutual labels:  wifi-network
WiFiConnect
WiFi connection manager for ESP32 and ESP8266 with OLED support
Stars: ✭ 28 (-40.43%)
Mutual labels:  wifi-network
Wi-Fi Study Public
The study resources of Wi-Fi protocols and resources.
Stars: ✭ 357 (+659.57%)
Mutual labels:  wifi-network
LANScanner
Easily scan a Wi-Fi network for devices using Swift
Stars: ✭ 39 (-17.02%)
Mutual labels:  wifi-network
WifiManager
简化Android Wifi开发,已实现常用的功能,比如获取WiFi管理,WiFi列表,断开、清除或者连接WiFi。
Stars: ✭ 133 (+182.98%)
Mutual labels:  wifi-network
WifiConnector
Library to manage Wi-Fi Connections on Android
Stars: ✭ 78 (+65.96%)
Mutual labels:  wifi-network
network-interface
Operating system network-related library for Node.js is used to obtain hardware status and network environment changes, etc.
Stars: ✭ 24 (-48.94%)
Mutual labels:  wifi-network

Warning!

This code only works with clients that install the all-zero TK in a KraCK attack! Please, use this tool to verify if the client is vunarable to the attack.

Environment tested

This code was tested with the following equipaments:

  • Attacker:

    • Sony Vaio SVT13134CXS
    • SO: Kali Linux
    • Wi-Fi NIC: Qualcomm Atheros AR9485. Driver: ath9k
    • Wi-Fi usb adapter: TP-LINK TL-WN727N. Driver: mt7601u
    • Android smartphone connected via usb to provide 3g internet
  • Client Attacked:

    • Sony Vaio VGN-FW370J
    • SO: Ubuntu 17.10
    • wpa_supplicant v2.4 (2.4-0ubuntu6 am64)
  • Access Point:

    • D-Link DIR-809
    • Hardware Version: A2
    • Firmware Version: 1.08
    • Configured with 50% TX power and channel 1

Prerequisites

Install the following dependencies on Kali Linux:

$sudo apt update
$sudo apt install libnl-3-dev libnl-genl-3-dev pkg-config libssl-dev net-tools git sysfsutils python-scapy python-pycryptodome

Install the following python package:

$pip install --user mitm_channel_based

Then disable hardware encryption using the script ./disable-hwcrypto.sh. It's recommended to reboot after executing this script. After plugging in your Wi-Fi NIC, use systool -vm ath9k_htc or similar to confirm the nohwcript/.. param has been set.

Tool usage

Below, I show an example of tool command line usage and then explain the arguments:

$sudo ./krackattack/krack_all_zero_tk.py wlan1 wlan0 usb0 "Familia Couto" -t 00:21:5d:ea:fe:be
  • wlan1: interface that listens and injects packets on the real channel
  • wlan0: interface that runs the Rogue AP
  • usb0: interface in which is provided internet access
  • "Familia Couto": SSID of the target network
  • -t 00:21:5d:ea:fe:be: MAC address of the attacked client
  • You can see many other options running ./krackattack/krack_all_zero_tk.py -h!

warnings!

  • Remember to disable the Wi-Fi before running the script!
  • After disabling the Wi-Fi, run the command: $rfkill unblock wifi!

Files Generated

After running the script for the first time, some new files will be generated:

  • dnsmasq.conf: configuration file for DHCP and DNS services
  • dnsmasq_log: output from dnsmasq
  • hostapd_rogue.conf: configuration file for the rogue ap clone from the real ap
  • hostapd_rogue.log: output from hostapd_rogue
  • rogue_ap_capture.pcap: file containing packets capture from the rogue ap interface

Demostration Video

The following link contains a video that demonstrate this attack: demostration video

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].