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 reGeorg as socks5 sock for curl #9

Open
epinna opened this issue Apr 25, 2015 · 3 comments · May be fixed by #27
Open

Error using reGeorg as socks5 sock for curl #9

epinna opened this issue Apr 25, 2015 · 3 comments · May be fixed by #27

Comments

@epinna
Copy link

epinna commented Apr 25, 2015

Whether I use reGeorg as socks5 tunnel by curl with the string

$ curl --socks5 localhost:8888 http://www.google.com
curl: (7) Failed to receive SOCKS5 connect request ack.
$

And reGeorg sock daemon prints out an error

$ python reGeorgSocksProxy.py -u http://localhost/environment/tunnel.php
...
[INFO   ]  Log Level set to [INFO]
[INFO   ]  Starting socks server [127.0.0.1:8888], tunnel at [http://localhost/environment/tunnel.php]
[INFO   ]  Checking if Georg is ready
[INFO   ]  Georg says, 'All seems fine'
[ERROR  ]  timed out
[ERROR  ]  'NoneType' object has no attribute '__getitem__'

Please note that reGeorge works properly if I use --proxy4 as curl option.

@badbob
Copy link

badbob commented Jun 17, 2016

Have a very similar issue:

$ curl -x socks5://localhost:8888 http://google.com

In reGeorg console I see:

[ERROR]  'NoneType' object has no attribute '__getitem__'
Exception in thread Thread-5:
Traceback (most recent call last):
  File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
    self.run()
  File "C:\reGeorg\reGeorgSocksProxy.py", line 351, in run
    self.closeRemoteSession()
  File "C:\reGeorg\reGeorgSocksProxy.py", line 248, in closeRemoteSession
    log.info("[%s:%d] Connection Terminated" % (self.target, self.port))
AttributeError: 'session' object has no attribute 'target'

If I try to use socks4 protocol, I get just:

$curl -x socks4://localhost:8888 -k http://google.com
curl: (7) Can't complete SOCKS4 connection to 32.???.??.??:76. (145), Unknown.

@sanderfoobar
Copy link

Same issue for me with --socks5

@Maskhe
Copy link

Maskhe commented Jul 27, 2018

'session' object has no attribute 'target'

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

Successfully merging a pull request may close this issue.

4 participants