Bash Cheat Sheets

Some handy bash

Ping Sweep

for i in {1..255}; do (ping -c 1 192.168.1.${i} | grep "bytes from" &); done

Port Scan

for i in {1..65535}; do (echo > /dev/tcp/192.168.1.1/$i) >/dev/null 2>&1 && echo $i is open; done

Rick Roll

curl -s -L http://bit.ly/10hA8iC | bash

Last updated