Files
wifite2/py/AttackWEP.py
derv82 1c99b74cf2 Started WEP attack support.
Fixing bugs in Airodump/Scanner.
2015-05-29 23:16:20 -07:00

34 lines
983 B
Python

#!/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()