-
Notifications
You must be signed in to change notification settings - Fork 177
/
pull.py
executable file
·221 lines (182 loc) · 6.31 KB
/
pull.py
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
import sys
import os
import random
__log__ = r'''%s
_ ___ ___ ___ ___ ___
\\ _ /\*\___*\__\\__\/ \ / \\___
\ \\ \\\ \\__\\ /\ ) \\ ) \\ \
\__\\__\\\ \\__\\ \\__ / \___/ \__\
%s
%sv1.0. Coded by @hash3liZer.%s
'''
__mode__='''
Syntax:
$ python wifibroot.py [--mode [modes]] [--options]
$ python wifibroot.py --mode 2 -i wlan1mon --verbose -d /path/to/list -w pmkid.txt
Modes:
# Description Value
01 Capture 4-way handshake and crack MIC code 1
02 Captures and Crack PMKID (PMKID Attack) 2
03 Perform Manaul cracking on available
capture types. See --list-types 3
04 Deauthentication. Disconnect two stations
and jam the traffic. 4
Use -h, --help after -m, --mode to get help on modes.
'''
__1help__='''
Mode:
01 Capture 4-way handshake and crack MIC code 1
Options:
Args Description Required
-h, --help Show this help manual NO
-i, --interface Monitor Interface to use YES
-v, --verbose Turn off Verbose mode. NO
-t, --timeout Time Delay between two deauth
requests. NO
-d, --dictionary Dictionary for Cracking YES
-w, --write Write Captured handshake to
a seperate file NO
--deauth Number of Deauthentication
frames to send NO
Filters:
-e, --essid ESSID of listening network
-b, --bssid BSSID of target network.
-c, --channel Channel interface should be listening
on. Default: ALL
'''
__2help__='''
Mode:
02 Captures and Crack PMKID (PMKID Attack) 1
Options:
Args Description Required
-h, --help Show this help manual NO
-i, --interface Monitor Interface to use YES
-v, --verbose Turn off Verbose mode. NO
-d, --dictionary Dictionary for Cracking YES
-w, --write Write Captured handshake to
a seperate file NO
Filters:
-e, --essid ESSID of listening network
-b, --bssid BSSID of target network.
-c, --channel Channel interface should be listening
on. Default: ALL
'''
__3help__='''
Mode:
03 Perform Manaul cracking on available capture
types. See --list-types 3
Options:
Args Description Required
-h, --help Show this help manual NO
--list-types List available cracking types NO
--type Type of capture to crack YES
-v, --verbose Turn off Verbose mode. NO
-d, --dictionary Dictionary for Cracking YES
-e, --essid ESSID of target network.
Only for HANDSHAKE Type YES
-r, --read Captured file to crack YES
'''
__4help__='''
Mode:
04 Deauthentication. Disconnect two stations
and jam the traffic. 4
Options:
Args Description Required
-h, --help Show this help manual NO
-i, --interface Monitor Mode Interface to use YES
-0, --count Number of Deauthentication
frames to send. '0' specifies
unlimited frames YES
--ap Access Point MAC Address NO
--client STA (Station) MAC Address NO
'''
__list__='''
Types:
# Type Value
1 HANDSHAKE handshake
2 PMKID pmkid
'''
class Pully:
WHITE = '\033[0m'
PURPLE = '\033[95m'
CYAN = '\033[96m'
DARKCYAN = '\033[36m'
BLUE = '\033[94m'
GREEN = '\033[92m'
YELLOW = '\033[93m'
RED = '\033[91m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
END = '\033[0m'
LINEUP = '\033[F'
def __init__(self):
if not self.support_colors:
self.win_colors()
def support_colors(self):
plat = sys.platform
supported_platform = plat != 'Pocket PC' and (plat != 'win32' or \
'ANSICON' in os.environ)
is_a_tty = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty()
if not supported_platform or not is_a_tty:
return False
return True
def win_colors(self):
self.WHITE = ''
self.PURPLE = ''
self.CYAN = ''
self.DARKCYAN = ''
self.BLUE = ''
self.GREEN = ''
self.YELLOW = ''
self.RED = ''
self.BOLD = ''
self.UNDERLINE = ''
self.END = ''
self.LINEUP = ''
def info(self, statement, *args, **kwargs):
print "%s[*]%s %s" % (self.BOLD+self.YELLOW, self.END, statement)
return
def error(self, statement, *args, **kwargs):
print "%s[!]%s %s" % (self.BOLD+self.RED, self.END, statement)
return
def up(self, statement, *args, **kwargs):
print "%s[^]%s %s" % (self.BOLD+self.BLUE, self.END, statement)
return
def use(self, statement, *args, **kwargs):
print "%s[+]%s %s" % (self.BOLD+self.GREEN, self.END, statement)
return
def question(self, statement, *args, **kwargs):
q = raw_input("%s[?]%s %s" % (self.BOLD+self.PURPLE, self.END, statement))
return q
def delete(self, statement, *args, **kwargs):
print "%s[#]%s %s" % (self.BOLD+self.CYAN, self.END, statement)
return
def special(self, statement, *args, **kwargs):
print "%s[~]%s %s" % (self.BOLD+self.RED, self.END, statement)
def spacer(self, statement, *args, **kwargs):
print " %s" % (statement)
def linebreak(self):
print "\n"
return
def right(self, statement, *args, **kwargs):
print "%s[>]%s %s" % (self.BOLD+self.DARKCYAN, self.END, statement)
def lineup(self, *args, **kwargs):
sys.stdout.write(self.LINEUP)
def random_picker(self):
seq = (self.RED, self.GREEN, self.YELLOW, self.BLUE)
return random.choice(seq)
def logo(self):
print __log__ % (self.BOLD+self.random_picker(), self.END, self.BOLD, self.END)
def help(self, _m):
if _m == 1:
print __1help__
elif _m == 2:
print __2help__
elif _m == 3:
print __3help__
elif _m == 4:
print __4help__
def modes(self):
print __mode__
def listTypes(self):
print __list__