Skip to content

Commit 2e6fd87

Browse files
committed
Improve Linux compatibility
1 parent b5543a1 commit 2e6fd87

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

probeHunter.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,11 @@ def hop_channel_linux():
7777
shell=True, stdout=PIPE, stderr=PIPE)
7878
threading.Thread(target=hop_channel_mac).start()
7979
elif sys.platform == "linux":
80-
process = Popen('tcpdump -i '+args.iface+' -e -s 256 type mgt subtype probe-req', bufsize=1, universal_newlines=True,
81-
shell=True, stdout=PIPE, stderr=PIPE)
80+
process = Popen(["/usr/sbin/tcpdump", "-i", args.iface, "-e", "-s", "256", "type mgt subtype probe-req"], bufsize=1, universal_newlines=True,
81+
stdout=PIPE, stderr=PIPE)
8282
threading.Thread(target=hop_channel_linux).start()
8383

8484
threading.Thread(target=print_data).start()
85-
8685
for row in iter(process.stdout.readline, b''):
8786
groups = re.search(".* Mb\/s (\d+) .* (-\d+)dBm signal .* SA:(\w{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2}) .* Probe \w+ \(([^\)]+)\)", row.strip())
8887
if groups != None:

wigle.py

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def wigle_location(ssid, wigle_flag):
1717
'paynet': False,
1818
'ssid': ssid
1919
}
20+
if Wigle.AUTH == '':
21+
return 1
2022
try:
2123
r = requests.get(Wigle.ENDPOINT_SEARCH, headers=headers, params=payload)
2224
except:

0 commit comments

Comments
 (0)