Advertisement
Stybyk

Autorules

Apr 20th, 2019
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.46 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. sudo ip6tables -F
  4. sudo echo > file.txt
  5.  
  6. for i in {1..2000}
  7. do
  8. counter=1
  9. echo -n \ sudo ip6tables -A FORWARD -p tcp --dport 80  >> file.txt
  10.  
  11. while [ $counter -le 300 ]
  12. do
  13. NEW_STRING=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 20 | head -n 1)
  14.  
  15. echo -n \ " -m string --string $NEW_STRING --algo bm" >> file.txt
  16. ((counter++))
  17. done
  18.  
  19. echo -n \ " -j REJECT --reject-with tcp-reset" >> file.txt
  20. echo "" >> file.txt
  21. done
  22.  
  23.  
  24.  
  25. echo All done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement