Skip to content

Instantly share code, notes, and snippets.

View 3xploiton3's full-sized avatar
🏠
Working from home

3xploit 3xploiton3

🏠
Working from home
  • indonesia
View GitHub Profile
@3xploiton3
3xploiton3 / myip.ps1
Created December 16, 2025 07:23
Cek IP berbagai layanan menggunakan powershell di windows 11
# 1. Daftar layanan yang diperkaya dengan informasi endpoint GeoIP
# Setiap layanan kini mendefinisikan cara mengambil IP dan data Geo-nya sendiri.
$services = @(
# Layanan dengan endpoint JSON untuk GeoIP
@{ Name="ipinfo.io"; Cmd4="curl -4 -s --max-time 5 ipinfo.io/ip"; Cmd6="curl -6 -s --max-time 5 ipinfo.io/ip"; GeoUrl="https://ipinfo.io/json"; IspProperty="org"; CityProperty="city" },
@{ Name="ifconfig.co"; Cmd4="curl -4 -s --max-time 5 ifconfig.co"; Cmd6="curl -6 -s --max-time 5 ifconfig.co"; GeoUrl="https://ifconfig.co/json"; IspProperty="asn.name"; CityProperty="city" },
@{ Name="wtfismyip.com"; Cmd4="curl -4 -s --max-time 5 wtfismyip.com/text"; Cmd6="curl -6 -s --max-time 5 wtfismyip.com/text"; GeoUrl="https://wtfismyip.com/json";
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Hello world!</h1>
<script src="script.js"></script>