Skip to content

Commit

Permalink
Update poc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AabyssZG authored Jul 25, 2024
1 parent e2b8b8d commit ccb2ffd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/poc.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def CVE_2022_22947(url, proxies):
f2 = open("vulout.txt", "a")
f2.write("[+] [CVE-2022-22947] " + url + '\n')
f2.close()
else:
cprint("[-] 目标 " + url + " 验证CVE-2022-22947漏洞不存在", "yellow")
re4 = requests.delete(url=url + "actuator/gateway/routes/hacktest", headers=headers2, timeout=5 ,verify=False, proxies=proxies)
re5 = requests.post(url=url + "actuator/gateway/refresh", headers=headers2, timeout=5 ,verify=False, proxies=proxies)
else:
cprint("[-] 目标 " + url + " 验证CVE-2022-22947漏洞不存在", "yellow")
re4 = requests.delete(url=url + "actuator/gateway/routes/hacktest", headers=headers2, timeout=5 ,verify=False, proxies=proxies)
re5 = requests.post(url=url + "actuator/gateway/refresh", headers=headers2, timeout=5 ,verify=False, proxies=proxies)
except KeyboardInterrupt:
print("Ctrl + C 手动终止了进程")
sys.exit()
Expand Down

0 comments on commit ccb2ffd

Please sign in to comment.