Started WEP attack support.

Fixing bugs in Airodump/Scanner.
This commit is contained in:
derv82
2015-05-29 23:16:20 -07:00
parent 03509d436e
commit 1c99b74cf2
8 changed files with 226 additions and 10 deletions

33
py/AttackWEP.py Normal file
View File

@@ -0,0 +1,33 @@
#!/usr/bin/python
from Attack import Attack
import time
class AttackWEP(Attack):
def __init__(self, target):
super(AttackWEP, self).__init__(target)
def run(self):
start_time = time.time()
# First, start Airodump process
with Airodump(channel=target.channel,
target_bssid=self.target.bssid,
output_file_prefix='wep')
as airodump:
while len(airodump.targets) == 0:
# Target has not appeared in airodump yet
# Wait for it to appear
if int(time.time() - start_time) > 10:
# Target didn't appear after 10 seconds, drop out
print "Target did not show after 10 seconds, stopping"
return None
time.sleep(1)
continue
airodump_target = airodump.targets[0]
# Fake authenticate
#aireplay = Aireplay()