TrackerJacker - Pour surveiller et tracer tous les appareils connectés en wifi autour de vous

Publié initialement à : TrackerJacker – Pour surveiller et tracer tous les appareils connectés en wifi autour de vous

Vous êtes en ville et autour de vous, ça crépite de réseaux wifi en tous genres ! Et bien bonne nouvelle, vous allez pouvoir analyser et cartographier tout ça comme vous le feriez avec un nmap. Sauf qu’il n’y a pas besoin de se connecter à ces réseaux wifi ni même que ces derniers diffusent…

Bonjour,

Je suis en Python 3.10.6 sous Ubuntu 22.04. J’ai utilisé pip3 install trackerjacker pour l’installation.
J’ai obtenu :

Defaulting to user installation because normal site-packages is not writeable
Collecting trackerjacker
  Using cached trackerjacker-1.9.0-py3-none-any.whl
Collecting pyaml>=17.12.1
  Using cached pyaml-21.10.1-py2.py3-none-any.whl (24 kB)
Collecting ruamel.yaml>=0.15.35
  Using cached ruamel.yaml-0.17.21-py3-none-any.whl (109 kB)
Collecting scapy==2.4.0
  Using cached scapy-2.4.0-py3-none-any.whl
Requirement already satisfied: PyYAML in /usr/lib/python3/dist-packages (from pyaml>=17.12.1->trackerjacker) (5.4.1)
Collecting ruamel.yaml.clib>=0.2.6
  Using cached ruamel.yaml.clib-0.2.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (485 kB)
Installing collected packages: scapy, ruamel.yaml.clib, pyaml, ruamel.yaml, trackerjacker
  WARNING: The script trackerjacker is installed in '/home/francis/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pyaml-21.10.1 ruamel.yaml-0.17.21 ruamel.yaml.clib-0.2.7 scapy-2.4.0

À l’exécution, j’ai l’erreur :

Traceback (most recent call last):
  File "/home/francis/.local/bin/./trackerjacker", line 5, in <module>
    from trackerjacker.__main__ import main
  File "/home/francis/.local/lib/python3.10/site-packages/trackerjacker/__main__.py", line 15, in <module>
    import scapy.all as scapy
  File "/home/francis/.local/lib/python3.10/site-packages/scapy/all.py", line 25, in <module>
    from scapy.route import *
  File "/home/francis/.local/lib/python3.10/site-packages/scapy/route.py", line 191, in <module>
    conf.route=Route()
  File "/home/francis/.local/lib/python3.10/site-packages/scapy/route.py", line 27, in __init__
    self.resync()
  File "/home/francis/.local/lib/python3.10/site-packages/scapy/route.py", line 36, in resync
    self.routes = read_routes()
  File "/home/francis/.local/lib/python3.10/site-packages/scapy/arch/linux.py", line 280, in read_routes
    tmp_route = get_alias_address(iff, dst_int, gw_str, metric)
  File "/home/francis/.local/lib/python3.10/site-packages/scapy/arch/linux.py", line 195, in get_alias_address
    names = names.tostring()
AttributeError: 'array.array' object has no attribute 'tostring'

En cherchant sur le message « AttributeError: 'array.array' object has no attribute 'tostring'», j’ai vu que la méthode tostring était « deprecated since Python 3.2 ».

Je me propose d’utiliser pyenv pour installer une « bonne » version de Python. Mais laquelle prendre ? Et je n’ai aucune expérience en pyenv !

Toute aide sera la bienvenue,
Merci
Cordialement