Skip to content

Instantly share code, notes, and snippets.

@binarykore
Created July 7, 2026 17:57
Show Gist options
  • Select an option

  • Save binarykore/24c0ef0779ccd6ee7483ffc675619644 to your computer and use it in GitHub Desktop.

Select an option

Save binarykore/24c0ef0779ccd6ee7483ffc675619644 to your computer and use it in GitHub Desktop.
Find which Ports are being used..
#!/bin/bash
sudo lsof -i :53 -P -n
//DNS
sudo lsof -i :80 -P -n
//HTTP
sudo lsof -i :443 -P -n
//SSL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment