Skip to content

Commit

Permalink
Merge pull request #1 from byinarie/patch-1
Browse files Browse the repository at this point in the history
Replace curl.exe with native Powershell
  • Loading branch information
PrettyBoyCosmo authored Mar 9, 2023
2 parents cc87a95 + 3221fbb commit beba5c2
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 beba5c2

Please sign in to comment.