Last active
December 31, 2024 19:45
-
-
Save AriPerkkio/25a37745b30aeceef311bc7f2446b28d to your computer and use it in GitHub Desktop.
ipleak.net CLI
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
#!/bin/bash | |
echo "IP" | |
curl -s https://ipv4.ipleak.net/json/ | grep -E 'country|city|region|continent|ip' | |
echo -e "\nDNS" | |
for i in {1..5} | |
do | |
HASH=$(head /dev/urandom | tr -dc a-z0-9 | head -c 39 ; echo '') | |
echo $(curl -s https://1$HASH.ipleak.net/dnsdetect/) & | |
echo $(curl -s https://2$HASH.ipleak.net/dnsdetect/) & | |
echo $(curl -s https://3$HASH.ipleak.net/dnsdetect/) & | |
echo $(curl -s https://4$HASH.ipleak.net/dnsdetect/) & | |
echo $(curl -s https://5$HASH.ipleak.net/dnsdetect/) & | |
wait | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/dnsdetection/