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

Error using -i flag #38

Closed
mamarto opened this issue Dec 20, 2017 · 7 comments
Closed

Error using -i flag #38

mamarto opened this issue Dec 20, 2017 · 7 comments

Comments

@mamarto
Copy link
Contributor

mamarto commented Dec 20, 2017

How does this flag work?

I have tried: python3 torBot.py -i and the results are equal to python3 torBot.py

However when I run it with an url, I get this error:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/socks.py", line 813, in connect
    negotiate(self, dest_addr, dest_port)
  File "/usr/local/lib/python3.5/dist-packages/socks.py", line 477, in _negotiate_SOCKS5
    CONNECT, dest_addr)
  File "/usr/local/lib/python3.5/dist-packages/socks.py", line 552, in _SOCKS5_request
    raise SOCKS5Error("{0:#04x}: {1}".format(status, error))
socks.SOCKS5Error: 0x06: TTL expired

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/usr/lib/python3.5/http/client.py", line 1107, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.5/http/client.py", line 1152, in _send_request
    self.endheaders(body)
  File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
    self.send(msg)
  File "/usr/lib/python3.5/http/client.py", line 877, in send
    self.connect()
  File "/usr/lib/python3.5/http/client.py", line 849, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib/python3.5/socket.py", line 712, in create_connection
    raise err
  File "/usr/lib/python3.5/socket.py", line 703, in create_connection
    sock.connect(sa)
  File "/usr/local/lib/python3.5/dist-packages/socks.py", line 96, in wrapper
    return function(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/socks.py", line 817, in connect
    raise GeneralProxyError("Socket error", error)
socks.GeneralProxyError: Socket error: 0x06: TTL expired

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "torBot.py", line 130, in <module>
    main()
  File "torBot.py", line 116, in main
    b = readPage(link)
  File "/root/torbot/TorBoT/modules/pagereader.py", line 11, in readPage
    response = urllib.request.urlopen(req)
  File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.5/urllib/request.py", line 466, in open
    response = self._open(req, data)
  File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
    '_open', req)
  File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 1282, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib/python3.5/urllib/request.py", line 1256, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error Socket error: 0x06: TTL expired>
@mamarto mamarto changed the title -i flag Error using -i flag Dec 20, 2017
@PSNAppz
Copy link
Member

PSNAppz commented Dec 20, 2017

Hello @agostinelli,
Thank you for reporting the issue. We'll check this and let you know about it asap. Meanwhile you can try restarting the torbot.

@PSNAppz
Copy link
Member

PSNAppz commented Dec 20, 2017

@agostinelli Bug Confirmed.
The -i flag is currently under development stage.
Please try python3 torBot.py -u http://3g2upl4pq6kufc4m.onion and paste the stack trace (if there is any) here.

Thank you for reporting the issue.

@mamarto
Copy link
Contributor Author

mamarto commented Dec 20, 2017

Here it is:

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/socks.py", line 813, in connect
negotiate(self, dest_addr, dest_port)
File "/usr/local/lib/python3.5/dist-packages/socks.py", line 477, in _negotiate_SOCKS5
CONNECT, dest_addr)
File "/usr/local/lib/python3.5/dist-packages/socks.py", line 552, in _SOCKS5_request
raise SOCKS5Error("{0:#04x}: {1}".format(status, error))
socks.SOCKS5Error: 0x06: TTL expired

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.5/http/client.py", line 1107, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.5/http/client.py", line 1152, in _send_request
self.endheaders(body)
File "/usr/lib/python3.5/http/client.py", line 1103, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/lib/python3.5/http/client.py", line 849, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.5/socket.py", line 712, in create_connection
raise err
File "/usr/lib/python3.5/socket.py", line 703, in create_connection
sock.connect(sa)
File "/usr/local/lib/python3.5/dist-packages/socks.py", line 96, in wrapper
return function(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/socks.py", line 817, in connect
raise GeneralProxyError("Socket error", error)
socks.GeneralProxyError: Socket error: 0x06: TTL expired

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "torBot.py", line 130, in
main()
File "torBot.py", line 116, in main
b = readPage(link)
File "/root/torbot/TorBoT/modules/pagereader.py", line 11, in readPage
response = urllib.request.urlopen(req)
File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 466, in open
response = self._open(req, data)
File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
'_open', req)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 1282, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.5/urllib/request.py", line 1256, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error Socket error: 0x06: TTL expired>

By the way, I would gladly help to resolve this/other issues, but I am currently working on the Wiki Page.

@PSNAppz
Copy link
Member

PSNAppz commented Dec 20, 2017

@agostinelli Good to hear that. So can I assign this issue to you?
If you are planning to work on this issue make sure you pull the dev branch and send a PR to that branch only.

@mamarto
Copy link
Contributor Author

mamarto commented Dec 20, 2017

Yes. I will do my best.

@mamarto
Copy link
Contributor Author

mamarto commented Dec 20, 2017

Could you please assign me issue 37 as well?

@PSNAppz
Copy link
Member

PSNAppz commented Dec 20, 2017

@agostinelli Please add a comment to the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants