Network scanning with NMAP - benjamin-s-hobbs/reading-notes GitHub Wiki

Network scanning with NMAP

What is a port?

What does a port scanner send to a port to check the current status?

  • It could ping them (ICMP)

  • It could send a SYN packet

When a port scanner sends a request to connect, what are the three possible responses?

  • Acceptance - The recipient was listening for this protocol or info, and takes it on to move it further along the OSI Model Layers. It "opens" the door.

  • Blocked/Denied - The recipient was listening at port, hears something is there, and tells it (through the door) "No, we don't want any! No soliciting." without opening the door

  • Ignored/No-Response - ...

What are TCP and UDP and what is the difference between them?

  • Transmission Control Protocol (TCP)

    • Connection-based protocol

    • 3-way Handshake

      • SYN, SYN-ACK, ACK
  • User Datagram Protocol (UDP)

    • Connectionless protocol

Common Ports

  • Telnet (port 23)

  • SSH (port 22)

  • DNS (port 53)

  • SMTP (port 25, 587//)

  • HTTP (port 80)

  • HTTPS (port 443)

  • RDP (port 3389)

  • Ping (uses ICMP - is not port specific)

What would I like to know more about?