0
0
Cybersecurityknowledge~10 mins

Scanning and enumeration in Cybersecurity - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the tool used for scanning open ports.

Cybersecurity
The command 'nmap [1] 192.168.1.1' is used to scan open ports on a target.
Drag options to blanks, or click blank then click option'
A-p
B-sS
C-v
D-o
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-p' which specifies ports but does not perform the scan type.
Using '-v' which increases verbosity but does not scan.
Using '-o' which is for output options.
2fill in blank
medium

Complete the sentence to describe enumeration.

Cybersecurity
Enumeration is the process of [1] information about a target system after scanning.
Drag options to blanks, or click blank then click option'
Agathering detailed
Bignoring
Cdeleting
Dhiding
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'ignoring' which is the opposite of enumeration.
Choosing 'hiding' or 'deleting' which are unrelated actions.
3fill in blank
hard

Fix the error in the command to perform a UDP scan.

Cybersecurity
nmap [1] 192.168.1.1
Drag options to blanks, or click blank then click option'
A-sS
B-sN
C-sU
D-sT
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-sS' which is for TCP SYN scans.
Using '-sT' which is a TCP connect scan.
Using '-sN' which is a TCP null scan.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps services to their port numbers if the port is less than 1024.

Cybersecurity
services = { [1]: [2] for [1], [2] in service_list if [2] < 1024 }
Drag options to blanks, or click blank then click option'
Aservice
Bport
Cservice_list
Dport_number
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'service_list' as a key or value which is a list, not a single item.
Using 'port_number' which is not defined in the loop.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps uppercase usernames to their IPs if the IP is not empty.

Cybersecurity
user_ips = { [1]: [2] for [3], [2] in user_data.items() if [2] != '' }
Drag options to blanks, or click blank then click option'
Ausername.upper()
Bip
Cusername
Duser_data
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'user_data' as a loop variable instead of the dictionary.
Not converting username to uppercase for the key.
Using the wrong variable names in the loop.