Complete the code to identify the tool used for scanning web vulnerabilities.
scanner = "[1]" # Popular open-source web vulnerability scanner
Nikto is a popular open-source web vulnerability scanner used to detect security issues in web servers.
Complete the code to specify the type of vulnerability scanning that tests web applications for security flaws.
scan_type = "[1]" # Scanning focused on web apps
Web vulnerability scanning focuses on finding security weaknesses in web applications.
Fix the error in the code to correctly represent a common vulnerability scanner's output format.
report_format = '[1]' # Format used for detailed vulnerability reports
Most web vulnerability scanners generate reports in HTML format for easy reading in browsers.
Fill both blanks to complete the code that filters vulnerabilities by severity and type.
filtered_vulns = [v for v in vulnerabilities if v.severity [1] 'High' and v.type [2] 'SQL Injection']
The code filters vulnerabilities where severity is exactly 'High' and type is exactly 'SQL Injection'.
Fill all three blanks to create a dictionary comprehension that maps vulnerability names to their risk scores if the score is above 7.
high_risk = {v.[1]: v.[2] for v in vuln_list if v.[3] > 7}This comprehension creates a dictionary with vulnerability names as keys and their risk scores as values, including only those with a risk score greater than 7.