Skip to content

Instantly share code, notes, and snippets.

@vistad
Forked from AriPerkkio/ipleak.sh
Created November 19, 2024 11:58
Show Gist options
  • Save vistad/e37e01c5c5601e5461aa5be2ac6a434c to your computer and use it in GitHub Desktop.
Save vistad/e37e01c5c5601e5461aa5be2ac6a434c to your computer and use it in GitHub Desktop.
ipleak.net CLI
#!/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
@vistad
Copy link
Author

vistad commented Nov 19, 2024

#!/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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment