rsmusllp / king-phisher

Phishing Campaign Toolkit
BSD 3-Clause "New" or "Revised" License
2.21k stars 535 forks source link

Could you help #477

Closed ghost closed 2 years ago

ghost commented 2 years ago

/KingPhisherServer server_config.yml
/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 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'

wolfthefallen commented 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.

ghost commented 2 years ago

delete libc.a and create a symbolic link for liblibc.a?

wolfthefallen commented 2 years ago

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.

ghost commented 2 years ago

ln -s /usr/lib/x86_64-linux-gnu/libc.a liblibc.a

ln: failed to create symbolic link 'liblibc.a/libc.a': File exists

I get such an answer and says the file is available

stale[bot] commented 2 years ago

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.