-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexp.py
37 lines (33 loc) · 1.32 KB
/
exp.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import requests
from bs4 import BeautifulSoup
import sys
import time
banner = '''
\033[32m.----..-. .-..----. .-. .----. .-. .---. .----..-. .-. .----. .----. .--. .-. .-.\033[0m
\033[31m| {_ \ \/ / | {} }| | / {} \| |{_ _} { {__ | {_} |/ {} \| {} \ / {} \ | `| |\033[0m
\033[31m| {__ / /\ \ | .--' | `--.\ /| | | | .-._} }| { } |\ /| // /\ \| |\ |\033[0m
\033[32m`----'`-' `-'`-' `----' `----' `-' `-' `----' `-' `-' `----' `----' `-' `-'`-' `-'\033[0m
\033[34mVersion 1.0.5\033[0m
\033[34;1mby 0xAgun\033[0m
'''
for char in banner:
sys.stdout.write(char)
sys.stdout.flush()
time.sleep(0.01)
pass
base_url = 'https://exploits.shodan.io/?q='
cve = input('enter the cve (example CVE-2017-9841): ')
newurl = base_url+cve
req = requests.get(newurl).text
soup = BeautifulSoup(req, 'lxml')
name = soup.find_all('div', class_='result')
for element in name:
atag = element.a.text
links = element.a['href']
details = element.pre.text
print(f"\033[36mEXploit Name: {atag}")
print("-----------------------------------")
print("\033[34m",details)
print("-----------------------------------")
print("\033[33mLink: ",links,"\033[0m")
print("\n")