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

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

Open
gotr00t0day opened this issue Mar 17, 2024 · 6 comments · May be fixed by #288
Open

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

gotr00t0day opened this issue Mar 17, 2024 · 6 comments · May be fixed by #288
Labels
bug Something isn't working

Comments

@gotr00t0day
Copy link

gotr00t0day commented Mar 17, 2024

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

@gotr00t0day gotr00t0day added the bug Something isn't working label Mar 17, 2024
@FalcoGer
Copy link

Same issue here. Anyone got a workaround or fix?

@fusaty
Copy link

fusaty commented May 2, 2024

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

FalcoGer commented May 3, 2024

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

@landoncrabtree
Copy link

Still persistent

@SafaSafari SafaSafari linked a pull request Aug 9, 2024 that will close this issue
5 tasks
@FalcoGer
Copy link

FalcoGer commented Oct 9, 2024

@calebstewart
seems to work. please merge?

@llTheBlankll
Copy link

when merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants