Created
February 22, 2023 05:42
-
-
Save fernvenue/6598becaf371b9479cab3ec7ba6ce0bc to your computer and use it in GitHub Desktop.
Get outbound IP address from Google.
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 | |
apt install -y pcregrep | |
curl -s "https://www.google.com/sorry/index" | pcregrep -o1 "IP address: (.*?)<" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment