Chapter 3 - Scanning & Enumeration Flashcards
Connection-Oriented vs Connectionless Communication
Connectionless: UDP, Fire and forget, don’t care if recipient has bandwidth to accept message. Connection-Oriented: TCP, Error checkin and high overhead, uses TCP handshake.
SYN Flag
Synchronize flag that is set during initial communication establishment. It indicates negotiation of parameters and sequence numbers.
ACK Flag
Acknowledgement - This flag is set as an acknowledgement to SYN flags. This flag is set on all segments after the initial SYN flag
RST Flag
Reset - This flag forces a termination of communications (in both directions)
FIN Flag
Finish - This flag signifies an ordered close to communications
PSH Flag
Push - This flag forces the delivery of data without concerns for any buffering. In other words, the receiving device need not wait for the buffer to fill up before processing data.
URG Flag
Urgent - When this flag is set, it indicates the data inside is being sent out of band. Cancelling a message mid-stream is one example.
TCP 3-way Handshake sequence numbers process
Sequence numbers increase on new communication. Example is computers A and B. A would increment B’s sequence number. A would never increment it’s own sequence.
What is the purpose of the IANA (Internet Assigned Numbers Authority)
Maintains Service Name and Transport Protocol Port Number Registry which lists all port number reservations. Oversees global IP address allocation
What range of ports are considered to be “well-known”
0 - 1023
What ports are registered ports
1024 - 1049, 51
What are the Dynamic Ports
49, 152 - 165, 535
FTP port
TCP port 20/21
SSH
TCP 22
Telnet
TCP 23
SMTP
TCP 25
DNS
TCP/UDP 53. (TCP 53 is zone transfer)
DHCP
UDP 67
TFTP
UDP 69
HTTP
TCP 80
POP3
TCP 110
RPC
TCP/135
NetBIOS
TCP/UDP 137-139
IMAP
TCP/143