calebstewart / pwncat

Fancy reverse and bind shell handler
https://pwncat.readthedocs.io
MIT License
2.58k stars 250 forks source link

AttributeError: 'FileFinder' object has no attribute 'find_module' #283

Open gotr00t0day opened 5 months ago

gotr00t0day commented 5 months ago

find_module seems to be deprecated and find_spec should be use instead.

cpython issues

Output

Exception in thread Thread-1 (start_listener): Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1073, in _bootstrap_inner self.run() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1010, in run self._target(*self._args, **self._kwargs) File "/Users/c0d3ninja/Tools/CVE-2023-43208-EXPLOIT/CVE-2023-43208.py", line 68, in start_listener with pwncat.manager.Manager() as manager: ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pwncat/manager.py", line 811, in __init__ self.parser = CommandParser(self) ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pwncat/commands/__init__.py", line 436, in __init__ loader.find_module(module_name) ^^^^^^^^^^^^^^^^^^ AttributeError: 'FileFinder' object has no attribute 'find_module'

Python version

Python 3.12.2

Pwncat Version

0.5.4

FalcoGer commented 4 months ago

Same issue here. Anyone got a workaround or fix?

fusaty commented 4 months ago

Same issue here. Anyone got a workaround or fix?

When I install pwncat from a virtual environment like it is mentioned in the readme it doesnt throw this error and it's working fine. At least for me.

python3 -m venv pwncat-env
source pwncat-env/bin/activate
pip install pwncat-cs

The blackarch package seems to be broken.

FalcoGer commented 4 months ago

@fusaty The problem is if you use >=python3.12

landoncrabtree commented 1 month ago

Still persistent