Closed ghost closed 2 years ago
This appears to be an issue with python 3.9+ where liblibc.a
has been renamed libc.a
.
For a workaround locate libc.a
and create a symbolic link for liblibc.a
.
delete libc.a and create a symbolic link for liblibc.a?
no do not delete libc.a
! make a symbolic link of that file named liblibc.a
if you google the last line of your error message above you will find a couple of stack overflow issues that talk about it how to do it, and possible locations of libc.a
depending on your flavor of Linux.
I get such an answer and says the file is available
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
/KingPhisherServer server_config.yml
from king_phisher.server import build
File "/root/opt/king-phisher/king_phisher/server/build.py", line 41, in
from king_phisher.server.server import KingPhisherRequestHandler, KingPhisherServer
File "/root/opt/king-phisher/king_phisher/server/server.py", line 53, in
from king_phisher.server import aaa
File "/root/opt/king-phisher/king_phisher/server/aaa.py", line 53, in
from king_phisher.server import pylibc
File "/root/opt/king-phisher/king_phisher/server/pylibc.py", line 107, in
_libc = ctypes.cdll.LoadLibrary(ctypes.util.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'
/usr/local/lib/python3.9/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and will not be supported in a future release warnings.warn( Loading .env environment variables... Traceback (most recent call last): File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/root/opt/king-phisher/king_phisher/server/main.py", line 48, in