mirror of
https://github.com/Und3rf10w/Aggressor-scripts
synced 2026-06-08 12:46:53 +00:00
24 lines
734 B
PowerShell
24 lines
734 B
PowerShell
# Adapted from Powershell Empire (https://github.com/PowerShellEmpire/Empire)
|
|
# Supply a url, opens a hidden internet explorer on the url
|
|
# Use this for youtube sites
|
|
# I removed the volume up functionality because I couldn't get it to work
|
|
# @Und3rf10w
|
|
|
|
Function Open-HiddenInternetExplorer
|
|
{
|
|
[CmdletBinding()]
|
|
Param (
|
|
[Parameter(Mandatory = $False, Position = 0)]
|
|
[ValidateNotNullOrEmpty()]
|
|
[String] $VideoURL = $null
|
|
)
|
|
if (!$VideoURL)
|
|
{
|
|
Write-Host "Invalid URL supplied. Exiting..."
|
|
Exit 1
|
|
}
|
|
#Create hidden IE Com Object
|
|
$IEComObject = New-Object -com "InternetExplorer.Application"
|
|
$IEComObject.visible = $False
|
|
$IEComObject.navigate($VideoURL)
|
|
} |