Answer the questions in bold. Its a Networking Lab. Fun Commands 1. a. What is t
ID: 3821548 • Letter: A
Question
Answer the questions in bold. Its a Networking Lab.
Fun Commands 1. a. What is the netstat command to see what sockets are listening on TCP (specifically IPv4)? b. What services are currently listening? c. Are there any services that are strictly locally bound? How can you tell which ones are locally bound or not? 2. a. What is the command to scan ports 20-25 on localhost only? b. What ports/services are open on your CentOS? c. What OS does nmap think you're running? 3. a. sudo tcpdump -i [WHICH INTERFACE?] -nn port [WHICH PORT DOES FTP RUN ON?] -w tcpdump.out b. Now login to your ftp server from your mac again. c. sudo tcpdump -r tcpdump.out -XX d. Find your login information. e. Reflect on the lesson here (how is it possible, how can you prevent it, is it really that insecure?) Firewall Action 1. Use the firewall-cmd to drop all incoming pings. a. Try to ping your CentOS machine from your Mac. It should not work. b. Write down the command. c. Show me it working. 2. Remove the previous rule created (the one from question 1) a. Write down the command. b. Show me it working. Understanding Traceroute 1. Find a working traceroute server from this page. 2. Run a traceroute from one of the links. a. It will traceroute from its location to our school. 3. Now run a traceroute from the command line to the host that you used from the link. 4. Include the output in a text file for both. 5. Why may the traceroutes be different? 6. What do the asterisks mean in a traceroute? 7. Do you see cenic.net anywhere in the traceroute? Goto their website. 8. What is the role of an "Internet backbone" company?Explanation / Answer
1.a)
To list the TCP ports that are being listened on, and the name of each listener’s daemon and its PID, run the following command:
sudo netstat -plnt
b)netstat command to find open ports:
netstat --listen (or) netstat -l
2)nmap
a)scan port 20-25 use below command
sudo nmap -sS -o -p 20-25 127.0.0.1
b)The following command issued from the console determines which ports are listening for TCP connections from the network
c)
Nmap is one of such tools. It sends seven TCP/IP crafted packets (called tests) and waits for the answer. Results are checked against a database of known results (OS signatures database). This database is a text file that contains the result answered (signature) by each OS known. Thus, if the answer matches any of the entries in the database, we can guess that the remote OS is the same that the one in the database. Some Nmap packets are sent to an open port and the others to a closed port; depending on that results, the remote OS is guessed.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.