Docsity

Certified Kali Linux Professional Practice Exam, Exams of Technology

Toggle sidebar
bg1
Certified Kali Linux Professional Practice
Exam
**Question 1. Which command is used to display the current working directory in Kali Linux?**
A) pwd
B) ls
C) cd
D) whoami
Answer: A
Explanation: `pwd` prints the full pathname of the current working directory.
**Question 2. When installing Kali Linux in a virtual machine, which file format is most
commonly used for the virtual disk?**
A) .iso
B) .vmdk
C) .exe
D) .img
Answer: B
Explanation: VirtualBox and VMware use the `.vmdk` format for virtual hard disks.
**Question 3. Which of the following tools is best suited for searching text patterns within files
on Kali?**
A) netcat
B) grep
C) nmap
D) wireshark
Answer: B
Explanation: `grep` searches for regular expression matches inside files.
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

Partial preview of the text

Download Certified Kali Linux Professional Practice Exam and more Exams Technology in PDF only on Docsity!

Exam

Question 1. Which command is used to display the current working directory in Kali Linux? A) pwd B) ls C) cd D) whoami Answer: A Explanation: pwd prints the full pathname of the current working directory. Question 2. When installing Kali Linux in a virtual machine, which file format is most commonly used for the virtual disk? A) .iso B) .vmdk C) .exe D) .img Answer: B Explanation: VirtualBox and VMware use the .vmdk format for virtual hard disks. Question 3. Which of the following tools is best suited for searching text patterns within files on Kali? A) netcat B) grep C) nmap D) wireshark Answer: B Explanation: grep searches for regular expression matches inside files.

Exam

Question 4. To change file ownership to user bob and group staff, which command is correct? A) chown bob:staff filename B) chmod bob:staff filename C) chgrp bob:staff filename D) chperm bob:staff filename Answer: A Explanation: chown changes the owner and group; the syntax user:group specifies both. Question 5. Which shell built‑in command creates an alias named ll that runs ls - al? A) alias ll='ls - al' B) set ll='ls - al' C) export ll='ls - al' D) define ll='ls - al' Answer: A Explanation: The alias built‑in defines shortcuts for commands. Question 6. In the TCP/IP model, which layer is responsible for routing packets? A) Application B) Transport C) Internet D) Link Answer: C Explanation: The Internet layer (IP) handles logical addressing and routing.

Exam

Question 10. A firewall rule that denies all inbound traffic except SSH (port 22) is an example of what? A) Default‑allow policy B) Default‑deny policy with an allow exception C) NAT rule D) IDS signature Answer: B Explanation: The rule implements a default‑deny stance with a specific allow for SSH. Question 11. Which search engine operator would you use to find PDF files containing the phrase “network security”? A) filetype:pdf "network security" B) type:pdf network security C) pdf:"network security" D) ext:pdf network security Answer: A Explanation: filetype:pdf restricts results to PDFs; quotes ensure exact phrase matching. Question 12. When performing passive DNS enumeration, which technique is most reliable? A) Zone transfer (AXFR) B) Brute‑force subdomain guessing C) Querying public DNS cache services (e.g., SecurityTrails) D) Sending crafted DNS queries to the target server Answer: C Explanation: Public DNS cache services provide historical records without contacting the target.

Exam

Question 13. Which tool can visualize relationships between entities such as domains, IPs, and persons for OSINT? A) Nmap B) Maltego C) Aircrack-ng D) Metasploit Answer: B Explanation: Maltego creates graphs of linked data from various OSINT sources. Question 14. A JPEG file contains EXIF metadata showing GPS coordinates. Which command extracts this data on Kali? A) exiftool image.jpg B) strings image.jpg C) binwalk image.jpg D) dd if=image.jpg bs=1 skip=0 | grep GPS Answer: A Explanation: exiftool reads and displays EXIF metadata, including GPS tags. Question 15. Which of the following is a reliable method for host discovery on a network that blocks ICMP echo requests? A) TCP SYN scan on port 80 B) ARP ping sweep (arp-scan) C) UDP scan on port 53 D) Broadcast ping (ping - b) Answer: B

Exam

Answer: C Explanation: Many services display a banner containing product name and version when a connection is made. Question 19. Which vulnerability scanner is open‑source and integrates with the OpenVAS manager? A) Nessus B) Qualys C) OpenVAS D) Nexpose Answer: C Explanation: OpenVAS (now part of Greenbone) is a free scanner that uses the OpenVAS manager. Question 20. The term “risk” in information security is best defined as: A) The existence of a vulnerability B) The likelihood and impact of a threat exploiting a vulnerability C) The number of patches missing on a system D) The cost of a security product Answer: B Explanation: Risk combines probability (likelihood) with consequence (impact) of a threat exploiting a weakness. Question 21. When reviewing a CVE entry, which field indicates the severity score? A) CWE B) CVSS

Exam

C) CPE

D) CVRF

Answer: B Explanation: CVSS (Common Vulnerability Scoring System) provides a numeric severity rating. Question 22. Which misconfiguration often leads to privilege escalation on Linux systems? A) World‑writable /etc/passwd B) Disabled SELinux C) Unencrypted swap D) Default root password Answer: A Explanation: If /etc/passwd is writable by non‑privileged users, they can add a new root account. Question 23. In Metasploit, which module type is used to discover services without exploiting them? A) exploit B) auxiliary C) payload D) post Answer: B Explanation: Auxiliary modules perform tasks like scanning, sniffing, or fuzzing without delivering a payload. Question 24. Which Metasploit payload creates a reverse TCP shell that connects back to the attacker’s machine?

Exam

Question 27. In a phishing campaign, which technique improves credibility the most? A) Using a generic greeting like “Dear User” B) Spoofing the sender’s email address to match the target organization C) Sending the email at 3 am D) Including many attachments Answer: B Explanation: Spoofed sender addresses that appear legitimate increase the likelihood of user trust. Question 28. Which Kali tool automates credential harvesting from phishing pages? A) setoolkit B) beef C) social‑engineer‑toolkit (SET) D) hashcat Answer: C Explanation: SET can create malicious web pages that capture credentials entered by victims. Question 29. After gaining a foothold, which command quickly lists all logged‑in users on a Linux host? A) whoami B) w C) id D) groups Answer: B Explanation: w shows who is logged in and what they are doing.

Exam

Question 30. Which persistence technique creates a hidden cron job that runs every minute? A) echo "* * * * * /bin/bash" >> /etc/crontab B) crontab - e and add “* * * * * /usr/bin/python /tmp/backdoor.py” C) systemctl enable backdoor.service D) rc.local & Answer: B Explanation: Adding a line to the user’s crontab ensures the script runs at the specified interval. Question 31. Anti‑forensics often involves which of the following actions? A) Updating the OS with latest patches B) Deleting or modifying log files to hide activity C) Installing a firewall D) Running a full system backup Answer: B Explanation: Manipulating logs erases evidence of the attacker’s actions. Question 32. Which command clears the Linux authentication log (/var/log/auth.log)? A) rm /var/log/auth.log B) > /var/log/auth.log C) truncate - s 0 /var/log/auth.log D) logclear auth.log Answer: C Explanation: truncate - s 0 safely empties a file without deleting it.

Exam

D) - m 3000 Answer: B Explanation: Hashcat mode 1800 corresponds to SHA‑512. Question 36. Which environment variable can be abused to execute malicious code when a privileged binary searches $PATH for executables? A) HOME B) SHELL C) LD_LIBRARY_PATH D) PATH Answer: D Explanation: Modifying PATH to include a directory with a malicious executable can lead to privilege escalation. Question 37. In a pivoting scenario, which tool creates a SOCKS proxy on the compromised host for traffic forwarding? A) msfvenom B) proxychains C) meterpreter’s run autoroute D) meterpreter’s run socks_proxy Answer: D Explanation: socks_proxy sets up a SOCKS server on the compromised machine, enabling pivoting. Question 38. Which SSH option enables remote port forwarding from the attacker’s machine to the target’s internal service?

Exam

A) - L

B) - R

C) - D

D) - X

Answer: B Explanation: -R [bind_address:]port:host:hostport forwards a remote port from the SSH server to the client. Question 39. After compromising a host, which Metasploit command lists all routes that Meterpreter can use to reach other subnets? A) route B) netstat C) ipconfig D) getuid Answer: A Explanation: The route command shows and manages routing tables within Meterpreter. Question 40. Which tool is commonly used to enumerate hidden directories on a web server? A) dirb B) nmap C) netcat D) wireshark Answer: A Explanation: dirb brute‑forces common directory names to discover hidden resources.

Exam

Question 44. A stored XSS vulnerability is most likely to be found in which type of input field? A) Search box that reflects results only B) Comment field that is saved and displayed to other users C) Login form that redirects on success D) API endpoint that returns JSON without rendering Answer: B Explanation: Stored XSS persists in the database and is served to other users, typical of comment sections. Question 45. Which of the following is a characteristic of an IDOR vulnerability? A) Directly accessing a resource by modifying a numeric identifier in the URL B) Bypassing authentication by using default credentials C) Injecting JavaScript into a form field D) Exploiting a buffer overflow in a server binary Answer: A Explanation: Insecure Direct Object Reference occurs when the application exposes internal object IDs without proper authorization checks. Question 46. To protect against CSRF, a web application should implement which defense? A) Content Security Policy B) SameSite cookie attribute or anti‑CSRF tokens C) Input sanitization only D) HTTP Strict Transport Security Answer: B

Exam

Explanation: CSRF tokens or the SameSite attribute ensure that requests originate from the legitimate site. Question 47. Which default credential is often left unchanged on network devices and should be checked during a pen test? A) admin/admin B) root/root C) guest/guest D) user/password Answer: A Explanation: Many devices ship with admin/admin or similar defaults; attackers commonly test these. Question 48. In Burp Suite, which tool is used to automate parameter fuzzing for a specific request? A) Proxy B) Repeater C) Intruder D) Scanner Answer: C Explanation: Intruder sends a large number of crafted requests to test for vulnerabilities. Question 49. Which command runs an automated SQL injection scan against a target URL using sqlmap? A) sqlmap - u "http://example.com/page?id=1" --batch B) sqlmap - scan "http://example.com"

Exam

B) .pcapng C) .hccapx D) .txt Answer: A Explanation: airmon-ng and airodump-ng save handshakes in .cap files. Question 53. To convert a captured WPA handshake (.cap) into a format usable by Hashcat, which tool is used? A) tshark B) cap2hccapx C) airdecap-ng D) reaver Answer: B Explanation: cap2hccapx converts .cap to the Hashcat‑compatible .hccapx format. Question 54. An “Evil Twin” attack primarily targets which component of a wireless network? A) DHCP server B) Authentication server C) Access point SSID D) MAC address filtering list Answer: C Explanation: The attacker creates a rogue AP broadcasting the same SSID to lure clients. Question 55. Which tool can be used to discover nearby Bluetooth devices and attempt pairing attacks?

Exam

A) hcxdumptool B) bluez C) gatttool D) bluetoothctl Answer: C Explanation: gatttool can interact with BLE devices, including enumeration and pairing attempts. Question 56. ARP spoofing is most effective against which layer of the OSI model? A) Application B) Transport C) Network D) Data Link Answer: D Explanation: ARP operates at the Data Link layer (Layer 2). Question 57. Which command in Ettercap initiates ARP poisoning against target 1 and target 2? A) arp - M arpspoof - i eth0 - T 192.168.1.10 - t 192.168.1. B) ettercap - T - M arp /192.168.1.10// /192.168.1.20// C) ettercap - M arp //192.168.1.10// //192.168.1.20// D) ettercap - T - q - M sniff /192.168.1.10/ /192.168.1.20/ Answer: C Explanation: The -M arp option with target specifications launches ARP poisoning.