Table of Contents
This function will get the default browser of your targets PC
This function will make a call to the registry to get the default Browser using the following syntax:
$Default-Browser = Get-DefaultBrowser
function Get-DefaultBrowser{
# Param([parameter(Mandatory=$true)][alias("Computer")]$ComputerName)
$ComputerName = hostname
$Registry = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $ComputerName)
$RegistryKey = $Registry.OpenSubKey("SOFTWARE\\Classes\\http\\shell\\open\\command")
#Get (Default) Value
$Value = $RegistryKey.GetValue("")
return $Value
}
Listed below are payloads that have used one of these functions:
No payloads so far have used this function, please feel free to submit your own scripts that have used this function

