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

threading error #30

Closed
r0bag opened this issue Nov 5, 2020 · 4 comments
Closed

threading error #30

r0bag opened this issue Nov 5, 2020 · 4 comments

Comments

@r0bag
Copy link

r0bag commented Nov 5, 2020

Hi,

upon running the program I receive the following error:
Traceback (most recent call last):
File "finalrecon.py", line 272, in
full_recon()
File "finalrecon.py", line 213, in full_recon
ps(ip, output, data)
File "/opt/FinalRecon/modules/portscan.py", line 23, in ps
t.start()
File "/usr/lib/python3.7/threading.py", line 852, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread
kali@kali:/opt/FinalRecon# python3 --version
Python 3.7.5

Can you advise on this?
Thanks.

@r0bag r0bag changed the title threding error threading error Nov 5, 2020
@thewhiteh4t
Copy link
Owner

@r0bag
which distro?
did portscan work before this? or this is the issue on first run itself?
please share output of ulimit -n

@r0bag
Copy link
Author

r0bag commented Nov 6, 2020

kali@kali:# uname -a
Linux kali 5.7.0-kali1-686-pae #1 SMP Debian 5.7.6-1kali2 (2020-07-01) i686 GNU/Linux
kali@kali:
# ulimit -n
1024

and it fails exactly at this step on the first run:

[!] Starting Port Scan...

[+] Testing Top 1000 Ports...

[+] 22 ssh
[+] 80 http
Traceback (most recent call last):
File "finalrecon.py", line 272, in
full_recon()
File "finalrecon.py", line 213, in full_recon
ps(ip, output, data)
File "/opt/FinalRecon/modules/portscan.py", line 23, in ps
t.start()
File "/usr/lib/python3.7/threading.py", line 852, in start
_start_new_thread(self._bootstrap, ())
RuntimeError: can't start new thread

@thewhiteh4t
Copy link
Owner

@r0bag please try changing the ulimit value to 2048 using the command ulimit -n 2048 and try running finalrecon after this

@r0bag
Copy link
Author

r0bag commented Nov 7, 2020

Thanks, now it works!

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

2 participants