Created
December 22, 2022 13:00
-
-
Save denoww/999fdddccf4cb3cc433e9be0c46e0c50 to your computer and use it in GitHub Desktop.
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
CHECK="do while" | |
while [[ ! -z $CHECK ]]; do | |
PORT=$(( ( RANDOM % 30000 ) + 1025 )) | |
CHECK=$(sudo netstat -ap | grep $PORT) | |
done | |
echo $PORT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment