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

Start websploit / Error : FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a' #65

Open
izaletr opened this issue Dec 14, 2020 · 5 comments

Comments

@izaletr
Copy link

izaletr commented Dec 14, 2020

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'
Kali 2020.4

@teyhoo
Copy link

teyhoo commented Dec 15, 2020

I have this Problem too

@BinaryHijacke
Copy link

how fix it

@websploit
Copy link
Collaborator

websploit commented Dec 27, 2020

@Hyrkania
Copy link

Hyrkania commented Dec 27, 2020

I had the same issue as @izaletr had!

After run command:

$ websploit

I get this error:

Traceback (most recent call last):
  File "/usr/bin/websploit", line 11, in <module>
    load_entry_point('websploit==4.0.4', 'console_scripts', 'websploit')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 473, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2843, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2447, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2453, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/websploit/websploit.py", line 3, in <module>
    from .core.utils import check_dependencies
  File "/usr/lib/python3/dist-packages/websploit/core/utils/__init__.py", line 1, in <module>
    from .tools import *
  File "/usr/lib/python3/dist-packages/websploit/core/utils/tools.py", line 1, in <module>
    from scapy.all import *
  File "/usr/lib/python3/dist-packages/scapy/all.py", line 16, in <module>
    from scapy.arch import *
  File "/usr/lib/python3/dist-packages/scapy/arch/__init__.py", line 27, in <module>
    from scapy.arch.bpf.core import get_if_raw_addr
  File "/usr/lib/python3/dist-packages/scapy/arch/bpf/core.py", line 30, in <module>
    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'

### Solution:

You just need to go to this directory:

$ cd /usr/lib/x86_64-linux-gnu/

and make a symlink to libc.a with this link (liblibc.a):

$ ln -s -f libc.a liblibc.a

Hope this work for you too.:blush::blush:

@gzsrdfhxrsd
Copy link

it didn't work for me

└─$ $ cd /usr/lib/x86_64-linux-gnu/

cd: No such file or directory: / usr / lib / x86_64-linux-gnu

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

6 participants