Netcat is the utility knife of networking, it can be very useful for an attacker to find a way into network
if we do not have netcat but have python installed on the server we can use this netcat replacement
rp_netcat.py -t 192.168.1.108 -p 5555 -l -c # command shell
rp_netcat.py -t 192.168.1.108 -p 5555 -l -u=mytext.txt # upload a file
rp_netcat.py -t 192.168.1.108 -p 5555 -l -e="cat /etc/passwd" # execute command
echo 'ABC' | ./rp_netcat.py -t 192.168.1.108 -p 135 # echo text to server port 135
rp_netcat.py -t 192.168.1.108 -p 555 # connect to server
- Fire up two Terminals in first one create a listener using:
python rp_netcat.py -t 127.0.0.1 -p 5555 -l -c
- On the sencond one type:
python rp_netcat.py -t 127.0.0.1 -p 5555