Hacking - Section 5 (Scanning) Flashcards
What are the goals of scanning?
Find vulnerabilities on the machine, focusing on technology information.
When scanning, what are we looking for?
Open ports on the machine of the target, which are basically connections that allow communication between the computer and the internet, websites, the software and the version.
What are the most secure machines?
Home devices, and devices that are not hosting or are connect to a network (like a enterprise or a server host).
65535 ports at total.
What are the best machines to exploit? and why?
Enterprises ones and those which are connected to a big server or hosting one, since they are obligated to maintain an open post.
What is the TCP?
A protocol that sends data, known as packet.
Transmission control protocol, in order to appear things in our screen or the internet, we send a TCP and receive one from the network host, so you can both start communicating.
Checks if the other part has received the data, and if not, it keeps it saved at the server that’s why it is the slower one.
What is the three way handshake?
They are the steps to stablish communication
1 - SYN (synchronize sequence number)
informs that the client wants to start a communication w/ the server.
2- SYN/ACK- server sends a response to the client.
3- ACK - client receives the answer and acknowledge it, starting the connection.
What is the UDP?
User data protocol, much faster than the TCP, and error connection is not necessary, it won’t check if the others received the data, that’s why it is faster, used to transmit broadcasts.
What is the arp command? how to use it?
A command that discover devices connected to a network (ip).
sudo + arp + –help
sudo + arp + -a + IP
What is the netdiscover command? how to use it?
A command that discover devices connected into a network (ip).
sudo + netdiscover + -r + IP
With what numbers does routers usually finish in their IP adress?
1
What is the command to find routers?
netstat - nr
What is nmap? how to use it (open/scan) ?
its a command that will scan a device in order to find open ports in it.
open - sudo + nmap + - -help
scan - sudo + nmap+ IP
How to scan all the devices connected to a network?
Type all the IP address of the machine and replace the last number with /24?
What is the command to scan quickly on the nmap?
Can u run it normally?
Tell some characteristics of it (speed/traces).
SYN scan (sS) sudo + nmap + -sS + IP No, u need sudo permission. It is faster because it does not start a TCP connection, and it leaves less traces than the other (not so detectable). Only the DYR is being sent on the 3 way handshake.
What is the nmap scan that is easily detectable and why?
sudo + nmap + -sT + IP
Stablishes a full TCP connection.