复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25import requests import json url = '这里填地址!!!' user = [] passwd =[] Cookie = input('输入session:') CSRF = input('输入CSRF-Token:') headers = {'Accept':'application/json','Content-Type': 'application/json','Cookie':Cookie, 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0','Referer':url+'/admin/users/new','CSRF-Token':CSRF} file = open('user.txt','r',encoding="utf-8") file1 = open('passwd.txt','r',encoding="utf-8") for i in file.readlines(): user.append(i[:-1]) for j in file1.readlines(): passwd.append(j[:-1]) print(user) print(passwd) for k in range(len(user)): data = {"name":user[k],"email":str(k)+"1@qq.com","password":passwd[k],"type":"user","verified":"false","hidden":"false","banned":"false"} response = requests.post(url=url+"/api/v1/users", headers=headers, data=json.dumps(data)) print(response.text) file.close() file1.close()
最后
以上就是生动魔镜最近收集整理的关于CTFd用户批量注册脚本的全部内容,更多相关CTFd用户批量注册脚本内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复