Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 35 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ sam@sensepost.com / [@trowalts]

etienne@sensepost.com / [@kamp_staaldraad]

imbeee@qq.com / [@imbeee]


Version
----

1.0
1.1

Dependencies
-----------
Expand All @@ -38,13 +40,16 @@ $ reGeorgSocksProxy.py [-h] [-l] [-p] [-r] -u [-v]
Socks server for reGeorg HTTP(s) tunneller

optional arguments:
-h, --help show this help message and exit
-l , --listen-on The default listening address
-p , --listen-port The default listening port
-r , --read-buff Local read buffer, max data to be sent per POST
-u , --url The url containing the tunnel script
-v , --verbose Verbose output[INFO|DEBUG]

-h, --help show this help message and exit
-l , --listen-on The default listening address
-p , --listen-port The default listening port
-r , --read-buff Local read buffer, max data to be sent per Request
-w , --write-buff Remote read buffer, max data to be received per Response
-u , --url The url containing the tunnel script
-v , --verbose Verbose output[INFO|DEBUG]
--payloads-mode Select reGeorg request headers payloads mode[header|url]
--without-check Start proxy without check if tunnel url accessable
--custom-headers Set custom header[{'Cookies': 'JSESSIONID=ABC123;Token=asdfghjkl', 'Authorization': 'Basic YWRtaW46YWRtaW4=', 'Referer': 'trusted.net'}]
```

* **Step 1.**
Expand All @@ -64,9 +69,27 @@ you started the reGeorgSocksProxy.py

Example
---------

```bash
$ python reGeorgSocksProxy.py -l 127.0.0.1 -p 8080 -u https://upload.sensepost.net:8080/tunnel/tunnel.jsp
$ python reGeorgSocksProxy.py -p 8080 -r 4096 -w 4096 -u http://upload.sensepost.net:8080/tunnel/tunnel.jsp --custom-headers "{'Cookies': 'JSESSIONID=ABC123;Token=asdfghjkl', 'Authorization': 'Basic YWRtaW46YWRtaW4=', 'Referer': 'trusted.net'}"
```
$ python reGeorgSocksProxy.py -p 8080 -u http://upload.sensepost.net:8080/tunnel/tunnel.jsp
```

ChangeLog
---------

1.1 (2017-12-16)

* Single session mode (imbeee)
* Custom headers.
* Optional buffer size, the transfer speed many times faster.
* Optional url check.
* Proxy headers payloads can be selected between URL parameters and Request headers.

TODO
---------

* The proxy header need to be obfuscated. (WAF bypass)

License
----
Expand All @@ -77,5 +100,7 @@ MIT
[@\_w\_m\_\_]:http://twitter.com/_w_m__
[@trowalts]:http://twitter.com/trowalts
[@kamp_staaldraad]:http://twitter.com/kamp_staaldraad
[@imbeee]:https://www.imbeee.com/
[@gorgias]:https://gorgias.me/
[urllib3]:https://pypi.python.org/pypi/urllib3
[proxychains]:http://sourceforge.net/projects/proxychains/
Loading