Files
Und3rf10w-Aggressor-scripts/postExploit/scripts/Open-HiddenInternetExplorer.ps1
T
2016-05-24 10:43:08 -04:00

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)
}