Skip to content

Instantly share code, notes, and snippets.

@crashGoBoom
Last active December 25, 2020 21:37
Show Gist options
  • Save crashGoBoom/e0279fa76ccbd6ce3278a0e846606793 to your computer and use it in GitHub Desktop.
Save crashGoBoom/e0279fa76ccbd6ce3278a0e846606793 to your computer and use it in GitHub Desktop.
Useful investigation for linux
#!/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