Description of problem: chntpw fails to read anything, be it Windows SAM files or any files Version-Release number of selected component (if applicable): 1.00.140201 How reproducible: Always Steps to Reproduce: 1. cd /path/to/SYSTEM 2. chntpw -e SYSTEM 3. fail to read file Actual results (any files): chntpw version 1.00 140201, (c) Petter N Hagen openHive(): read error: : No such file or directory chntpw: Unable to open/read a hive, exiting.. Expected results (SAM files): chntpw version 0.99.6 110511 , (c) Petter N Hagen Hive </path/to/SYSTEM> name (from header): <SYSTEM> ROOT KEY at offset: 0x001020 * Subkey indexing type is: 686c <lh> File size 18350080 [1180000] bytes, containing 3917 pages (+ 1 headerpage) Used for data: 280256/18177568 blocks/bytes, unused: 140/22592 blocks/bytes. Simple registry editor. ? for help. > Expected results (other files): chntpw version 0.99.6 110511 , (c) Petter N Hagen openHive(/home/jylo/.bash_history): File does not seem to be a registry hive! Simple registry editor. ? for help. get_abs_path: Not a 'nk' node! > Additional info: 0.99 still works fine for reading win10-1803, but not 1.00... Note that chntpw can tell the difference between a folder and a file, but can't seem to read ANY file...
Exactly the same issue.
*** Bug 1701597 has been marked as a duplicate of this bug. ***
Created attachment 1583483 [details] Patch of reading Hive Please try this patch. It is working for me
Thanks for pointing out the problem Oleg. I see the mistake now. I think I would do something slightly different and also check for r == 0, but the patch looks mostly good to me.
Rawhide: https://koji.fedoraproject.org/koji/taskinfo?taskID=35735984
F30: https://koji.fedoraproject.org/koji/taskinfo?taskID=35736128 F29: https://koji.fedoraproject.org/koji/taskinfo?taskID=35736130
FEDORA-2019-03f92e73ee has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-03f92e73ee
chntpw-1.00-4.140201.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-03f92e73ee
chntpw-1.00-4.140201.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-b2e5df19a8
Conrad, I couldn't find the sourcecode repository of chntpw. Where is it?
Oleg, I don’t know of one.
Or do you mean the rpm spec repository? That’s here: https://src.fedoraproject.org/rpms/chntpw/commits/master
chntpw-1.00-4.140201.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.
chntpw-1.00-4.140201.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.