-
-
Save vistad/e37e01c5c5601e5461aa5be2ac6a434c 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
#!/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/dnsdetection/) &
echo $(curl -s https://2$HASH.ipleak.net/dnsdetection/) &
echo $(curl -s https://3$HASH.ipleak.net/dnsdetection/) &
echo $(curl -s https://4$HASH.ipleak.net/dnsdetection/) &
echo $(curl -s https://5$HASH.ipleak.net/dnsdetection/) &
wait
done