1 --- chntpw-0.99.1-030126.orig/Makefile
2 +++ chntpw-0.99.1-030126/Makefile
4 CFLAGS= -DUSEOPENSSL -g -I. -I$(OSSLINC) -Wall
6 # This is to link with whatever we have, SSL crypto lib we put in static
7 -LIBS=-L$(OSSLLIB) $(OSSLLIB)/libcrypto.a
8 +LIBS=-L$(OSSLLIB) -lcrypto
10 # ** This is for linking with older and more lean libc than installed as default
11 # in RH7+ or newer Mandrakes. And probably others. GLIBC has BLOATED!
12 # Use the reloc (and force it) in rpm to install into /usr/local :)
14 #LIBS=-L$(OSSLLIB) -L/usr/local/libold -L/usr/local/usr/lib \
15 -$(OSSLLIB)/libcrypto.so /usr/local/usr/lib/crt1.o /usr/local/usr/lib/crti.o \
16 -/usr/local/libold/ld-2.0.5.so \
17 -/usr/local/usr/lib/libc.so /usr/local/libold/libc-2.0.5.so /usr/local/usr/lib/crtn.o
21 --- chntpw-0.99.1-030126.orig/chntpw.8
22 +++ chntpw-0.99.1-030126/chntpw.8
24 +.\" Hey, EMACS: -*- nroff -*-
25 +.\" First parameter, NAME, should be all caps
26 +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
27 +.\" other parameters are allowed: see man(7), man(1)
28 +.TH CHNTPW 8 "30th May 2002"
29 +.\" Please adjust this date whenever revising the manpage.
31 +.\" Some roff macros, for reference:
32 +.\" .nh disable hyphenation
33 +.\" .hy enable hyphenation
34 +.\" .ad l left justify
35 +.\" .ad b justify to both left and right margins
36 +.\" .nf disable filling
37 +.\" .fi enable filling
38 +.\" .br insert line break
39 +.\" .sp <n> insert n+1 empty lines
40 +.\" for manpage-specific macros, see man(7)
42 +chntpw \- utility to overwrite Windows NT/2000 SAM passwords
53 +This manual page documents briefly the
56 +This manual page was written for the Debian distribution
57 +because the original program does not have a manual page.
60 +is a utility to view some information and change user passwords
61 +in a Windows NT/2000 SAM userdatabase file. It is not necessary to
62 +know the old passwords to reset them. In addition it contains a
63 +simple registry editor (same size data writes)
64 +and hex-editor with which the information contained in a registry
65 +file can be browsed and modified.
69 +Show summary of options.
72 +Username to change. Default is Administrator
75 +List all users in the SAM database.
78 +Interactive: list all users (as per -l) and then ask for the
82 +Registry editor with limited capabilities.
88 +Show hexdumps of structs/segments (deprecated debug function).
96 +and change administrator account. This will work even if the name
97 +has been changed or it has been localized (since different language
98 +versions of NT use different administrator names).
100 +.B chntpw -u jabbathehutt mysam
101 +Prompts for password for
103 +and changes it in the
105 +registry file, if found (otherwise do nothing)
107 +If you are looking for an automated procedure for password
108 +recovery, you might look at the bootdisks provided by the
110 +.BR http://home.eunet.no/~pnordahl/ntpasswd/
112 +There is more information on how this program works available at
113 +.IR /usr/share/doc/chntpw
114 +. This information includes in-depth information on how the
115 +registry works, what are syskeys and some other issues.
117 +This manual page was written by
118 +Javier Fernandez-Sanguino Peña <jfs@computer.org>,
119 +for the Debian GNU/Linux system (but may be used by others).