format
This commit is contained in:
parent
609e1df730
commit
b4f18acecd
|
|
@ -5,6 +5,8 @@
|
||||||
|
|
||||||
https://www.v2ex.com/t/1056361
|
https://www.v2ex.com/t/1056361
|
||||||
|
|
||||||
|
https://www.v2ex.com/t/1055550
|
||||||
|
|
||||||
https://www.v2ex.com/t/1055838
|
https://www.v2ex.com/t/1055838
|
||||||
|
|
||||||
https://www.v2ex.com/t/1055510
|
https://www.v2ex.com/t/1055510
|
||||||
|
|
|
||||||
90
ipdb.txt
90
ipdb.txt
|
|
@ -1,61 +1,41 @@
|
||||||
# 恶意刷量IP段
|
104.247.192.0/24
|
||||||
|
104.247.192.0/24
|
||||||
221.205.168.0/23
|
107.149.204.0/24
|
||||||
60.221.231.0/24
|
107.165.206.0/24
|
||||||
211.90.146.0/24
|
111.121.27.0/24
|
||||||
122.195.22.0/24
|
113.231.202.0/24
|
||||||
118.81.184.0/23
|
118.81.184.0/23
|
||||||
|
122.195.22.0/24
|
||||||
124.163.207.0/24
|
124.163.207.0/24
|
||||||
124.163.208.0/24
|
124.163.208.0/24
|
||||||
|
124.163.208.0/24
|
||||||
|
153.101.64.0/24
|
||||||
|
173.245.76.0/24
|
||||||
|
175.42.154.0/24
|
||||||
|
175.42.155.0/24
|
||||||
|
175.44.72.0/24
|
||||||
|
175.44.73.0/24
|
||||||
183.185.14.0/24
|
183.185.14.0/24
|
||||||
58.220.40.0/24
|
183.224.221.0/24
|
||||||
221.205.0.0/15
|
211.90.146.0/24
|
||||||
|
211.90.146.0/24
|
||||||
|
211.90.147.0/24
|
||||||
|
211.90.147.0/24
|
||||||
|
211.93.170.0/24
|
||||||
|
220.248.203.0/24
|
||||||
221.204.0.0/15
|
221.204.0.0/15
|
||||||
221.90.0.0/15
|
221.205.0.0/15
|
||||||
|
221.205.168.0/23
|
||||||
221.205.169.0/24
|
221.205.169.0/24
|
||||||
|
221.7.251.0/24
|
||||||
|
221.90.0.0/15
|
||||||
61.134.192.0/18
|
222.189.163.0/24
|
||||||
61.240.32.0/21
|
27.221.70.0/24
|
||||||
61.240.42.0/19
|
36.249.150.0/24
|
||||||
118.81.0.0/16
|
47.76.99.0/24
|
||||||
171.116.0.0/18
|
58.220.40.0/24
|
||||||
171.120.0.0/16
|
60.190.128.0/24
|
||||||
183.184.0.0/17
|
60.221.231.0/24
|
||||||
183.191.0.0/16
|
61.146.45.0/24
|
||||||
202.97.128.0/22
|
61.241.177.0/24
|
||||||
202.97.146.0/24
|
84.247.148.0/24
|
||||||
202.97.151.0/24
|
|
||||||
202.97.154.0/23
|
|
||||||
202.99.192.0/24
|
|
||||||
202.99.197.0/24
|
|
||||||
202.99.200.0/24
|
|
||||||
202.99.203.0/24
|
|
||||||
202.99.207.0/22
|
|
||||||
202.99.212.0/24
|
|
||||||
202.99.216.0/21
|
|
||||||
203.93.113.192/26
|
|
||||||
210.52.58.0/24
|
|
||||||
210.82.139.0/24
|
|
||||||
210.82.192.0/24
|
|
||||||
211.90.80.0/21
|
|
||||||
211.93.164.0/22
|
|
||||||
218.26.0.0/19
|
|
||||||
218.26.42.0/23
|
|
||||||
218.26.52.0/22
|
|
||||||
218.26.66.0/24
|
|
||||||
218.26.80.0/21
|
|
||||||
218.26.93.0/24
|
|
||||||
218.26.96.0/19
|
|
||||||
218.26.176.0/21
|
|
||||||
218.26.184.0/22
|
|
||||||
218.26.200.0/22
|
|
||||||
218.26.214.0/22
|
|
||||||
218.26.220.0/24
|
|
||||||
218.26.224.0/21
|
|
||||||
218.26.235.0/24
|
|
||||||
218.26.241.0/22
|
|
||||||
218.26.246.0/24
|
|
||||||
218.26.248.0/24
|
|
||||||
218.26.250.0/23
|
|
||||||
218.26.254.0/23
|
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
# 对ipdb.txt的内容进行排序,并输出到ipdb.txt中
|
||||||
|
import re
|
||||||
|
|
||||||
|
# 将ipdb.txt备份为ipdb_日期_时间.txt 格式
|
||||||
|
import datetime
|
||||||
|
|
||||||
|
date = datetime.datetime.now().strftime('%Y-%m-%d-%H-%M-%S')
|
||||||
|
with open('ipdb.txt', 'r') as f:
|
||||||
|
lines = f.readlines()
|
||||||
|
with open(f'ipdb_{date}.txt', 'w') as f:
|
||||||
|
f.write(''.join(lines))
|
||||||
|
print('备份完成!')
|
||||||
|
|
||||||
|
with open('ipdb.txt', 'r') as f:
|
||||||
|
# 读取内容,并将每行的数据进行排序
|
||||||
|
lines = f.readlines()
|
||||||
|
lines_without_newlines = [line.strip() for line in lines]
|
||||||
|
#print(lines_without_newlines)
|
||||||
|
lines_without_newlines.sort()
|
||||||
|
#print(lines_without_newlines)
|
||||||
|
# 将排序后的内容写入文件,要求每个元素一行
|
||||||
|
with open('ipdb.txt', 'w') as f:
|
||||||
|
f.write('\n'.join(lines_without_newlines))
|
||||||
|
print('排序完成!')
|
||||||
Loading…
Reference in New Issue