Files
vulnerability-list/search_exploits/search_exploit.py

16 lines
421 B
Python
Raw Normal View History

2019-11-29 21:37:22 +08:00
# -*- coding: utf-8 -*-
import requests
def attack(URL):
print(f'[+]开始在exploitalert中搜索 {URL} 存在的历史漏洞。')
payload = {'name': URL}
r = requests.get("https://www.exploitalert.com/api/search-exploit", params=payload)
for json in r.json():
print(json)
print(f'[+]在exploitalert中搜索 {URL} 存在的历史漏洞结束。')
if __name__ == "__main__":
attack()