-
-
Save TomaszKlosinski/a322dfa7458a9b4b6130354073abdf2d to your computer and use it in GitHub Desktop.
Check open ports without netstat or lsof
This file contains 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
declare -a array=($(tail -n +2 /proc/net/tcp | cut -d":" -f"3"|cut -d" " -f"1")) && for port in ${array[@]}; do echo $((0x$port)); done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment