Skip to content

Instantly share code, notes, and snippets.

@hiber
Last active August 29, 2015 14:12
Show Gist options
  • Save hiber/c6143d807444e5890821 to your computer and use it in GitHub Desktop.
Save hiber/c6143d807444e5890821 to your computer and use it in GitHub Desktop.
DNS spoofing ip list
#awk -F'.' '{printf "iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string \"|%02x%02x%02x%02x|\" --from 60 --to 180 -j DROP #%s\n", $1, $2, $3, $4, $0}' iplist.txt
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|710bc2be|" --from 60 --to 180 -j DROP #113.11.194.190
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|76053106|" --from 60 --to 180 -j DROP #118.5.49.6
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|0c578500|" --from 60 --to 180 -j DROP #12.87.133.0
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|7ada65be|" --from 60 --to 180 -j DROP #122.218.101.190
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|7b7ef9ee|" --from 60 --to 180 -j DROP #123.126.249.238
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|7b3231ab|" --from 60 --to 180 -j DROP #123.50.49.171
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|7de69430|" --from 60 --to 180 -j DROP #125.230.148.48
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|7f000002|" --from 60 --to 180 -j DROP #127.0.0.2
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|80797e8b|" --from 60 --to 180 -j DROP #128.121.126.139
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|0e66f912|" --from 60 --to 180 -j DROP #14.102.249.18
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|9f6a794b|" --from 60 --to 180 -j DROP #159.106.121.75
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|103f9b00|" --from 60 --to 180 -j DROP #16.63.155.0
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|a9840d67|" --from 60 --to 180 -j DROP #169.132.13.103
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|adc9d806|" --from 60 --to 180 -j DROP #173.201.216.6
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|bc050460|" --from 60 --to 180 -j DROP #188.5.4.96
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|bda31105|" --from 60 --to 180 -j DROP #189.163.17.5
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|c043c606|" --from 60 --to 180 -j DROP #192.67.198.6
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|c504040c|" --from 60 --to 180 -j DROP #197.4.4.12
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|02010102|" --from 60 --to 180 -j DROP #2.1.1.2
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|148b3800|" --from 60 --to 180 -j DROP #20.139.56.0
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|ca6a0102|" --from 60 --to 180 -j DROP #202.106.1.2
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|cab50755|" --from 60 --to 180 -j DROP #202.181.7.85
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|cba1e6ab|" --from 60 --to 180 -j DROP #203.161.230.171
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|cbc73951|" --from 60 --to 180 -j DROP #203.199.57.81
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|cb620741|" --from 60 --to 180 -j DROP #203.98.7.65
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|cf0c5862|" --from 60 --to 180 -j DROP #207.12.88.98
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|d06d8a37|" --from 60 --to 180 -j DROP #208.109.138.55
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|d0381f2b|" --from 60 --to 180 -j DROP #208.56.31.43
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|d1913632|" --from 60 --to 180 -j DROP #209.145.54.50
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|d1dc1eae|" --from 60 --to 180 -j DROP #209.220.30.174
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|d1244921|" --from 60 --to 180 -j DROP #209.36.73.33
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|d155e58a|" --from 60 --to 180 -j DROP #209.85.229.138
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|d3058512|" --from 60 --to 180 -j DROP #211.5.133.18
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|d308451b|" --from 60 --to 180 -j DROP #211.8.69.27
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|d35e4293|" --from 60 --to 180 -j DROP #211.94.66.147
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|d5a9fb23|" --from 60 --to 180 -j DROP #213.169.251.35
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|d5ba2105|" --from 60 --to 180 -j DROP #213.186.33.5
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|d88bd590|" --from 60 --to 180 -j DROP #216.139.213.144
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|d8ddbcb6|" --from 60 --to 180 -j DROP #216.221.188.182
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|d8eab30d|" --from 60 --to 180 -j DROP #216.234.179.13
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|dd08451b|" --from 60 --to 180 -j DROP #221.8.69.27
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|1759053c|" --from 60 --to 180 -j DROP #23.89.5.60
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|1833b800|" --from 60 --to 180 -j DROP #24.51.184.0
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|f3b9bb1e|" --from 60 --to 180 -j DROP #243.185.187.30
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|f3b9bb27|" --from 60 --to 180 -j DROP #243.185.187.39
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|f9812e30|" --from 60 --to 180 -j DROP #249.129.46.48
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|fd9d0ea5|" --from 60 --to 180 -j DROP #253.157.14.165
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|1c797e8b|" --from 60 --to 180 -j DROP #28.121.126.139
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|1c0dd800|" --from 60 --to 180 -j DROP #28.13.216.0
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|253d369e|" --from 60 --to 180 -j DROP #37.61.54.158
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|04c15000|" --from 60 --to 180 -j DROP #4.193.80.0
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|042442b2|" --from 60 --to 180 -j DROP #4.36.66.178
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|2e147efc|" --from 60 --to 180 -j DROP #46.20.126.252
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|2e2618d1|" --from 60 --to 180 -j DROP #46.38.24.209
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|2e52ae44|" --from 60 --to 180 -j DROP #46.82.174.68
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|31027b38|" --from 60 --to 180 -j DROP #49.2.123.56
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|364c8701|" --from 60 --to 180 -j DROP #54.76.135.1
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|3b1803ad|" --from 60 --to 180 -j DROP #59.24.3.173
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|3d361c06|" --from 60 --to 180 -j DROP #61.54.28.6
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|402158a1|" --from 60 --to 180 -j DROP #64.33.88.161
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|4021632f|" --from 60 --to 180 -j DROP #64.33.99.47
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|4042a3fb|" --from 60 --to 180 -j DROP #64.66.163.251
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|4168cafc|" --from 60 --to 180 -j DROP #65.104.202.252
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|41a0db71|" --from 60 --to 180 -j DROP #65.160.219.113
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|42ce0bc2|" --from 60 --to 180 -j DROP #66.206.11.194
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|422dfced|" --from 60 --to 180 -j DROP #66.45.252.237
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|480ecd68|" --from 60 --to 180 -j DROP #72.14.205.104
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|480ecd63|" --from 60 --to 180 -j DROP #72.14.205.99
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|4a75398a|" --from 60 --to 180 -j DROP #74.117.57.138
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|4a7d7f66|" --from 60 --to 180 -j DROP #74.125.127.102
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|4a7d9b66|" --from 60 --to 180 -j DROP #74.125.155.102
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|4a7d2766|" --from 60 --to 180 -j DROP #74.125.39.102
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|4a7d2771|" --from 60 --to 180 -j DROP #74.125.39.113
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|4d04075c|" --from 60 --to 180 -j DROP #77.4.7.92
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|4e10310f|" --from 60 --to 180 -j DROP #78.16.49.15
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|08695400|" --from 60 --to 180 -j DROP #8.105.84.0
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|0807c62d|" --from 60 --to 180 -j DROP #8.7.198.45
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|591f376a|" --from 60 --to 180 -j DROP #89.31.55.106
iptables -t mangle -I PREROUTING -p udp --sport 53 -m string --algo bm --hex-string "|5d2e0859|" --from 60 --to 180 -j DROP #93.46.8.89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment