Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

probeSniffer crashes on my device #15

Open
ghost opened this issue Jan 28, 2018 · 5 comments
Open

probeSniffer crashes on my device #15

ghost opened this issue Jan 28, 2018 · 5 comments
Labels

Comments

@ghost
Copy link

ghost commented Jan 28, 2018

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

@xdavidhu
Copy link
Owner

Hey!

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

@ghost
Copy link
Author

ghost commented Jan 28, 2018

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

@xdavidhu xdavidhu added the bug label Jan 28, 2018
@xdavidhu
Copy link
Owner

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 4699aa8
Please try it and let me know if it worked.

Thanks for reporting the bug!

@ghost
Copy link
Author

ghost commented Jan 28, 2018

Thanks! That fixed it!

@TheReal1604
Copy link

TheReal1604 commented Mar 25, 2018

@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? :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants