Skip to content

Instantly share code, notes, and snippets.

@lucenarenato
Created June 19, 2019 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucenarenato/0ba7e18fa56bd5f80bb692cbfc18fbfd to your computer and use it in GitHub Desktop.
Save lucenarenato/0ba7e18fa56bd5f80bb692cbfc18fbfd to your computer and use it in GitHub Desktop.
Verificar Portas e IPs - Servidor - command
Olhar ip e portas
nmap -v localhost
ifconfig
lsof -i
netstat -lptu
nmap -sT -O localhost
netstat -t
Existe uma opção também seria utilizar o netstat:
netstat -tl - lista as conexões abertas de tcp em modo de escuta
netstat -t - lista as conexões tcp estabelecidas
netstat -p - lista os programas que estão usando a conexão
netstat --numeric-ports - não converte o número da porta para ser listado
netstat --numeric-hosts - não converte o número de ip para nome do host
netstat -t -l -p --numeric-ports
lsof -i tcp
Autor: Renato Lucena - 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment