Created
March 19, 2019 14:38
-
-
Save AlexisDucastel/1df4efd6b4e8b0253edf0e67874a9283 to your computer and use it in GitHub Desktop.
List listening TCP ports on linux
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
cat /proc/net/tcp| cut -c -36|grep '0A$'| cut -c 16-19| while read line; do echo $((16#$line)); done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment