Skip to content

Instantly share code, notes, and snippets.

View murpg's full-sized avatar

George Murphy murpg

View GitHub Profile
@murpg
murpg / addToHosts.ps1
Created August 31, 2022 12:19
This file gathers your local IP and adds an entry to your hosts file.
$ipV4 = Test-Connection -ComputerName (hostname) -Count 1 | Select -ExpandProperty IPV4Address
$localIP = $ipV4.IPAddressToString
$file = "C:\Windows\System32\drivers\etc\hosts"
$hostfile = Get-Content $file
$hostfile += "$localIP luceesite1.com"
$hostfile += "$localIP luceesite2.com"
Set-Content -Path $file -Value $hostfile -Force
@murpg
murpg / task.cfc
Created February 3, 2022 18:02 — forked from bdw429s/task.cfc
Scan a folder of jars recursively for CVE-2021-44228 vulnerability
/**
* Scan all jars in folder recursivley for log4j vuln
*/
component {
property name="progressableDownloader" inject="ProgressableDownloader";
property name="progressBar" inject="ProgressBar";
/**
* @scanPath absolute or relative path to folder to look for jars
*/