Last active
April 10, 2017 09:36
-
-
Save ntzyz/8c01f961ee735c662f0dba845a2e75c4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
iptables \ | |
-I FORWARD \ | |
-m string \ | |
--algo bm \ | |
--string "http://welcome.jsinfo.net/cas/view/c"\ | |
-j DROP | |
iptables \ | |
-I FORWARD \ | |
-m string \ | |
--algo bm \ | |
--string "<body onLoad=a7.u()>"\ | |
-j DROP | |
iptables \ | |
-I FORWARD \ | |
-p tcp --dport 80 \ | |
-m string \ | |
--algo bm \ | |
--hex-string "|1b 8c 43 7a 46 e4 41 bb de 25 ec 4b 7c 3e 53 ec|"\ | |
-j DROP | |
iptables \ | |
-I FORWARD \ | |
-m string \ | |
--algo bm \ | |
--string "221.231.148.199"\ | |
-j DROP | |
iptables \ | |
-I FORWARD \ | |
-s 122.225.103.120 \ | |
-j DROP | |
iptables \ | |
-I FORWARD \ | |
-s 61.174.50.167 \ | |
-j DROP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment