quasar / Quasar

Remote Administration Tool for Windows
MIT License
8.76k stars 2.47k forks source link

Reverse Socks5 Proxy #103

Closed DragonzMaster closed 9 years ago

DragonzMaster commented 9 years ago

I was looking at project's main page and found under ToDo: Socks5 Proxy

so can i suggest a project would help us to achieve this Project's Name: Socks5 https://github.com/ThrDev/Socks5 It is stable but it is normal Proxy and need little changes to be Reverse Proxy so if anyone like the idea go with it and try If no one likes it just close the issue

yankejustin commented 9 years ago

I agree with this. While I truthfully still am rather new to Reverse Proxies, I still do believe that we should use ThrDev's project. :+1:

ghost commented 9 years ago

I'm pretty good in this kinda stuff, have done Reverse Proxies / Socks4/5/HTTPS proxies in the past, will see what I can do with this :)

DragonzMaster commented 9 years ago

We will not forget that favor :laughing: @AnguisCaptor it will be prety thing and so cool that we bring reverse proxy to like such project hope to see it soon :D

ghost commented 9 years ago

Created a pull request https://github.com/MaxXor/xRAT/pull/113 So far the proxy server for HTTPS / Socks5 seems to be working Small preview: http://i.imgur.com/mpNQCLW.png Enjoy :)

ghost commented 9 years ago

@AnguisCaptor, youre the best

DragonzMaster commented 9 years ago

your are awesome guy @AnguisCaptor I am really happy to see that someone tried with it and nearly he achieved it Really Great Job After pushing Proxy's commit don't forget to edit Credits :smile: @MaxXor

ghost commented 9 years ago

Haha thanks :D I am planning to change more in the Reverse Proxy ;) You'll see it soon enough :)

bitterypaul commented 9 years ago

I am ashamed to ask this but please someone tell me what is reverse proxy and what is the use of it. Btw great and biggest commit @AnguisCaptor

yankejustin commented 9 years ago

@bitterypaul It is a normal connection, but literally in reverse. It follows a different flow model to where, instead of it going from client to server (client sends request and server handles it), it goes from server to client (server sends a request and client handles it). Please correct me if I am wrong. :)

bitterypaul commented 9 years ago

tysm @yankejustin, what is the use of it.

ghost commented 9 years ago

@bitterypaul thanks :), the purpose for Reverse Proxy is simple: use the Internet of your target/victim A normal proxy socks5 or HTTPS requires portforwarding, but the target/victim in the RAT will most likely not portforward so we're not able to use the proxy or even connect to it, so we need something more clever, we will run the Socks5/HTTPS proxy server and connect to localhost (our proxy server) and sending all the connection requests to the victim/target, that way we're able to use the victims/target's internet

bitterypaul commented 9 years ago

thank you @AnguisCaptor and @yankejustin you are all my technical gods.

bitterypaul commented 9 years ago

ok then , will it saitsfy issue #71

ghost commented 9 years ago

As promised, some cool updates :) https://github.com/MaxXor/xRAT/pull/140 - Kill connections https://github.com/MaxXor/xRAT/pull/141 - A Proxy Load Balancer, DNS hostname resolver

DragonzMaster commented 9 years ago

@AnguisCaptor next update should add authorization using user/pass with the ability to change them without disconnecting the server ... it would be useful edit: sorry i forget to say thanks and the host resolver works but not all the time (example : sometimes it shows my ISP ip like that 213.158.189.* (213.158.189.*) AND i have just tried to visit google ... i don't know if it is really a problem or not

DragonzMaster commented 9 years ago

@AnguisCaptor another problem appeared minutes after starting the server the client closes and proxifier shows "Infinite Connection Loop Detection"

ghost commented 9 years ago

@DragonzMaster I had the same issue earlier when using Proxifier, you need to add a rule in proxifier Use the following settings: Name: Ignore port 3128 Target Port: 3128 Action: Direct

The problem with proxifier is that it's a system wide proxy, so that it will even try to proxy a proxy in this case lol So we need to tell proxifier to ignore our proxy server

DragonzMaster commented 9 years ago

@AnguisCaptor so you need to force stopping the proxy server(server side) and closing reverse form in case of crashing client and make the client restart