Unit 5: System Hacking and Post Exploitation - Practice Quiz

INT245 — Penetration Testing 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 Which cryptographic technique involves adding a random string of characters to a password before hashing it to defend against rainbow table attacks?

A. Padding
B. Stretching
C. Peppering
D. Salting

2 In the context of Windows password cracking, why is the LM (LAN Manager) hash considered significantly weaker than NTLM?

A. It supports passwords up to 128 characters.
B. It uses AES encryption.
C. It splits the password into two 7-character chunks.
D. It is salted by default.

3 What is the primary purpose of a 'Rainbow Table' in password cracking?

A. To perform an online brute force attack.
B. To salt hashes automatically.
C. To offer a time-memory trade-off for faster hash lookup.
D. To encrypt passwords using a reversible algorithm.

4 Which command is used in Linux to list all users currently on the system?

A. net user
B. ls /home
C. cat /etc/passwd
D. cat /etc/shadow

5 During a system hacking engagement, an attacker gains access to a machine but has limited privileges. The attacker uses a kernel vulnerability to gain root access. What is this process called?

A. Lateral Movement
B. Vertical Privilege Escalation
C. Horizontal Privilege Escalation
D. Pivoting

6 Which of the following is a specific type of attack where a hacker hides malicious code inside a legitimate file or program?

A. Steganography
B. Polymorphism
C. Wrappers/Binders
D. Rootkit

7 In the context of Reverse Engineering, what is the function of a Disassembler?

A. It converts machine code into assembly language.
B. It converts high-level code to machine code.
C. It modifies the source code dynamically.
D. It executes the code step-by-step.

8 Which hexadecimal value represents the NOP (No Operation) instruction in x86 architecture, often used in buffer overflow exploits?

A. 0x80
B. 0x00
C. 0x90
D. 0xFF

9 What is the primary characteristic of a Reverse Shell?

A. It requires the victim to have a public IP address.
B. The victim machine initiates a connection back to the attacker's machine.
C. It only works over UDP.
D. The attacker connects to the victim's listening port.

10 Which tool is commonly used to extract passwords and hashes from memory (LSASS) on a Windows system?

A. John the Ripper
B. Mimikatz
C. Nmap
D. Wireshark

11 In Linux Privilege Escalation, what does the SUID bit allow?

A. It makes the file hidden.
B. It allows the file to run automatically at startup.
C. It allows a user to execute a file with the permissions of the file owner.
D. It prevents the file from being deleted.

12 Which Windows command is used to manipulate file attributes to hide files as part of maintaining persistence?

A. hide file.txt
B. chown hidden file.txt
C. attrib +h file.txt
D. chmod +h file.txt

13 What is DLL Hijacking?

A. Injecting code into a running process.
B. Decrypting a DLL file.
C. Replacing a legitimate DLL with a malicious one in a directory searched by the application.
D. Deleting system DLLs to cause a crash.

14 Which type of rootkit operates at the same privilege level as the Operating System kernel (Ring 0)?

A. Kernel-mode Rootkit
B. User-mode Rootkit
C. Application-level Rootkit
D. Library-level Rootkit

15 Which Python library is most frequently used for network interaction and crafting custom packets in scripting exploits?

A. Pandas
B. Matplotlib
C. Scapy
D. NumPy

16 When analyzing exploit code, what is the purpose of the payload?

A. The code that runs on the target system after exploitation.
B. To encrypt the connection.
C. To crash the service.
D. To find the vulnerability.

17 What is the specific vulnerability related to 'Unquoted Service Paths' in Windows?

A. Services running without a password.
B. Services running as LocalSystem.
C. Services that cannot be stopped.
D. Paths containing spaces not enclosed in quotes allow execution of arbitrary executables.

18 Which Linux command helps identify commands a user can run as another user (often root) without a password?

A. sudo -l
B. cat /etc/sudoers
C. whoami
D. su root

19 What does the technique Steganography entail?

A. Intercepting network traffic.
B. Cracking passwords using GPU.
C. Hiding data within another file, such as an image or audio file.
D. Flooding a server with requests.

20 Which Metasploit payload executes a payload within the memory of the compromised process without writing to the disk?

A. VNC Inject
B. Meterpreter
C. Command Shell
D. Bind Shell

21 In a brute-force attack, if the password length is and the character set size is , what is the complexity of the attack?

A.
B.
C.
D.

22 Which registry key is commonly targeted for maintaining persistence on Windows so that malware runs on user login?

A. HKLM\System\CurrentControlSet\Services
B. HKLM\Software\Microsoft\Windows\CurrentVersion\Run
C. HKCU\Control Panel\Desktop
D. HKLM\SAM\SAM

23 What is NTFS Data Hiding using Alternate Data Streams (ADS)?

A. Encrypting the hard drive.
B. Hiding a file inside another file's metadata stream on NTFS filesystems.
C. Deleting the file allocation table.
D. Moving files to a hidden partition.

24 Which of the following tools is a popular open-source reverse engineering framework developed by the NSA?

A. Radare2
B. OllyDbg
C. IDA Pro
D. Ghidra

25 What is Dirty COW (CVE-2016-5195)?

A. A Windows SMB exploit.
B. A password cracking tool.
C. A method for SQL injection.
D. A Linux kernel privilege escalation vulnerability.

26 In the context of scripting for pen-testing, what is Bash primarily used for?

A. Windows kernel exploitation.
B. Automating tasks in Unix/Linux environments.
C. Reverse engineering binaries.
D. Developing web applications.

27 Which attack involves capturing the NTLM hash of a user and using it to authenticate without cracking the password?

A. Pass the Hash
B. Dictionary Attack
C. Golden Ticket
D. Brute Force

28 What is the purpose of timestomping in post-exploitation?

A. Modifying file timestamps (access, modify, create) to hide malicious activity.
B. Scheduling tasks for the future.
C. Crashing the system time service.
D. Slowing down the CPU to evade detection.

29 Which command allows you to view the currently loaded modules and their memory addresses in a Windows debugging environment like OllyDbg?

A. CPU Registers
B. Call Stack
C. Memory Map
D. Executable Modules

30 What does the command chmod 4755 filename do in Linux?

A. Sets the SUID bit on the file.
B. Deletes the file.
C. Hides the file.
D. Sets the file to read-only.

31 Which tool is primarily designed for performing online password attacks against network services (FTP, SSH, Telnet)?

A. Ophcrack
B. Hashcat
C. John the Ripper
D. Hydra

32 In a Buffer Overflow attack, the attacker attempts to overwrite the EIP register. What does EIP stand for?

A. Extended Instruction Pointer
B. Extended Index Pointer
C. Extended Immediate Pointer
D. Extended Internal Process

33 Which of the following is a method of covering tracks on a Windows system?

A. Running whoami.
B. Creating a new user.
C. Running ipconfig.
D. Using wevtutil cl to clear event logs.

34 What is the primary function of a Keylogger?

A. To log into the system automatically.
B. To record every keystroke made by the user.
C. To encrypt user files.
D. To log network traffic.

35 Which Windows feature can be exploited by pressing the SHIFT key 5 times?

A. Sticky Keys
B. Filter Keys
C. Mouse Keys
D. Toggle Keys

36 What is the purpose of Pivoting in penetration testing?

A. Rotating the screen display.
B. Using a compromised system to attack other systems in the same network.
C. Switching from Linux to Windows.
D. Changing the password frequently.

37 Which PowerShell command is used to download a file from a remote server?

A. Invoke-WebRequest
B. Get-File
C. wget
D. Download-File

38 Which component of the Metasploit Framework stores information about targets, loot, and collected data?

A. Meterpreter
B. msfvenom
C. The Database (PostgreSQL)
D. msfconsole

39 What distinguishes Static Analysis from Dynamic Analysis in malware analysis?

A. Static analysis is for Linux; dynamic analysis is for Windows.
B. Static analysis runs the code; dynamic analysis does not.
C. Static analysis examines code without execution; dynamic analysis observes code behavior during execution.
D. Static analysis uses debuggers; dynamic analysis uses disassemblers.

40 Which script allows an attacker to automate the search for privilege escalation vectors on a Linux system?

A. WinPEAS
B. BloodHound
C. LinPEAS
D. PowerView

41 What is a Logic Bomb?

A. A script that brute forces logical ports.
B. A DoS attack tool.
C. Code intentionally inserted into a software system that sets off a malicious function when specified conditions are met.
D. Malware that explodes the hardware.

42 In the context of enumerating assets, what information does SNMP (Simple Network Management Protocol) primarily provide if misconfigured (public community string)?

A. Firewall rules.
B. Network statistics, system information, and user accounts.
C. Web application source code.
D. Encrypted passwords.

43 Which type of shellcode is typically used when the target system is behind a firewall that blocks incoming connections?

A. Bind TCP
B. Null TCP
C. Loopback TCP
D. Reverse TCP

44 What is the SAM file in Windows?

A. Security Account Manager
B. System Admin Manager
C. Secure Access Module
D. System Access Method

45 Which of the following describes a Dictionary Attack?

A. Trying every possible combination of characters.
B. Using a pre-defined list of likely passwords.
C. Capturing the handshake and decrypting it.
D. Using a rainbow table.

46 When creating a persistent backdoor using Windows Scheduled Tasks, which command is used?

A. taskmgr
B. cron
C. schtasks
D. at (deprecated)

47 What is the main purpose of Ruby in the context of the Metasploit Framework?

A. It is the language used to write Metasploit modules.
B. It is used for database management.
C. It is used for network scanning only.
D. It is the GUI framework.

48 Which vulnerability allows an attacker to escalate privileges by exploiting a program that runs with higher privileges but insecurely loads libraries from the current directory?

A. DLL Hijacking
B. SQL Injection
C. XSS
D. Buffer Overflow

49 What does the Sticky Bit do on a directory in Linux?

A. It shares files with everyone.
B. It prevents users from deleting files they do not own.
C. It keeps files in memory.
D. It makes files executable.

50 Which tool allows for the creation of custom wordlists based on the content of a target website?

A. CeWL
B. Netcat
C. Wireshark
D. Nmap