Results 1 to 7 of 7

Thread: Creating md5sum Values of NTFS Files?

  1. #1
    Junior Member
    Join Date
    May 2008
    Location
    USA
    Posts
    6

    Creating md5sum Values of NTFS Files?

    How do you create md5sum values on an ntfs drive or file group using Knoppix 5.3.1?
    Specifically, C:\Windows\system32\drivers.

    I have already created a list of md5sum values on Windows of the "C:\" drive.
    I would like to compare the Windows created values to the Linux created values for verifying file integrity.

    Do you know if this will produce valid results in detecting changes on the ntfs files?

    Are there alternative methods within Knoppix 5.3.1 that would accomplish the same results?

    How would I take my ntfs md5sum list and use Knoppix to compare it to the Linux md5sum automatically?

    I used Hashtabs to create the values. I don't know if it is done in binary form or not. I noticed that the md5sum in Linux offers -b and -t.
    If I used the -t option and Hashtabs calculates via binary, would the hash values be different?

    TIA for your input,
    Condor

  2. #2
    Junior Member
    Join Date
    May 2008
    Location
    USA
    Posts
    6
    Think I found what I need for MD5summing on NTFS for windows. It is called MD5Summer available Here
    It will even let you md5sum cd's and it will be saved in a format compatable with linux md5sum for comparing.

    The way I think I will use it; md5sum the windows/system32/drivers directory, the windows install disk of the same files, fire up knoppix, md5sum the ntfs volume directory windows/system32/drivers.
    Now compare the Knoppix md5sum (1=w/s32/dr, 2=active win version w/s32/dr, 3=install disk versions) 1>2, 1>3, 2>3.
    I hope this will make visible anything lurking.

    If this is valid for discovering file discrepencies, your comments would be appreciated.
    If there are other methods available through Knoppix I would appreciate those comments as well.

    Thanks,
    Condor

  3. #3
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by Condor
    I have already created a list of md5sum values on Windows of the "C:\" drive.
    Quote Originally Posted by Condor
    Think I found what I need for MD5summing on NTFS for windows. It is called MD5Summer available [url=http://www.md5summer.org/]...
    Quote Originally Posted by Condor
    How do you create md5sum values on an ntfs drive or file group using Knoppix 5.3.1?...
    You already seemed to know how to make md5 files under Windows, so I didn't mention md5summer when you first asked. Yea, it's a nice program for creating md5 files. Interface is a bit non-standard, but, once you get used to it, the program is good for both making and testing md5 files. Several other Windows programs will make and test md5 files (quickpar will even test md5s for you, likely can make then also but I'm not certain of that).

    You shouldn't need Knoppix to test the md5s, I doubt that any infection of a windows system is going to catch you checking md5s and lie to you with the old value. But testing under Knoppix should work as well. You didn't however ask how to check the existing files that you said you already made with Knoppix, you asked "How do you create md5sum values on an ntfs drive...". IMHO it is still not very safe to write file to an NTFS drive with Knoppix. Read them, sure. Write them, I feel pretty uneasy about that.

  4. #4
    Junior Member
    Join Date
    May 2008
    Location
    USA
    Posts
    6
    What part of creating an md5sum under Knoppix of an ntfs drive directory writes to the ntfs drive?
    I thought the process is carried out in ram and stored results in knoppix file system.

    I haven't yet created an md5sum with knoppix. I have done so with hash tabs. Unfortunately its stored list isn't compatable with linux.

    I was told that the only way to verify 100% of being clean from malware is offline file comparison, Knoppix is one of the suggested methods along with BartPE, WinPE and ERD Commander. Furthermore, virus scanners are only valid with signatures in their data base. So it would not catch a new or altered infection.
    I was advised not to create the BartPE or WinPE on an infected system. So this is the dilemma, I only have 1 computer.

    This is why I thought Knoppix and md5summing would be a better option, allowing me to do file integrity checks.

    Are there other ways to do file comparisons using Knoppix to check the ntfs volume?
    [/url]

  5. #5
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by Condor
    How do you create md5sum values on an ntfs drive....
    Quote Originally Posted by Condor
    What part of creating an md5sum under Knoppix of an ntfs drive directory writes to the ntfs drive?
    I took you literally, that you wanted to create the md5 files on a NTFS partition, with Knoppix, as written. Of course, you can create an md5 file of files in a NTFS partition elsewhere, such as in RAM drive, quite safely. However, there is really no reason to.

    Quote Originally Posted by Condor
    Are there other ways to do file comparisons using Knoppix to check the ntfs volume?
    [/url]
    Make the md5 checksum file with md5summer under Windows and save it to the NTFS drive. We have to assume that you are doing this when you know (or at least believe) that the system is good, as there would be little to gain from making a md5 set for a known corrupted system. Then you can just check it later with Knoppix (if you don't trust testing it under a potentially compromised Windows system). No need to create another md5 file, no need to write anything at all. Just have Linux read the md5 file and check the saved md5 values for each file against what it can compute now.

    I have never done this for system files, but it will work (but see the last paragraph below). I have done this many times for multi-player game files when those files were becoming corrupted and to track down cases where some players had different versions of files than others. It's very handy to get someone to email a md5 file of their game directory and e-mail it to you, where you can quickly find any missing files and and different files. Of course, you have to find out why any differences occur. You can expect configuration files to be different, and for files that shouldn't be different you are still left with determining which version is the right file, but it's a great tool for such tasks.

    I also like to put an md5 file on a data CD or DVD to allow one to be aware of any bit rot that has occurred if the files are needed years later. Even better to make a few PAR2 files if you have a little extra space to spare for them, but a tiny md5 file can always be made to fit even if space is tight.

    Of course, if you're one of the people who accepts the "security updates" from Microsoft, you may find that a lot of stuff in your Windows directories that you have md5 checksums for has been changed since you accepted the "security updates".

  6. #6
    Junior Member
    Join Date
    May 2008
    Location
    USA
    Posts
    6
    Quote Originally Posted by Harry Kuhman
    as there would be little to gain from making a md5 set for a known corrupted system.
    There is a virus, part of a rootkit, that walks across windows system drivers to maintain its hold. Detection can be done by file size, but because of the rootkit part it may alter the userland info and can't be trusted on a live system. Also, because it walks, when you find the discrepency and compare it, it may have moved to a new location and cleaned its previous location.
    Scary that Rustock.C stuff. Rustock author states there maybe a Rustock.D

    Quote Originally Posted by Harry Kuhman
    Just have Linux read the md5 file and check the saved md5 values for each file against what it can compute now.
    Do I have to import the list somewhere?
    If I have created the md5summer file, what do I do now in knoppix?

    Quote Originally Posted by Harry Kuhman
    (but see the last paragraph below)
    Not an issue for me. LL:LR:Whispers "Didn't update yet."

    Thanks,
    Condor

  7. #7
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by Condor
    Do I have to import the list somewhere?
    If I have created the md5summer file, what do I do now in knoppix?
    I believe that the md5 test program in Knoppix is md5sums (or maybe it's md5sum, I can never remember). At least it used to be, I haven't checked it in a while and sorry, I'm on Windows right now and don't have Knoppix handy. Don't move the *.md5 file anywhere, leave it where you created it and where you can test it with md5summer - md5 files contain relative paths but not full paths, so what it finds depends on where the file is when you use it as input for a md5 test program. The should be a man page for more info on md5sums or md5sum (that just a theory, but I would be rather shocked if there was not).
    ---
    Verifying of md5 checksum and burning a CD at slow speed are important.

Similar Threads

  1. Set the values of a pcmcia netork card.
    By flognat in forum Networking
    Replies: 0
    Last Post: 11-11-2006, 10:04 PM
  2. creating doc files using knoppix
    By bharat in forum General Support
    Replies: 1
    Last Post: 08-20-2006, 08:15 PM
  3. Rescuing files off NTFS XP m/c
    By homer in forum General Support
    Replies: 8
    Last Post: 10-03-2005, 06:57 AM
  4. remaster to adopt specific values for XF86Config-4
    By michaeln in forum Customising & Remastering
    Replies: 3
    Last Post: 11-20-2004, 04:30 PM
  5. Creating an image of the NTFS partition
    By TLis in forum General Support
    Replies: 2
    Last Post: 05-12-2004, 09:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


NEW Kingston 8GB DDR4 2666MHz Desktop RAM KCP426NS8/8 PC4-21300 picture

NEW Kingston 8GB DDR4 2666MHz Desktop RAM KCP426NS8/8 PC4-21300

$26.00



DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix picture

DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix

$66.00



RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED picture

RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED

$445.00



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$21.68



Crucial DDR3L 16GB 2 x 8GB 1600 MHz PC3L-12800 Laptop RAM Sodimm Memory 1.35V picture

Crucial DDR3L 16GB 2 x 8GB 1600 MHz PC3L-12800 Laptop RAM Sodimm Memory 1.35V

$41.00



Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC picture

Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC

$29.99



LOT OF 10 - SK hynix 16GB DDR4 3200AA HMAA2GS6CJR8N-XN 1Rx8 PC Laptop Memory RAM picture

LOT OF 10 - SK hynix 16GB DDR4 3200AA HMAA2GS6CJR8N-XN 1Rx8 PC Laptop Memory RAM

$649.00



G.Skill Ripjaws V F4-3200C16D-16GVKB 16GB (2x8GB) DDR4 Desktop RAM 3200MHz picture

G.Skill Ripjaws V F4-3200C16D-16GVKB 16GB (2x8GB) DDR4 Desktop RAM 3200MHz

$64.99



Kingston RAM 1GB PC2-3200 DDR2 SDRAM 200-Pin SO-DIMM KVR400D2S3/1G (LOT OF 5) picture

Kingston RAM 1GB PC2-3200 DDR2 SDRAM 200-Pin SO-DIMM KVR400D2S3/1G (LOT OF 5)

$45.00



Kingston 2GB Kit (2x1GB) DDR2 PC2-4200 DDR2-533 240-Pin DIMM Non-ECC (LOT OF 2) picture

Kingston 2GB Kit (2x1GB) DDR2 PC2-4200 DDR2-533 240-Pin DIMM Non-ECC (LOT OF 2)

$45.00