




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1. Which OSI layer does a typical ping (ICMP echo request) operate on? A) Application B) Transport C) Network D) Data Link Answer: C Explanation: ICMP is a Network‑layer protocol used for host discovery. Question 2. In passive reconnaissance, which of the following is the most reliable source for employee email addresses? A) DNS zone transfer B) LinkedIn profiles C) WHOIS records D) Netstat output Answer: B Explanation: Public professional profiles often list corporate email addresses. Question 3. Which Nmap scan type sends a SYN packet and never completes the TCP handshake? A) - sT (TCP Connect)
B) - sS (SYN Stealth) C) - sU (UDP) D) - sF (FIN) Answer: B Explanation: SYN Stealth (‑sS) performs a half‑open scan, leaving the handshake incomplete. Question 4. When scanning with Nmap, the option “‑p‑” instructs the tool to: A) Scan only the top 100 ports B) Scan all 65535 TCP ports C) Scan UDP ports only D) Perform a version scan on each port Answer: B Explanation: “‑p‑” tells Nmap to probe every possible TCP port. Question 5. Which Nmap script is used to retrieve service banner information? A) http‑title B) ssl‑cert C) banner D) smb‑os-discovery
Question 8. A null session to a Windows host is useful for: A) Brute‑forcing passwords B) Gaining administrative privileges instantly C) Listing user accounts and shares without authentication D) Performing a SYN flood attack Answer: C Explanation: Null sessions allow unauthenticated enumeration of certain resources. Question 9. Which file on a Linux system commonly contains user account information? A) /etc/passwd B) /etc/shadow C) /var/log/auth.log D) /proc/cpuinfo Answer: A Explanation: /etc/passwd lists usernames, UIDs, and home directories. Question 10. The “searchsploit” utility is used to: A) Scan networks for open ports B) Search exploit‑DB for known vulnerabilities matching a service version
C) Crack password hashes D) Perform SQL injection attacks Answer: B Explanation: searchsploit queries the local Exploit‑DB archive for matching exploits. Question 11. In Metasploit, which command sets the remote target IP address? A) set RHOSTS B) set LHOST C) set PAYLOAD D) set TARGET Answer: A Explanation: RHOSTS defines the remote host(s) the exploit will attack. Question 12. Which Metasploit payload provides a reverse TCP shell? A) windows/meterpreter/reverse_tcp B) linux/x86/meterpreter/bind_tcp C) java/jsp_shell_reverse_tcp D) cmd/unix/reverse_perl Answer: A
A) MD5‑crypt ($1$) B) bcrypt ($2a$) C) scrypt D) PBKDF Answer: A Explanation: John includes native support for the traditional MD5‑crypt format. Question 16. Which command in Linux upgrades a basic netcat shell to a fully interactive TTY? A) python - c 'import pty; pty.spawn("/bin/bash")' B) ctrl‑z C) export TERM=xterm D) stty raw - echo Answer: A Explanation: The Python pty module spawns a pseudo‑terminal, giving a proper TTY. Question 17. Which of the following is the most common method to transfer files from a compromised Linux host to the attacker? A) scp using the attacker’s SSH key B) netcat listening on a port and piping data
C) FTP with anonymous login D) SMB share mounted on the target Answer: B Explanation: Netcat can quickly stream files without requiring additional services. Question 18. On a compromised Windows machine, which command lists all active network connections? A) ipconfig /all B) netstat - ano C) route print D) ping - t 127.0.0. Answer: B Explanation: netstat - ano shows connections with owning process IDs. Question 19. Which file on a Linux system often contains password hashes for local users? A) /etc/passwd B) /etc/shadow C) /var/log/secure D) /proc/meminfo Answer: B
A) portfwd B) socks_proxy C) route add D) meterpreter > background Answer: B Explanation: The socks_proxy command turns a Meterpreter session into a SOCKS5 proxy. Question 23. Which command adds a static route on a compromised Linux host to reach a remote subnet via the host’s internal interface? A) ip route add 10.0.0.0/24 via 192.168.1.10 dev eth B) route add 10.0.0.0 mask 255.255.255.0 192.168.1. C) netstat - r add 10.0.0.0/24 192.168.1. D) ifconfig eth0 10.0.0.1 netmask 255.255.255.0 up Answer: A Explanation: “ip route add” defines a new routing entry for the specified subnet. Question 24. Which Nmap timing template provides a good balance between speed and stealth for most scans? A) - T0 (Paranoid) B) - T2 (Polite)
C) - T4 (Aggressive) D) - T5 (Insane) Answer: C Explanation: - T4 speeds up scanning while still avoiding obvious detection. Question 25. When performing an ARP scan on a local subnet, which tool can be used to discover live hosts without sending IP packets? A) arp-scan B) ping - c 1 C) traceroute D) nmap - sS Answer: A Explanation: arp-scan sends ARP requests directly to the Ethernet layer. Question 26. Which of the following is a typical sign that a web server is running an outdated version of Apache? A) The “Server” header displays “Apache/2.2.15” B) The site uses HTTPS C) The server returns a 404 for /robots.txt D) The server supports HTTP/ Answer: A
Question 29. A “banner grabbing” technique is most useful for obtaining: A) Encryption keys B) Service version information C) User passwords D) Network topology maps Answer: B Explanation: Banners often contain product names and version numbers. Question 30. Which Linux command displays the current routing table? A) ip route show B) netstat - i C) ifconfig - a D) traceroute - n Answer: A Explanation: “ip route show” lists all routes known to the kernel. Question 31. Which of the following is a default credential often found on Cisco routers? A) admin / admin B) cisco / cisco
C) root / toor D) guest / guest Answer: B Explanation: Many Cisco devices ship with the username/password “cisco”. Question 32. Which Metasploit payload is best suited for Windows systems when a firewall blocks outbound connections? A) windows/meterpreter/reverse_tcp B) windows/meterpreter/bind_tcp C) windows/meterpreter/reverse_http D) windows/meterpreter/reverse_https Answer: B Explanation: A bind shell listens on the target, allowing inbound connections. Question 33. When cracking a SHA‑512 hash with Hashcat, which attack mode should be used for a dictionary attack? A) - a 0 B) - a 1 C) - a 3 D) - a 6 Answer: A
Question 36. Which technique is used to bypass a simple IP‑based firewall when you have a foothold inside the network? A) Port knocking B) Tunneling through an allowed outbound protocol (e.g., HTTP) C) ARP poisoning D) MAC address spoofing Answer: B Explanation: Tunneling uses permitted traffic to encapsulate malicious data. Question 37. Which Nmap script is used to enumerate SMB shares on a target? A) smb‑enumerate B) smb‑share‑enum C) smb‑ls D) smb‑vuln‑scanner Answer: C Explanation: The “smb‑ls” script lists shared resources on SMB servers. Question 38. When performing a DNS zone transfer (AXFR), which tool can be used to request the entire zone? A) dig axfr @ns.example.com example.com
B) nslookup - type=any example.com C) host - l example.com ns.example.com D) ping - t ns.example.com Answer: A Explanation: The “dig axfr” command asks the authoritative server for the full zone data. Question 39. Which of the following is a typical indicator that a web application is vulnerable to SQL injection? A) The server returns a 200 OK for all requests B) Error messages reveal database syntax errors C) The login page uses HTTPS D) The URL contains a hash fragment Answer: B Explanation: Database error messages often expose the underlying SQL syntax. Question 40. In the context of password cracking, what does “salting” a hash accomplish? A) Increases hash length for easier cracking B) Adds random data to prevent pre‑computed attacks C) Converts the hash to base
Question 43. What is the primary purpose of a “reverse shell” in penetration testing? A) To push a malicious payload onto the target B) To have the target initiate a connection back to the attacker, bypassing inbound firewall rules C) To encrypt traffic between attacker and target D) To perform DNS exfiltration Answer: B Explanation: Reverse shells let the compromised host open a connection outward, often allowed by firewalls. Question 44. Which of the following is a recommended practice before running aggressive Nmap scans? A) Disable all IDS/IPS devices B) Obtain explicit permission from the target owner C) Use the - Pn flag to skip host discovery D) Increase the scan speed to - T Answer: B Explanation: Legal and ethical testing requires proper authorization.
Question 45. Which Windows command can be used to list local user accounts? A) net user B) ipconfig /all C) tasklist D) reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Run Answer: A Explanation: “net user” displays all local accounts and their status. Question 46. Which of the following tools can be used to enumerate LDAP information from a Windows domain? A) enum4linux B) nmap – script ldap‑search C) rpcclient D) all of the above Answer: D Explanation: All listed tools can query LDAP for domain data. Question 47. In the context of Metasploit, what does the “setg” command do? A) Sets a global variable for all modules