nerdexam
EC-Council

312-50V13 · Question #108

Based on the following extract from the log of a compromised machine, what is the hacker really trying to steal? c:\> cmd /c type c:\winnt\repair\sam > c:\har.txt Volume in drive C has no label…

The correct answer is B. SAM file. Explanation The hacker's ultimate goal is the SAM (Security Account Manager) file, which stores Windows user account credentials (usernames and hashed passwords). The command cmd /c type c:\winnt\repair\sam > c:\har.txt reveals the true intent - the attacker is copying the SAM…

Submitted by klara.se· Mar 6, 2026System Hacking

Question

Based on the following extract from the log of a compromised machine, what is the hacker really trying to steal? c:> cmd /c type c:\winnt\repair\sam > c:\har.txt Volume in drive C has no label. Volume Serial Number is 8403-6A0E Directory of C:\ 11/26/00 12:34p 0 AUTOEXEC.BAT 11/26/00 06:57p 322 boot.ini 11/26/00 12:34p CONFIG.SYS 12/26/00 07:36p < DIR > exploits 02/04/01 07:07a 5,327 har.txt 12/07/00 03:30p < DIR > InetPub 12/07/00 03:12p < DIR > Multimedia Files 12/26/00 07:10p < DIR > New Folder 01/26/01 02:10p 78,643,200 pagefile.sys 12/21/00 08:59p < DIR > Program Files 02/04/01 06:49a 69 README.NOW.Hax0r 12/21/00 08:59p < DIR > TEMP 02/04/01 07:05a < DIR > WINNT 12/26/00 07:09p < DIR > wiretrip 02/04/01 06:43a 0 mine.txt 15 File(s) 78,648,918 bytes 1,689,455,616 bytes free c:> type har.txt c:> copy har.txt c:\inetpub\wwwroot c:> GET har.txt HTTP/1.1 Server: Microsoft-IIS/4.0 Date: Sun, 04 Feb 2001 13:11:28 GMT Content-Type: text/plain Accept-Ranges: bytes Last-Modified: Sun, 04 Feb 2001 13:07:33 GMT ETag: "5063fd6fab8ec01:b85" Content-Length: 5327

Options

  • Ahar.txt
  • BSAM file
  • Cwwwroot
  • DRepair file

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    83% (20)
  • C
    8% (2)
  • D
    4% (1)

Explanation

Explanation

The hacker's ultimate goal is the SAM (Security Account Manager) file, which stores Windows user account credentials (usernames and hashed passwords). The command cmd /c type c:\winnt\repair\sam > c:\har.txt reveals the true intent - the attacker is copying the SAM file's contents into har.txt as a vehicle to exfiltrate it via the web server, not because har.txt itself is valuable. har.txt (A) and wwwroot (C) are merely tools in the process - the text file is a temporary container and the web directory is the delivery mechanism used to serve the file over HTTP. The repair folder (D) is simply the location where Windows stores a backup of the SAM file, not the target itself.

Memory Tip: Think of it like a heist - the gold is the SAM file (passwords), har.txt is just the getaway bag, and wwwroot is the getaway car. Always ask yourself "what data has real value?" - in Windows hacking scenarios, it's almost always the SAM file because cracking its password hashes grants full account access.

Topics

#SAM file#Credential theft#Log analysis#Data exfiltration

Community Discussion

No community discussion yet for this question.

Full 312-50V13 Practice