Skip to content

Commit

Permalink
Update spidercat.ps1
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
byinarie authored Mar 7, 2023
1 parent 5b9c16f commit 3221fbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spidercat.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3221fbb

Please sign in to comment.