File: 13_write_to_hive

package info (click to toggle)
chntpw 140201-1.2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 4,160 kB
  • sloc: ansic: 24,950; makefile: 168
file content (24 lines) | stat: -rw-r--r-- 787 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

Description: Write to the HIVE file
 Enable the experimental function that writes to the HIVE
 the user password

 Patch available at: https://github.com/rescatux/chntpw/commit/dcab306dbf49ace2e38e6874ce46bef10ee604da

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803888
Forwarded: yes
Origin: other
Author: Adrian Gibanel Lopez <adrian15sgd@gmail.com>
Reviewed-by: Javier Fernández-Sanguino

--- a/sampasswd.c
+++ b/sampasswd.c
@@ -243,7 +243,7 @@
 
   wret = 0;
   for (il = 0; il < no_hives; il++) {
-    //    wret |= writeHive(hive[il]);
+    wret |= writeHive(hive[il]);
     if (hive[il]->state & HMODE_DIDEXPAND)
       fprintf(stderr," WARNING: Registry file %s was expanded! Experimental! Use at own risk!\n",hive[il]->filename);  
     while (no_hives > 0)