Netcat Windowschatting and Backdoor 1
Netcat Windowschatting and Backdoor 1
BACKDOOR USING
NETCAT (WINDOWS)
What is Netcat?
Abbreviated as “nc”
Computer networking service for reading
problems
Also known as “TCP/IP Swiss Army Knife”
Features of Netcat
Chatting
Port Scanning
Port Listening
File transfer
Backdoor (controlling remote system)
CHATTING USING NETCAT
Sending and receiving messages on netcat
We will use two instances of netcat running
connects
-p represents port
31337 is a TCP port number(can use any)
demo
We can use any port number
It is a kind of client-server communication
Netcat must be installed on both machines.
BACKDOOR USING NETCAT
connects
-p represents port
31337 is a TCP port number(can use any)
-e cmd.exe represents opening security
mode.
4. Then on attacking machine (linux)execute command
nc 192.168.1.102 53
(ip address of window on linux terminal)
nc represents netcat
192.168.1.102 represents ip address of host
machine(target)
53 is port number
After executing this command, it will take us
to target machine
Now we can do anything we want to do on
target’s machine
5. Now on attacking machine’s cmd, if we do
“ipconfig”, it will show us the ip address of
target machine.
6. Now the target machine’s desktop(shown
below) has no folder namely NetcatDemo
7. On attacking machine, we will do “mkdir
NetcatDemo”, it will create folder on target
machine’s desktop.
8. Screen showing desktop of target machine,
now having folder named NetcatDemo.
9. We can also execute following command, if
we want that target machine will shutdown
after 50000secs(your wish)
Shutdown represents the command that will
shutdown the target machine
-r represents that it has to run this
command
-t represents the time after which the