Unit 5 - Practice Quiz

INT245 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 splits the password into two 7-character chunks.
B. It supports passwords up to 128 characters.
C. It is salted by default.
D. It uses AES encryption.

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

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

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

A. cat /etc/passwd
B. ls /home
C. net user
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. Pivoting
B. Vertical Privilege Escalation
C. Lateral Movement
D. Horizontal Privilege Escalation

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

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

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

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

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

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

9 What is the primary characteristic of a Reverse Shell?

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

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

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

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

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

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

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

13 What is DLL Hijacking?

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

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

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

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

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

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

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

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

A. Services running as LocalSystem.
B. Services that cannot be stopped.
C. Services running without a password.
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. su root
B. cat /etc/sudoers
C. sudo -l
D. whoami

19 What does the technique Steganography entail?

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

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

A. Meterpreter
B. Command Shell
C. VNC Inject
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. HKLM\SAM\SAM
D. HKCU\Control Panel\Desktop

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

A. Hashcat
B. John the Ripper
C. Ophcrack
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. Creating a new user.
B. Using wevtutil cl to clear event logs.
C. Running ipconfig.
D. Running whoami.

34 What is the primary function of a Keylogger?

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

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

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

36 What is the purpose of Pivoting in penetration testing?

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

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. msfvenom
B. Meterpreter
C. msfconsole
D. The Database (PostgreSQL)

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 uses debuggers; dynamic analysis uses disassemblers.
C. Static analysis examines code without execution; dynamic analysis observes code behavior during execution.
D. Static analysis runs the code; dynamic analysis does not.

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

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

41 What is a Logic Bomb?

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

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. Web application source code.
C. Encrypted passwords.
D. Network statistics, system information, and user accounts.

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

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

44 What is the SAM file in Windows?

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

45 Which of the following describes a Dictionary Attack?

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

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

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

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

A. It is used for database management.
B. It is used for network scanning only.
C. It is the language used to write Metasploit modules.
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. Buffer Overflow
B. XSS
C. DLL Hijacking
D. SQL Injection

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

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

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

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