Skip to content

Commit

Permalink
Removed some debug lines and unused sys import
Browse files Browse the repository at this point in the history
  • Loading branch information
samjanny committed Apr 6, 2020
1 parent 041142c commit 9ae7190
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions wifiphisher/extensions/handshakeverify.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# pylint: skip-file
"""
Extension that verify WPA key by precaptured handshake using cowpatty
Extension that verifies WPA key by precaptured handshake using cowpatty
"""
import sys
import subprocess
from collections import defaultdict
import shlex
Expand Down Expand Up @@ -33,8 +32,6 @@ def is_valid_handshake_capture(filename):
class Handshakeverify(object):

def __init__(self, data):
print(data.args)
#sys.exit()
self.capt_file = data.args.handshake_capture
self.essid = data.target_ap_essid
self.key_file_path = "/tmp/keyfile.tmp"
Expand All @@ -48,9 +45,9 @@ def get_packet(self, packet):
return defaultdict(list)

def send_output(self):
if self.key != "" and self.found == True:
if self.key != "" and self.found:
return ["VALID KEY: " + self.key]
elif self.key != "" and self.found == False:
elif self.key != "" and not self.found:
return ["INVALID KEY ({})".format(self.key)]
return ["WAITING FOR WPA KEY POST (ESSID: {})".format(self.essid)]

Expand Down

0 comments on commit 9ae7190

Please sign in to comment.