Last active
December 25, 2020 21:37
-
-
Save crashGoBoom/e0279fa76ccbd6ce3278a0e846606793 to your computer and use it in GitHub Desktop.
Useful investigation for 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
#!/bin/bash | |
# Get open network connections | |
lsof -a -i4 -i6 -itcp | |
# Get listening ports | |
netstat -tunlp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment