{
  "Module 27: Metasploit Framework": [
    {
      "question": "1. What is the primary interface used to interact with the Metasploit Framework?",
      "options": [
        "A. msfconsole",
        "B. msfvenom",
        "C. meterpreter",
        "D. rpcd"
      ],
      "answer": "A. msfconsole"
    },
    {
      "question": "2. Which command generates payloads in Metasploit?",
      "options": [
        "A. msfconsole",
        "B. msfvenom",
        "C. msfencode",
        "D. exploit -j"
      ],
      "answer": "B. msfvenom"
    },
    {
      "question": "3. You want to search for exploits inside Metasploit. Which command do you use?",
      "options": [
        "A. find",
        "B. search",
        "C. locate",
        "D. show exploits"
      ],
      "answer": "B. search"
    },
    {
      "question": "4. Which module type is mainly used for scanning, brute-forcing, and enumeration?",
      "options": [
        "A. Auxiliary modules",
        "B. Payload modules",
        "C. Encoders",
        "D. Exploit modules"
      ],
      "answer": "A. Auxiliary modules"
    },
    {
      "question": "5. What is the purpose of the Metasploit datastore?",
      "options": [
        "A. Stores global and module-specific options",
        "B. Stores captured credentials",
        "C. Saves payloads to disk",
        "D. Installs persistent backdoors"
      ],
      "answer": "A. Stores global and module-specific options"
    },
    {
      "question": "6. Which command displays all module options (RHOSTS, RPORT, etc.)?",
      "options": [
        "A. show info",
        "B. show options",
        "C. show settings",
        "D. options -all"
      ],
      "answer": "B. show options"
    },
    {
      "question": "7. Which module is used for exploiting vulnerabilities?",
      "options": [
        "A. Exploit modules",
        "B. Auxiliary modules",
        "C. Post modules",
        "D. Encoder modules"
      ],
      "answer": "A. Exploit modules"
    },
    {
      "question": "8. Which payload type allows an attacker to maintain an interactive shell over HTTP, HTTPS, or TCP?",
      "options": [
        "A. Inline payload",
        "B. Staged payload",
        "C. Meterpreter payload",
        "D. Reflective payload"
      ],
      "answer": "C. Meterpreter payload"
    },
    {
      "question": "9. Meterpreter runs entirely in memory. What advantage does this provide?",
      "options": [
        "A. Faster scanning",
        "B. Minimal forensic footprint",
        "C. Supports SQL injection",
        "D. Runs only on Linux"
      ],
      "answer": "B. Minimal forensic footprint"
    },
    {
      "question": "10. Which payload type is useful to avoid AV detection by separating loader and final stage?",
      "options": [
        "A. Inline",
        "B. Staged",
        "C. Static",
        "D. High-entropy"
      ],
      "answer": "B. Staged"
    },
    {
      "question": "11. Which command uploads a file from attacker to victim in Meterpreter?",
      "options": [
        "A. put",
        "B. upload",
        "C. send",
        "D. copy"
      ],
      "answer": "B. upload"
    },
    {
      "question": "12. Which post-exploitation module is used to pivot through internal networks?",
      "options": [
        "A. keyscan_start",
        "B. persistence",
        "C. autoroute",
        "D. getsystem"
      ],
      "answer": "C. autoroute"
    },
    {
      "question": "13. Which Meterpreter command starts capturing keystrokes?",
      "options": [
        "A. record_keys",
        "B. keylogrecorder",
        "C. keyscan_start",
        "D. sniffer_start"
      ],
      "answer": "C. keyscan_start"
    },
    {
      "question": "14. Which command is used to escalate privileges on Windows machines?",
      "options": [
        "A. getprivs",
        "B. getsystem",
        "C. sysinfo",
        "D. impersonate"
      ],
      "answer": "B. getsystem"
    },
    {
      "question": "15. Which Meterpreter command loads additional features such as Kiwi (Mimikatz)?",
      "options": [
        "A. load kiwi",
        "B. use mimikatz",
        "C. import mimikatz",
        "D. meterp_load kiwi"
      ],
      "answer": "A. load kiwi"
    },
    {
      "question": "16. Which module type is used for password dumping and credential extraction?",
      "options": [
        "A. Auxiliary",
        "B. Exploit",
        "C. Post",
        "D. Encoder"
      ],
      "answer": "C. Post"
    },
    {
      "question": "17. What is a major purpose of encoder modules like x86/shikata_ga_nai?",
      "options": [
        "A. Bypass antivirus by encoding payloads",
        "B. Improve exploit stability",
        "C. Increase payload size",
        "D. Build automated reports"
      ],
      "answer": "A. Bypass antivirus by encoding payloads"
    },
    {
      "question": "18. The ‘sessions -i’ command is used for:",
      "options": [
        "A. Listing and interacting with open sessions",
        "B. Starting services",
        "C. Scanning new hosts",
        "D. Compiling payloads"
      ],
      "answer": "A. Listing and interacting with open sessions"
    },
    {
      "question": "19. Which Meterpreter command captures screenshots of the victim's desktop?",
      "options": [
        "A. screenshot",
        "B. capture_screen",
        "C. grabshot",
        "D. xshot"
      ],
      "answer": "A. screenshot"
    },
    {
      "question": "20. What is the purpose of the module 'exploit/multi/handler'?",
      "options": [
        "A. Launch remote scans",
        "B. Host a payload listener",
        "C. Execute SQL injection",
        "D. Brute-force passwords"
      ],
      "answer": "B. Host a payload listener"
    },
    {
      "question": "21. Which command shows system information of the compromised host?",
      "options": [
        "A. sysinfo",
        "B. hostinfo",
        "C. getinfo",
        "D. system_details"
      ],
      "answer": "A. sysinfo"
    },
    {
      "question": "22. What is the purpose of Meterpreter’s 'shell' command?",
      "options": [
        "A. Opens local attacker shell",
        "B. Drops into the victim’s system shell",
        "C. Creates a new user",
        "D. Enables persistence"
      ],
      "answer": "B. Drops into the victim’s system shell"
    },
    {
      "question": "23. To pivot traffic and route internal subnets through a compromised machine, you use:",
      "options": [
        "A. arp -scan",
        "B. route add",
        "C. autoroute add",
        "D. pivot_start"
      ],
      "answer": "C. autoroute add"
    },
    {
      "question": "24. Which module is used for maintaining long-term access by creating a startup entry or scheduled task?",
      "options": [
        "A. post/windows/manage/enable_rdp",
        "B. exploit/windows/local/scheduled_task",
        "C. post/windows/manage/persistence",
        "D. post/windows/gather/hashdump"
      ],
      "answer": "C. post/windows/manage/persistence"
    },
    {
      "question": "25. Which post-exploitation module dumps Windows password hashes?",
      "options": [
        "A. hashdump",
        "B. getsystem",
        "C. enum_shares",
        "D. capture_hashes"
      ],
      "answer": "A. hashdump"
    }
  ]
}
