]> git.pld-linux.org Git - packages/chntpw.git/blob - chntpw-debian.patch
93769ce2fc36c50b7220ab0888ea379d12cccd19
[packages/chntpw.git] / chntpw-debian.patch
1 --- chntpw-0.99.1-030126.orig/Makefile
2 +++ chntpw-0.99.1-030126/Makefile
3 @@ -15,16 +15,13 @@
4  CFLAGS= -DUSEOPENSSL -g -I. -I$(OSSLINC) -Wall
5  
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
9  
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 :)
13  
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 
18  
19  all: chntpw
20  
21 --- chntpw-0.99.1-030126.orig/chntpw.8
22 +++ chntpw-0.99.1-030126/chntpw.8
23 @@ -0,0 +1,96 @@
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.
30 +.\"
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)
41 +.SH NAME
42 +chntpw \- utility to overwrite Windows NT/2000 SAM passwords
43 +.SH SYNOPSIS
44 +.B chntpw
45 +.RI [ options ]
46 +.RI < samfile > 
47 +.RI [ systemfile ]
48 +.RI [ securityfile ]
49 +.RI [ otherreghive ] 
50 +.RI [...]
51 +.br
52 +.SH DESCRIPTION
53 +This manual page documents briefly the
54 +.B chntpw
55 +command.
56 +This manual page was written for the Debian distribution
57 +because the original program does not have a manual page.
58 +.PP
59 +.B chntpw
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.
66 +.SH OPTIONS
67 +.TP
68 +.B \-h
69 +Show summary of options.
70 +.TP
71 +.B \-u username
72 +Username to change. Default is Administrator
73 +.TP
74 +.B \-l
75 +List all users in the SAM database.
76 +.TP
77 +.B \-i
78 +Interactive: list all users (as per -l) and then ask for the 
79 +user to change.
80 +.TP
81 +.B \-e
82 +Registry editor with limited capabilities.
83 +.TP
84 +.B \-d
85 +Use buffer debugger.
86 +.TP
87 +.B \-t
88 +Show hexdumps of structs/segments (deprecated debug function).
89 +.SH EXAMPLES
90 +.TP
91 +.B chntpw sam system
92 +Opens registry hives 
93 +.B sam 
94 +and 
95 +.B system
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).
99 +.TP
100 +.B chntpw -u jabbathehutt mysam
101 +Prompts for password for 
102 +.B jabbathehutt
103 +and changes it in the 
104 +.B mysam
105 +registry file, if found (otherwise do nothing)
106 +.SH SEE ALSO
107 +If you are looking for an automated procedure for password 
108 +recovery, you might look at the bootdisks provided by the
109 +upstream author at
110 +.BR http://home.eunet.no/~pnordahl/ntpasswd/
111 +.br
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.
116 +.SH AUTHOR
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).
This page took 0.367177 seconds and 3 git commands to generate.