probeSniffer icon indicating copy to clipboard operation
probeSniffer copied to clipboard

probeSniffer crashes on my device

Open ghost opened this issue 6 years ago • 5 comments

Hello!

I've installed all the requirements, followed every required step but when I launch the script and come close to it with an iPhone there are some errors showing up. In the image below you can see them. I don't know how to solve this as I'm not familiar with Python.

screenshot

Thanks for the answer and the script! Regards

ghost avatar Jan 28 '18 10:01 ghost

Hey!

Is the interface in monitor mode? If not, you can use airmon-ng to set it like this: sudo airmon-ng start [INTERFACE]

xdavidhu avatar Jan 28 '18 10:01 xdavidhu

I can confirm. I’ve set the interface in monitor mode before running your script.

ghost avatar Jan 28 '18 10:01 ghost

Okey so this was a weird and super annoying bug.. On Kali there is no "wlan_mgt" layer on the packets, but 2 "wlan" layer.

Managed to fix the issue in 4699aa8bf3e1aa6e527897da9a91f47b465292bf Please try it and let me know if it worked.

Thanks for reporting the bug!

xdavidhu avatar Jan 28 '18 12:01 xdavidhu

Thanks! That fixed it!

ghost avatar Jan 28 '18 21:01 ghost

@xdavidhu got a similar error, unfortunatly its also crashing with your fix.

!] An error occurred. Debug:
Traceback (most recent call last):
  File "./probeSniffer.py.1", line 395, in main
    capture.apply_on_packets(packetHandler)
  File "/usr/local/lib/python3.6/dist-packages/pyshark-0.3.7.11-py3.6.egg/pyshark/capture/capture.py", line 248, in apply_on_packets
    return self.eventloop.run_until_complete(coro)
  File "/usr/local/lib/python3.6/dist-packages/trollius-1.0.4-py3.6.egg/trollius/base_events.py", line 300, in run_until_complete
    return future.result()
  File "/usr/local/lib/python3.6/dist-packages/trollius-1.0.4-py3.6.egg/trollius/futures.py", line 287, in result
    raise self._exception
  File "/usr/local/lib/python3.6/dist-packages/trollius-1.0.4-py3.6.egg/trollius/tasks.py", line 255, in _step
    result = next(coro)
  File "/usr/local/lib/python3.6/dist-packages/pyshark-0.3.7.11-py3.6.egg/pyshark/capture/capture.py", line 261, in packets_from_tshark
    packet_count=packet_count))
  File "/usr/local/lib/python3.6/dist-packages/trollius-1.0.4-py3.6.egg/trollius/tasks.py", line 253, in _step
    result = coro.send(value)
  File "/usr/local/lib/python3.6/dist-packages/pyshark-0.3.7.11-py3.6.egg/pyshark/capture/capture.py", line 290, in _go_through_packets_from_fd
    packet_callback(packet)
  File "./probeSniffer.py.1", line 194, in packetHandler
    ssid = pkt[3].ssid
  File "/usr/local/lib/python3.6/dist-packages/pyshark-0.3.7.11-py3.6.egg/pyshark/packet/layer.py", line 36, in __getattr__
    raise AttributeError()
AttributeError

Also running this on a kali linux system. Any ideas? :)

TheReal1604 avatar Mar 25 '18 15:03 TheReal1604