sensepost / reGeorg

The successor to reDuh, pwn a bastion webserver and create SOCKS proxies through the DMZ. Pivot and pwn.
Other
2.99k stars 814 forks source link

Error using reGeorg as socks5 sock for curl #9

Open epinna opened 9 years ago

epinna commented 9 years ago

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 commented 8 years ago

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 commented 7 years ago

Same issue for me with --socks5

Maskhe commented 6 years ago

'session' object has no attribute 'target'