{
  "Module 14: Linux Basics (Files, TTL, Host Command)": [
    {
      "question": "1. Danny obtained /etc/passwd from a Linux server. Through this he can:",
      "options": [
        "A. Gain remote access",
        "B. Install malware",
        "C. Create new user accounts",
        "D. Do nothing as /etc/passwd does not contain passwords"
      ],
      "num_answers": 1,
      "answer": "D. Do nothing as /etc/passwd does not contain passwords",
      "answer_keys": ["D"],
      "explanations": {
        "D": "✅ /etc/passwd lists user accounts and metadata but not password hashes (those are in /etc/shadow). On its own it can't grant access, though it does aid username enumeration.",
        "A": "❌ A copy of /etc/passwd alone doesn't provide credentials or access.",
        "B": "❌ Merely possessing the file doesn't enable malware installation.",
        "C": "❌ You cannot create users remotely just by having this file."
      }
    },
    {
      "question": "2. Linux command to resolve a domain name into an IP address:",
      "options": [
        "A. host -t a resolveddomain.com",
        "B. host -t b resolveddomain.com",
        "C. host -t c resolveddomain.com",
        "D. host -t d resolveddomain.com"
      ],
      "num_answers": 1,
      "answer": "A. host -t a resolveddomain.com",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Query type 'A' returns IPv4 addresses.",
        "B": "❌ No DNS record type 'b'.",
        "C": "❌ No DNS record type 'c'.",
        "D": "❌ No DNS record type 'd'."
      }
    },
    {
      "question": "3. Which operating system typically has a default TTL value of 64?",
      "options": ["A. Linux", "B. Solaris", "C. Windows", "D. SunOS"],
      "num_answers": 1,
      "answer": "A. Linux",
      "answer_keys": ["A"],
      "explanations": {
        "A": "✅ Most Linux distributions default to TTL 64.",
        "B": "❌ Solaris defaults commonly differ (often 255 in legacy stacks).",
        "C": "❌ Windows defaults are commonly 128.",
        "D": "❌ SunOS is not typically 64 by default."
      }
    },
    {
      "question": "4. In Linux, which character helps hide files?",
      "options": ["A. / (slash)", "B. . (period)", "C. - (dash)", "D. # (hash)"],
      "num_answers": 1,
      "answer": "B. . (period)",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Files beginning with a dot are hidden from normal ls output.",
        "A": "❌ Slash separates directories.",
        "C": "❌ Dash is often used for options, not hiding.",
        "D": "❌ Hash is used for comments in many shells."
      }
    },
    {
      "question": "5. What is the function of prefixing a filename with a dot (.) in Linux?",
      "options": ["A. Copy the file", "B. Hide the file", "C. Delete the file", "D. Compress the file"],
      "num_answers": 1,
      "answer": "B. Hide the file",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Dotfiles are hidden by default in directory listings.",
        "A": "❌ Copying is done by cp, not a prefix.",
        "C": "❌ Deletion uses rm, not a prefix.",
        "D": "❌ Compression uses tools like gzip/tar."
      }
    },
    {
      "question": "6. You found sensitive files being shared without appropriate security. Which file sharing protocol addresses this?",
      "options": ["A. FTP", "B. FTPS", "C. HTTP", "D. IP"],
      "num_answers": 1,
      "answer": "B. FTPS",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ FTPS adds SSL/TLS to FTP to encrypt credentials and data.",
        "A": "❌ FTP transmits in clear text.",
        "C": "❌ HTTP is not a file transfer protocol for authenticated sharing and is unencrypted unless HTTPS.",
        "D": "❌ IP is a network protocol, not an application-layer file transfer protocol."
      }
    },
    {
      "question": "7. Benefit of using FTPS over FTP:",
      "options": [
        "A. FTPS is faster than FTP",
        "B. FTPS uses SSL/TLS encryption to secure file transfers",
        "C. FTPS is compatible with a wider range of operating systems",
        "D. FTPS does not require authentication"
      ],
      "num_answers": 1,
      "answer": "B. FTPS uses SSL/TLS encryption to secure file transfers",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Encryption protects credentials and data in transit.",
        "A": "❌ Encryption overhead can make FTPS slightly slower.",
        "C": "❌ Both are widely compatible; security is the differentiator.",
        "D": "❌ FTPS supports (and typically requires) authentication."
      }
    },
    {
      "question": "8. Anonymous user uploaded files and executed a script via a feature of the FTP server software. This attack was possible due to a vulnerability in:",
      "options": ["A. Encryption process", "B. File system permissions", "C. SQL process", "D. System files"],
      "num_answers": 1,
      "answer": "B. File system permissions",
      "answer_keys": ["B"],
      "explanations": {
        "B": "✅ Misconfigured write/execute permissions allowed anonymous upload and execution.",
        "A": "❌ Encryption isn’t related to upload permission.",
        "C": "❌ SQL is unrelated to FTP file execution.",
        "D": "❌ 'System files' is too vague and not the core issue."
      }
    }
  ]
}
