Last active
October 13, 2017 23:15
-
-
Save MrThreat/fb5cbef22ae590b3525697c75b03b104 to your computer and use it in GitHub Desktop.
get ip geolocation powershell v2 |v3 |v3.0+ | and curl nix*
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
For peerlyst @grotezinfosec | |
Requires powershelgl 3.0 | |
If your running nix* use: | |
curl http://freegeoip.net/xml/ | |
OR | |
Powershell V2 (flare VM [malware analysis] | |
(new-object System.Net.WebClient).DownloadString("http://freegeoip.net/xml/") | |
#> | |
#requires -Version 3 | |
$source = [string]$args[0] | |
$infoService = "http://freegeoip.net/xml/$source" | |
$geoip = Invoke-RestMethod -Method Get -URI $infoService | |
$geoip.Response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment