Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amritabithi opened this issue Jul 19, 2022 · 4 comments

Comments

@amritabithi
Copy link

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
Copy link

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
Copy link

ILPlais commented May 21, 2023

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
Copy link

I'll give it a try. Thank you!

@wakeUPslow
Copy link

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'

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

No branches or pull requests

3 participants