Skip to content

Commit

Permalink
logfilter.py: add support for python3 (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimocoder authored and rofl0r committed Jan 20, 2020
1 parent a7b3908 commit eebc0e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/logfilter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python

This comment has been minimized.

Copy link
@rofl0r

rofl0r Mar 15, 2020

Collaborator

?


# this is a filter meant to be used with a logfile containing
# debug output from wpa_supplicant or reaver, which extracts
Expand Down Expand Up @@ -80,11 +80,11 @@ def get_pixie_cmd(data):
if line == '': break
process_wpa_supplicant_line(data, line.rstrip('\n'))

print data
print(data)

if got_all_pixie_data(data):
pixiecmd = get_pixie_cmd(data)

print "running %s" % pixiecmd
print(("running %s" % pixiecmd))
os.execlp('/bin/sh', '/bin/sh', '-c', pixiecmd)

0 comments on commit eebc0e9

Please sign in to comment.