Docsity

eLearnSecurity Junior Penetration Tester eJPT Practice Exam, Exams of Technology

Toggle sidebar
bg1
eLearnSecurity Junior Penetration Tester eJPT
Practice Exam
**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)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download eLearnSecurity Junior Penetration Tester eJPT Practice Exam and more Exams Technology in PDF only on Docsity!

Practice Exam

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)

Practice Exam

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

Practice Exam

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

Practice Exam

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

Practice Exam

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

Practice Exam

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

Practice Exam

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)

Practice Exam

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

Practice Exam

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

Practice Exam

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

Practice Exam

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

Practice Exam

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

Practice Exam

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.

Practice Exam

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