calebmadrigal / trackerjacker

Like nmap for mapping wifi networks you're not connected to, plus device tracking
MIT License
2.64k stars 188 forks source link

Does not install to environment correctly, cannot execute on Ubuntu 20 #34

Open amritabithi opened 2 years ago

amritabithi commented 2 years ago

The program does not install to the environment properly, causing the program to not be recognized while logged in as root, and not executable while not loggedin as root, failing with the message "r00t is required."

Executing the program directly from the directory it was installed to while logged in as root throws the error "No module named trackerjacker."

Thanks!

wakeUPslow commented 1 year ago

Im having issue on MX-Linux 21.3 wildflower

└─> trackerjacker Traceback (most recent call last): File "/home/cali/.local/bin/trackerjacker", line 5, in from trackerjacker.main import main File "/home/cali/.local/lib/python3.9/site-packages/trackerjacker/main.py", line 15, in import scapy.all as scapy File "/home/cali/.local/lib/python3.9/site-packages/scapy/all.py", line 16, in from scapy.arch import * File "/home/cali/.local/lib/python3.9/site-packages/scapy/arch/init.py", line 25, in from scapy.arch.bpf.core import get_if_raw_addr File "/home/cali/.local/lib/python3.9/site-packages/scapy/arch/bpf/core.py", line 29, in LIBC = cdll.LoadLibrary(find_library("libc")) File "/usr/lib/python3.9/ctypes/util.py", line 341, in find_library _get_soname(_findLib_gcc(name)) or _get_soname(_findLib_ld(name)) File "/usr/lib/python3.9/ctypes/util.py", line 147, in _findLib_gcc if not _is_elf(file): File "/usr/lib/python3.9/ctypes/util.py", line 99, in _is_elf with open(filename, 'br') as thefile: FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a'

Any help would be appreciated thanks!

ILPlais commented 1 year ago

I had the same problem. You have to edit the file /home/cali/.local/lib/python3.9/site-packages/scapy/arch/bpf/core.py on line 29. And change the LIBC = cdll.LoadLibrary(find_library("libc")) by LIBC = cdll.LoadLibrary(find_library("c")). Normally, it should work.

wakeUPslow commented 1 year ago

I'll give it a try. Thank you!

wakeUPslow commented 1 year ago

I had the same problem. You have to edit the file /home/cali/.local/lib/python3.9/site-packages/scapy/arch/bpf/core.py on line 29. And change the LIBC = cdll.LoadLibrary(find_library("libc")) by LIBC = cdll.LoadLibrary(find_library("c")). Normally, it should work.

I edited line 29 but now i get a new error at the bottom....

AttributeError: 'array.array' object has no attribute 'tostring'

Any suggestions? In the meantime Ill try to search around for a solution.

Thanks again!

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