0% found this document useful (0 votes)
33 views

Assignment

Uploaded by

Indraja Ponnu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

Assignment

Uploaded by

Indraja Ponnu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Assignment

THE CYBERHOST Cyber Security Intern

Name-Indraja Ushakumari

ROOM-NMAP
Task 2
1) What networking constructs are used to direct traffic to the right application on a server?
Ans :- Ports
2) How many of these are available on any network-enabled computer?
Ans :- 65535
3) [Research] How many of these are considered "well-known"?
(These are the "standard" numbers mentioned in the task)
Ans :- 1024

Task 3
1) What is the first switch listed in the help menu for a 'Syn Scan' (more on this later!)?
Ans :- -sS
2) Which switch would you use for a "UDP scan"?
Ans :- -sU
3) If you wanted to detect which operating system the target is running on, which switch would
you use?
Ans :- -O
4) Nmap provides a switch to detect the version of the services running on the target. What is this
switch?
Ans :- -sV
5) The default output provided by nmap often does not provide enough information for a
pentester. How would you increase the verbosity?
Ans :- -v
Verbosity level one is good, but verbosity level two is better! How would you set the verbosity
level to two?
Ans :- -vv
6) What switch would you use to save the nmap results in three major formats?
Ans :- -oA
7) What switch would you use to save the nmap results in a "normal" format?
Ans :- -oN
8) A very useful output format: how would you save results in a "grepable" format?
Ans :- -oG
9)How would you activate this setting?
Ans :- -A
10) How would you set the timing template to level 5?
Ans :- -T5
11) How would you tell nmap to only scan port 80?
Ans :- -p 80
12) How would you tell nmap to scan ports 1000-1500?
Ans :- -p 1000-1500
13) How would you tell nmap to scan all ports?
Ans :- -p-
14) How would you activate a script from the nmap scripting library (lots more on this later!)?
Ans :- --script
18) How would you activate all of the scripts in the "vuln" category?
Ans :- --script=vuln

Task 5
1) Which RFC defines the appropriate behaviour for the TCP protocol?
Ans :- RFC 793
2) If a port is closed, which flag should the server send back to indicate this?
Ans :- RST

Task 6
1) There are two other names for a SYN scan, what are they?
Ans :- Half-Open, stealth
2) Can Nmap use a SYN scan without Sudo permissions (Y/N)?
Ans :- N
Task 7
1) If a UDP port doesn't respond to an Nmap scan, what will it be marked as?
Ans :- open|filtered
2) When a UDP port is closed, by convention the target should send back a "port unreachable"
message. Which protocol would it use to do so?
Ans :- ICMP

Task 8
1) Which of the three shown scan types uses the URG flag?
Ans :- xmas
2) Why are NULL, FIN and Xmas scans generally used?
Ans :- Firewall Evasion
3) Which common OS may respond to a NULL, FIN or Xmas scan with a RST for every port?
Ans :- Microsoft Windows

Task 9
1) How would you perform a ping sweep on the 172.16.x.x network (Netmask: 255.255.0.0) using
Nmap? (CIDR notation)
Ans :- nmap -sn 172.16.0.0/16

Task 10
1) What language are NSE scripts written in?
Ans :- Lua
2) Which category of scripts would be a very bad idea to run in a production environment?
Ans :- intrusive

Task 11
1) What optional argument can the ftp-anon.nse script take?
Ans :- maxlist

Task 12
1) What is the filename of the script which determines the underlying OS of the SMB server?
Ans :- smb-os-discovery.nse
2) Read through this script. What does it depend on?
Ans :- smb-brute
Task 13
1) Which simple (and frequently relied upon) protocol is often blocked, requiring the use of the -
Pn switch?
Ans :- ICMP
2) [Research] Which Nmap switch allows you to append an arbitrary length of random data to the
end of packets?
Ans :- --data-length

Task 14
1) Does the target (10.10.99.0)respond to ICMP (ping) requests (Y/N)?
Ans :- N
2) Perform an Xmas scan on the first 999 ports of the target -- how many ports are shown to be
open or filtered?
Ans :- 999
3) There is a reason given for this -- what is it?
Ans :- No Response

4) Perform a TCP SYN scan on the first 10000 ports of the target -- how many ports are shown to
be open?
Ans :- 5
5) Open Wireshark (see Cryillic's Wireshark Room for instructions) and perform a TCP Connect
scan against port 80 on the target, monitoring the results. Make sure you understand what's
going on.
Ans :- No answer needed
6) Deploy the ftp-anon script against the box. Can Nmap login successfully to the FTP server on
port 21? (Y/N)
Ans :- Y

You might also like