Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Z4nzu
GitHub Repository: Z4nzu/hackingtool
Path: blob/master/tools/wireless_attack.py
2371 views
1
from rich.prompt import Prompt
2
3
from core import HackingTool, HackingToolsCollection, console
4
5
6
class WIFIPumpkin(HackingTool):
7
TITLE = "WiFi-Pumpkin"
8
DESCRIPTION = (
9
"The WiFi-Pumpkin is a rogue AP framework to easily create fake networks\n"
10
"while forwarding legitimate traffic to and from the unsuspecting target."
11
)
12
INSTALL_COMMANDS = [
13
"sudo apt install -y libssl-dev libffi-dev build-essential python3-pyqt5",
14
"git clone https://github.com/P0cL4bs/wifipumpkin3.git",
15
"chmod -R 755 wifipumpkin3",
16
"cd wifipumpkin3 && pip install --user .",
17
]
18
RUN_COMMANDS = ["sudo wifipumpkin3"]
19
PROJECT_URL = "https://github.com/P0cL4bs/wifipumpkin3"
20
SUPPORTED_OS = ["linux"]
21
REQUIRES_WIFI = True
22
23
24
class pixiewps(HackingTool):
25
TITLE = "pixiewps"
26
DESCRIPTION = (
27
"Pixiewps is a tool written in C used to bruteforce offline the WPS pin\n"
28
"exploiting the low or non-existing entropy of some Access Points "
29
"(pixie dust attack)."
30
)
31
INSTALL_COMMANDS = [
32
# Bug 29 fix: removed wget https://pastebin.com/... (insecure download from pastebin)
33
"git clone https://github.com/wiire/pixiewps.git && apt-get -y install build-essential",
34
"cd pixiewps && make",
35
"cd pixiewps && sudo make install",
36
]
37
PROJECT_URL = "https://github.com/wiire/pixiewps"
38
SUPPORTED_OS = ["linux"]
39
REQUIRES_WIFI = True
40
41
def run(self):
42
console.print(
43
"[bold cyan]Usage:[/bold cyan]\n"
44
" 1. Put interface into monitor mode: [yellow]airmon-ng start <iface>[/yellow]\n"
45
" 2. Scan: [yellow]wash -i <mon-iface>[/yellow]\n"
46
" 3. Attack: [yellow]reaver -i <mon-iface> -b <BSSID> -c <ch> -vvv -K 1 -f[/yellow]\n"
47
" 4. Run: [yellow]pixiewps -h[/yellow]"
48
)
49
50
51
class BluePot(HackingTool):
52
TITLE = "Bluetooth Honeypot GUI Framework"
53
DESCRIPTION = (
54
"You need at least 1 bluetooth receiver.\n"
55
"Install libbluetooth-dev (Ubuntu) / bluez-libs-devel (Fedora) / bluez-devel (openSUSE)."
56
)
57
INSTALL_COMMANDS = [
58
# Bug 15 fix: missing comma caused implicit string concatenation — two strings joined
59
"sudo wget https://raw.githubusercontent.com/andrewmichaelsmith/bluepot/master/bin/bluepot-0.2.tar.gz",
60
"sudo tar xfz bluepot-0.2.tar.gz && sudo rm bluepot-0.2.tar.gz",
61
]
62
RUN_COMMANDS = ["cd bluepot && sudo java -jar bluepot.jar"]
63
PROJECT_URL = "https://github.com/andrewmichaelsmith/bluepot"
64
SUPPORTED_OS = ["linux"]
65
REQUIRES_JAVA = True
66
67
68
class Fluxion(HackingTool):
69
TITLE = "Fluxion"
70
DESCRIPTION = "Fluxion is a remake of linset by vk496 with enhanced functionality."
71
INSTALL_COMMANDS = [
72
"git clone https://github.com/FluxionNetwork/fluxion.git",
73
"cd fluxion && chmod +x fluxion.sh",
74
]
75
RUN_COMMANDS = ["cd fluxion && sudo bash fluxion.sh -i"]
76
PROJECT_URL = "https://github.com/FluxionNetwork/fluxion"
77
SUPPORTED_OS = ["linux"]
78
REQUIRES_WIFI = True
79
80
81
class Wifiphisher(HackingTool):
82
TITLE = "Wifiphisher"
83
DESCRIPTION = (
84
"Wifiphisher is a rogue Access Point framework for conducting red team engagements\n"
85
"or Wi-Fi security testing. Easily achieve man-in-the-middle position against\n"
86
"wireless clients by performing targeted Wi-Fi association attacks."
87
)
88
INSTALL_COMMANDS = [
89
"git clone https://github.com/wifiphisher/wifiphisher.git",
90
"cd wifiphisher && pip install --user .",
91
]
92
RUN_COMMANDS = ["cd wifiphisher && sudo wifiphisher"]
93
PROJECT_URL = "https://github.com/wifiphisher/wifiphisher"
94
SUPPORTED_OS = ["linux"]
95
REQUIRES_WIFI = True
96
97
98
class Wifite(HackingTool):
99
TITLE = "Wifite"
100
DESCRIPTION = "Wifite is an automated wireless attack tool."
101
INSTALL_COMMANDS = [
102
"git clone https://github.com/derv82/wifite2.git",
103
"cd wifite2 && pip install --user .",
104
]
105
RUN_COMMANDS = ["sudo wifite"]
106
PROJECT_URL = "https://github.com/derv82/wifite2"
107
SUPPORTED_OS = ["linux"]
108
REQUIRES_WIFI = True
109
110
111
class EvilTwin(HackingTool):
112
TITLE = "EvilTwin"
113
DESCRIPTION = (
114
"Fakeap — perform Evil Twin Attack by getting credentials "
115
"using a Fake page and Fake Access Point."
116
)
117
INSTALL_COMMANDS = ["git clone https://github.com/Z4nzu/fakeap.git"]
118
RUN_COMMANDS = ["cd fakeap && sudo bash fakeap.sh"]
119
PROJECT_URL = "https://github.com/Z4nzu/fakeap"
120
SUPPORTED_OS = ["linux"]
121
REQUIRES_WIFI = True
122
123
124
class Fastssh(HackingTool):
125
TITLE = "Fastssh"
126
DESCRIPTION = (
127
"Fastssh — multi-threaded scan and brute force attack against SSH protocol\n"
128
"using the most commonly used credentials."
129
)
130
INSTALL_COMMANDS = [
131
"git clone https://github.com/Z4nzu/fastssh.git && cd fastssh && chmod +x fastssh.sh",
132
"sudo apt-get install -y sshpass netcat",
133
]
134
RUN_COMMANDS = ["cd fastssh && sudo bash fastssh.sh --scan"]
135
PROJECT_URL = "https://github.com/Z4nzu/fastssh"
136
SUPPORTED_OS = ["linux"]
137
138
139
class Howmanypeople(HackingTool):
140
TITLE = "Howmanypeople"
141
DESCRIPTION = (
142
"Count the number of people around you by monitoring wifi signals.\n"
143
"[@] WIFI ADAPTER REQUIRED\n"
144
"[*] It may be illegal to monitor networks for MAC addresses on networks you do not own."
145
)
146
INSTALL_COMMANDS = [
147
# Bug 14 fix: missing comma caused "sudo apt-get install tshark;sudo python3..."
148
# to be one implicitly concatenated string — only first command ran
149
"sudo apt-get install -y tshark",
150
"sudo python3 -m pip install howmanypeoplearearound",
151
]
152
RUN_COMMANDS = ["howmanypeoplearearound"]
153
SUPPORTED_OS = ["linux"]
154
REQUIRES_WIFI = True
155
156
157
class Airgeddon(HackingTool):
158
TITLE = "Airgeddon (Wireless Attack Suite)"
159
DESCRIPTION = (
160
"Multi-use bash script for auditing wireless networks.\n"
161
"Covers WPA/WPA2, WEP, WPS, PMKID, evil twin, handshake capture and more."
162
)
163
SUPPORTED_OS = ["linux"]
164
REQUIRES_WIFI = True
165
INSTALL_COMMANDS = [
166
"git clone https://github.com/v1s1t0r1sh3r3/airgeddon.git",
167
]
168
RUN_COMMANDS = ["cd airgeddon && sudo bash airgeddon.sh"]
169
PROJECT_URL = "https://github.com/v1s1t0r1sh3r3/airgeddon"
170
171
172
class Hcxdumptool(HackingTool):
173
TITLE = "hcxdumptool (PMKID Capture)"
174
DESCRIPTION = (
175
"Capture packets and PMKID hashes from WLAN devices.\n"
176
"Usage: hcxdumptool -i <iface> -o capture.pcapng --enable_status=1"
177
)
178
SUPPORTED_OS = ["linux"]
179
REQUIRES_WIFI = True
180
INSTALL_COMMANDS = [
181
"git clone https://github.com/ZerBea/hcxdumptool.git",
182
"cd hcxdumptool && make && sudo make install",
183
]
184
RUN_COMMANDS = ["hcxdumptool --help"]
185
PROJECT_URL = "https://github.com/ZerBea/hcxdumptool"
186
187
188
class Hcxtools(HackingTool):
189
TITLE = "hcxtools (PMKID/Hash Conversion)"
190
DESCRIPTION = (
191
"Convert captured WLAN packets to hashcat/JtR-compatible format.\n"
192
"Usage: hcxpcapngtool -o hashes.txt capture.pcapng"
193
)
194
SUPPORTED_OS = ["linux"]
195
INSTALL_COMMANDS = [
196
"git clone https://github.com/ZerBea/hcxtools.git",
197
"cd hcxtools && make && sudo make install",
198
]
199
RUN_COMMANDS = ["hcxpcapngtool --help"]
200
PROJECT_URL = "https://github.com/ZerBea/hcxtools"
201
202
203
class Bettercap(HackingTool):
204
TITLE = "Bettercap (Network/WiFi/BLE MITM)"
205
DESCRIPTION = "Swiss army knife for WiFi, BLE, HID, and Ethernet network recon and MITM attacks."
206
SUPPORTED_OS = ["linux"]
207
INSTALL_COMMANDS = ["sudo apt-get install -y bettercap"]
208
RUN_COMMANDS = ["sudo bettercap --help"]
209
PROJECT_URL = "https://github.com/bettercap/bettercap"
210
211
212
class WirelessAttackTools(HackingToolsCollection):
213
TITLE = "Wireless attack tools"
214
TOOLS = [
215
WIFIPumpkin(),
216
pixiewps(),
217
BluePot(),
218
Fluxion(),
219
Wifiphisher(),
220
Wifite(),
221
EvilTwin(),
222
Fastssh(),
223
Howmanypeople(),
224
Airgeddon(),
225
Hcxdumptool(),
226
Hcxtools(),
227
Bettercap(),
228
]
229
230
231
if __name__ == "__main__":
232
tools = WirelessAttackTools()
233
tools.show_options()
234
235