-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d7ee47
commit a262955
Showing
3 changed files
with
69 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,54 @@ | ||
# AS6939 - The Shadow Server Foundation | ||
# AS6939 - Hurricane Electric / The Shadowserver Foundation | ||
#: ipset -exist restore <ipset/shadow-server.ipset | ||
#: iptables -w -I myattackers-ipset -m set --match-set shadow-server src -j REJECT | ||
create shadow-server hash:net family inet hashsize 64 maxelem 32 | ||
create shadow-server hash:net family inet hashsize 64 maxelem 64 | ||
flush shadow-server | ||
#$ for N in {00..21};do dig +short scan-${N}.shadowserver.org. A;done|sortip -u|sed -e 's#^#add shadow-server #' | ||
add shadow-server 65.49.20.66 | ||
add shadow-server 65.49.20.67 | ||
add shadow-server 65.49.20.68 | ||
add shadow-server 65.49.20.69 | ||
add shadow-server 74.82.47.2 | ||
add shadow-server 74.82.47.3 | ||
add shadow-server 74.82.47.4 | ||
add shadow-server 74.82.47.5 | ||
add shadow-server 184.105.139.66 | ||
add shadow-server 184.105.139.67 | ||
add shadow-server 184.105.139.68 | ||
add shadow-server 184.105.139.69 | ||
add shadow-server 184.105.139.70 | ||
add shadow-server 184.105.247.194 | ||
add shadow-server 184.105.247.195 | ||
add shadow-server 184.105.247.196 | ||
add shadow-server 184.105.247.197 | ||
add shadow-server 184.105.247.238 | ||
add shadow-server 216.218.206.66 | ||
add shadow-server 216.218.206.67 | ||
add shadow-server 216.218.206.68 | ||
add shadow-server 216.218.206.69 | ||
# old hostnames: scan-{00..21}.shadowserver.org. | ||
#$ for H in scan-{00..50}{a..o}.shadowserver.org.; do dig +short ${H} A; done | ||
# 64.62.197.* | ||
64.62.197.0/25 | ||
64.62.197.128/26 | ||
64.62.197.192/27 | ||
64.62.197.224/31 | ||
64.62.197.226/32 | ||
# 65.49.20.* | ||
65.49.20.70/31 | ||
65.49.20.72/29 | ||
65.49.20.80/28 | ||
65.49.20.96/28 | ||
65.49.20.112/29 | ||
65.49.20.120/30 | ||
65.49.20.124/31 | ||
65.49.20.126/32 | ||
# 74.82.47.* | ||
74.82.47.6/31 | ||
74.82.47.8/29 | ||
74.82.47.16/28 | ||
74.82.47.32/27 | ||
# 184.105.139.* | ||
184.105.139.71/32 | ||
184.105.139.72/29 | ||
184.105.139.80/28 | ||
184.105.139.96/28 | ||
184.105.139.112/29 | ||
184.105.139.120/30 | ||
184.105.139.124/31 | ||
184.105.139.126/32 | ||
# 184.105.247.* | ||
184.105.247.198/31 | ||
184.105.247.200/29 | ||
184.105.247.208/28 | ||
184.105.247.224/28 | ||
184.105.247.240/29 | ||
184.105.247.248/30 | ||
184.105.247.252/31 | ||
184.105.247.254/32 | ||
# 216.218.206.* | ||
216.218.206.70/31 | ||
216.218.206.72/29 | ||
216.218.206.80/28 | ||
216.218.206.96/28 | ||
216.218.206.112/29 | ||
216.218.206.120/30 | ||
216.218.206.124/31 | ||
216.218.206.126/32 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
# | ||
# Find Unicode Format characters in the database. | ||
# | ||
# VERSION :0.1.0 | ||
# DOCS :https://www.unicode.org/reports/tr44/#GC_Values_Table | ||
# REFS :https://unicode.org/charts/PDF/U2000.pdf | ||
|
||
set -e | ||
|
||
# Search only | ||
wp db search '\p{Cf}' --regex --regex-flags=u --all-tables | ||
# Prepare for removal | ||
wp search-replace '\p{Cf}' 'Cf#Format' --regex --regex-flags=u --all-tables --precise --log --dry-run | ||
# Remove | ||
wp search-replace '\p{Cf}' '' --regex --regex-flags=u --all-tables --precise --log |