Skip to content

Latest commit

 

History

History
95 lines (62 loc) · 2.42 KB

File metadata and controls

95 lines (62 loc) · 2.42 KB

Logo

Table of Contents
  1. Description
  2. The Function
  3. Examples
  4. Contact
  5. Acknowledgments

Default Browser

Description

This function will get the default browser of your targets PC

The Function

[Get-DefaultBrowser]

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
}

(back to top)

Examples

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

(back to top)

Contact

I am Jakoby


(back to top)

Acknowledgments


HOME-PAGE

(back to top)