Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- counter=1
- sudo ip6tables -F
- while [ $counter -le 2000 ]
- do
- NEW_STRING=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 20 | head -n 1)
- sudo ip6tables -I FORWARD $counter -p tcp --dport 80 -m string --string $NEW_STRING --algo bm -j REJECT --reject-with tcp-reset
- ((counter++))
- done
- sudo ip6tables -I FORWARD $((counter+1)) -p tcp --dport 80 -m string --string "admin%27+or+%271%27%3D%27" --algo bm -j LOG --log-prefix "SQL-injection8"
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%27+or+%271%27%3D%27" --algo bm -j REJECT --reject-with tcp-reset
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%27or+1%3D1+or+%27%27%3D%27" --algo bm -j LOG --log-prefix "SQL-injection12"
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%27or+1%3D1+or+%27%27%3D%27" --algo bm -j REJECT --reject-with tcp-reset
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%27+or+1%3D1" --algo bm -j LOG --log-prefix "SQL-injection13"
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%27+or+1%3D1" --algo bm -j REJECT --reject-with tcp-reset
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%27%29+or+%28%271%27%3D%271" --algo bm -j LOG --log-prefix "SQL-injection17"
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%27%29+or+%28%271%27%3D%271" --algo bm -j REJECT --reject-with tcp-reset
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%27%29+or+%271%27%3D%271" --algo bm -j LOG --log-prefix "SQL-injection21"
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%27%29+or+%271%27%3D%271" --algo bm -j REJECT --reject-with tcp-reset
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%22+or+%221%22%3D%221" --algo bm -j LOG --log-prefix "SQL-injection29"
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%22+or+%221%22%3D%221" --algo bm -j REJECT --reject-with tcp-reset
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%22or+1%3D1+or+%22%22%3D%22" --algo bm -j LOG --log-prefix "SQL-injection33"
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%22or+1%3D1+or+%22%22%3D%22" --algo bm -j REJECT --reject-with tcp-reset
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%22%29+or+%28%221%22%3D%221" --algo bm -j LOG --log-prefix "SQL-injection37"
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "admin%22%29+or+%28%221%22%3D%221" --algo bm -j REJECT --reject-with tcp-reset
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "UNION%2BSELECT" --algo bm -j LOG --log-prefix "SQL-ID5930"
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "UNION%2BSELECT" --algo bm -j REJECT --reject-with tcp-reset
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "%2B%29SELECT%2B*%2BFROM%2B" --algo bm -j LOG --log-prefix "SQL-ID5930"
- sudo ip6tables -I FORWARD $((counter++)) -p tcp --dport 80 -m string --string "%2B%29SELECT%2B*%2BFROM%2B" --algo bm -j REJECT --reject-with tcp-reset
- echo All done
- sudo ip6tables -L
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement