From 7af15f39d6d06e83e0b764bbbf1a8942197263e8 Mon Sep 17 00:00:00 2001 From: brotoskyj Date: Mon, 30 Dec 2024 23:10:54 -0500 Subject: [PATCH] More Features added to Geolocation API --- CHAMP.ps1 | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/CHAMP.ps1 b/CHAMP.ps1 index 92252e3..05bbfad 100644 --- a/CHAMP.ps1 +++ b/CHAMP.ps1 @@ -2222,12 +2222,9 @@ function geoLocationForm() { $ispTextBox.Clear() $countryTextBox.Clear() $ipToSearch = $ipSearchBox.Text - $response = Invoke-RestMethod -Method GET -URI "http://ip-api.com/json/$ipToSearch" - $ispTextBox.Text = $response.isp - $countryTextBox.Text = $response.country - $stateTextBox.Text = $response.regionName - $cityTextBox.Text = $response.city - + $response = Invoke-RestMethod -Method GET -URI "https://api.iplocation.net/?ip=$ipToSearch" + $ispTextBox.Text = $response.ISP + $countryTextBox.Text = $response.Country_Name } $geoLocationFormBox.ShowDialog()