koala9527
2022-05-21 10:50:33 +08:00
闲得无聊,看了下代码,按照钓鱼网站的提交格式限制撸了一些垃圾数据。
```python
import requests
import random
from random import choice
file_path = r'C:\Users\***\Downloads\RW_Password-master\密码字典 4952222 条\密码字典 4952222 条.txt'
def c(u, p):
url = 'http://38.55.192.143/Login.php?action=Login&u=' + \
str(u)+'&p='+str(p)+'&user=DL02'
resp = requests.get(url)
print(url, resp.text)
def read_file():
result = []
with open(file_path, 'r', encoding='utf-8') as f:
for line in f:
if len(line) > 6 and len(line) < 16:
result.append(line)
return result
p_list = read_file()
def run():
while True:
u = random.randint(100000, 9999999999)
p = choice(p_list)
# print(u,p)
c(u, p)
run()
```