Cloner issue
Juniortheone opened this issue · comments
I just installed snare, but I can't clone anything. Not even, example.com. Any help?
Below is the error
` Total number of URLs cloned: 2
Traceback (most recent call last):
File "/home/kali/snare/snare_honeypot/lib/python3.9/site-packages/Snare-0.3.0-py3.9.egg/EGG-INFO/scripts/clone", line 59, in main
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/kali/snare/snare_honeypot/lib/python3.9/site-packages/Snare-0.3.0-py3.9.egg/snare/cloner.py", line 207, in run
File "/home/kali/snare/snare_honeypot/lib/python3.9/site-packages/Snare-0.3.0-py3.9.egg/snare/cloner.py", line 160, in get_body
File "/home/kali/snare/snare_honeypot/lib/python3.9/site-packages/aiohttp/client.py", line 520, in _request
conn = await self._connector.connect(
File "/home/kali/snare/snare_honeypot/lib/python3.9/site-packages/aiohttp/connector.py", line 535, in connect
proto = await self._create_connection(req, traces, timeout)
File "/home/kali/snare/snare_honeypot/lib/python3.9/site-packages/aiohttp/connector.py", line 892, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/home/kali/snare/snare_honeypot/lib/python3.9/site-packages/aiohttp/connector.py", line 991, in _create_direct_connection
assert port is not None
AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kali/snare/snare_honeypot/bin/clone", line 4, in
import('pkg_resources').run_script('Snare==0.3.0', 'clone')
File "/home/kali/snare/snare_honeypot/lib/python3.9/site-packages/pkg_resources/init.py", line 666, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/home/kali/snare/snare_honeypot/lib/python3.9/site-packages/pkg_resources/init.py", line 1469, in run_script
exec(script_code, namespace, namespace)
File "/home/kali/snare/snare_honeypot/lib/python3.9/site-packages/Snare-0.3.0-py3.9.egg/EGG-INFO/scripts/clone", line 81, in
File "/home/kali/snare/snare_honeypot/lib/python3.9/site-packages/Snare-0.3.0-py3.9.egg/EGG-INFO/scripts/clone", line 67, in main
UnboundLocalError: local variable 'end' referenced before assignment
Also, this the clone.log
2021-10-16 10:31:48 DEBUG:snare.cloner:get_body: Cloned file: /index.html
2021-10-16 10:31:49 DEBUG:snare.cloner:get_body: Cloned file: /status_404
2021-10-16 10:31:49 DEBUG:snare.cloner:get_body: Cloned file: /0075674/www/ec_tpm_bcon.js
`
Thank you in advance for your help.
Hi!
Please try to use development branch instead, it should be fixed there. If not let me know :)
Thanks. I'll let you know the outcome. Thanks for your help. Cheers!
Closing because stale, feel free to open a new issue if problem still persists