automatic version update by autodist [release 140201-1mamba;Thu Feb 13 2014]
This commit is contained in:
parent
20427e25b2
commit
15746ce72f
@ -1,2 +1,11 @@
|
|||||||
# chntpw
|
# chntpw
|
||||||
|
|
||||||
|
chntpw is a utility to reset the password of any user that has a valid local account on your Windows system.
|
||||||
|
|
||||||
|
Supports all Windows from NT3.5 to Win7, also 64 bit and also the Server versions (like 2003 and 2008)
|
||||||
|
You do not need to know the old password to set a new one.
|
||||||
|
It works offline, that is, you have to shutdown your computer and boot off a CD or USB disk to do the password reset.
|
||||||
|
Will detect and offer to unlock locked or disabled out user accounts!
|
||||||
|
|
||||||
|
There is also a registry editor (reged) can be used for other things than password editing.
|
||||||
|
|
||||||
|
96
chntpw.8
Normal file
96
chntpw.8
Normal file
@ -0,0 +1,96 @@
|
|||||||
|
.\" Hey, EMACS: -*- nroff -*-
|
||||||
|
.\" First parameter, NAME, should be all caps
|
||||||
|
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||||
|
.\" other parameters are allowed: see man(7), man(1)
|
||||||
|
.TH CHNTPW 8 "30th May 2002"
|
||||||
|
.\" Please adjust this date whenever revising the manpage.
|
||||||
|
.\"
|
||||||
|
.\" Some roff macros, for reference:
|
||||||
|
.\" .nh disable hyphenation
|
||||||
|
.\" .hy enable hyphenation
|
||||||
|
.\" .ad l left justify
|
||||||
|
.\" .ad b justify to both left and right margins
|
||||||
|
.\" .nf disable filling
|
||||||
|
.\" .fi enable filling
|
||||||
|
.\" .br insert line break
|
||||||
|
.\" .sp <n> insert n+1 empty lines
|
||||||
|
.\" for manpage-specific macros, see man(7)
|
||||||
|
.SH NAME
|
||||||
|
chntpw \- utility to overwrite Windows NT/2000 SAM passwords
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B chntpw
|
||||||
|
.RI [ options ]
|
||||||
|
.RI < samfile >
|
||||||
|
.RI [ systemfile ]
|
||||||
|
.RI [ securityfile ]
|
||||||
|
.RI [ otherreghive ]
|
||||||
|
.RI [...]
|
||||||
|
.br
|
||||||
|
.SH DESCRIPTION
|
||||||
|
This manual page documents briefly the
|
||||||
|
.B chntpw
|
||||||
|
command.
|
||||||
|
This manual page was written for the Debian distribution
|
||||||
|
because the original program does not have a manual page.
|
||||||
|
.PP
|
||||||
|
.B chntpw
|
||||||
|
is a utility to view some information and change user passwords
|
||||||
|
in a Windows NT/2000 SAM userdatabase file. It is not necessary to
|
||||||
|
know the old passwords to reset them. In addition it contains a
|
||||||
|
simple registry editor (same size data writes)
|
||||||
|
and hex-editor with which the information contained in a registry
|
||||||
|
file can be browsed and modified.
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP
|
||||||
|
.B \-h
|
||||||
|
Show summary of options.
|
||||||
|
.TP
|
||||||
|
.B \-u username
|
||||||
|
Username to change. Default is Administrator
|
||||||
|
.TP
|
||||||
|
.B \-l
|
||||||
|
List all users in the SAM database.
|
||||||
|
.TP
|
||||||
|
.B \-i
|
||||||
|
Interactive: list all users (as per \-l) and then ask for the
|
||||||
|
user to change.
|
||||||
|
.TP
|
||||||
|
.B \-e
|
||||||
|
Registry editor with limited capabilities.
|
||||||
|
.TP
|
||||||
|
.B \-d
|
||||||
|
Use buffer debugger.
|
||||||
|
.TP
|
||||||
|
.B \-t
|
||||||
|
Show hexdumps of structs/segments (deprecated debug function).
|
||||||
|
.SH EXAMPLES
|
||||||
|
.TP
|
||||||
|
.B chntpw sam system
|
||||||
|
Opens registry hives
|
||||||
|
.B sam
|
||||||
|
and
|
||||||
|
.B system
|
||||||
|
and change administrator account. This will work even if the name
|
||||||
|
has been changed or it has been localized (since different language
|
||||||
|
versions of NT use different administrator names).
|
||||||
|
.TP
|
||||||
|
.B chntpw -u jabbathehutt mysam
|
||||||
|
Prompts for password for
|
||||||
|
.B jabbathehutt
|
||||||
|
and changes it in the
|
||||||
|
.B mysam
|
||||||
|
registry file, if found (otherwise do nothing)
|
||||||
|
.SH SEE ALSO
|
||||||
|
If you are looking for an automated procedure for password
|
||||||
|
recovery, you might look at the bootdisks provided by the
|
||||||
|
upstream author at
|
||||||
|
.BR http://home.eunet.no/~pnordahl/ntpasswd/
|
||||||
|
.br
|
||||||
|
There is more information on how this program works available at
|
||||||
|
.IR /usr/share/doc/chntpw .
|
||||||
|
This information includes in-depth information on how the
|
||||||
|
registry works, what are syskeys and some other issues.
|
||||||
|
.SH AUTHOR
|
||||||
|
This manual page was written by
|
||||||
|
Javier Fernandez-Sanguino <jfs@computer.org>,
|
||||||
|
for the Debian GNU/Linux system (but may be used by others).
|
58
chntpw.spec
Normal file
58
chntpw.spec
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
Name: chntpw
|
||||||
|
Version: 140201
|
||||||
|
Release: 1mamba
|
||||||
|
Summary: Offline NT password and registry editor
|
||||||
|
Group: Applications/Security
|
||||||
|
Vendor: openmamba
|
||||||
|
Distribution: openmamba
|
||||||
|
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
||||||
|
URL: http://pogostick.net/~pnh/ntpasswd
|
||||||
|
Source: http://pogostick.net/~pnh/ntpasswd/chntpw-source-%{version}.zip
|
||||||
|
Source1: chntpw.8
|
||||||
|
License: GPL
|
||||||
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
BuildRequires: glibc-devel
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
|
%description
|
||||||
|
chntpw is a utility to reset the password of any user that has a valid local account on your Windows system.
|
||||||
|
|
||||||
|
Supports all Windows from NT3.5 to Win7, also 64 bit and also the Server versions (like 2003 and 2008)
|
||||||
|
You do not need to know the old password to set a new one.
|
||||||
|
It works offline, that is, you have to shutdown your computer and boot off a CD or USB disk to do the password reset.
|
||||||
|
Will detect and offer to unlock locked or disabled out user accounts!
|
||||||
|
|
||||||
|
There is also a registry editor (reged) can be used for other things than password editing.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
%make chntpw reged
|
||||||
|
|
||||||
|
%install
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
install -D -m0755 chntpw \
|
||||||
|
%{buildroot}%{_bindir}/chntpw
|
||||||
|
install -D -m0755 reged \
|
||||||
|
%{buildroot}%{_bindir}/reged
|
||||||
|
install -D -m0644 %{S:1} \
|
||||||
|
%{buildroot}%{_mandir}/man8/chntpw.8
|
||||||
|
|
||||||
|
%clean
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_bindir}/chntpw
|
||||||
|
%{_bindir}/reged
|
||||||
|
%{_mandir}/man?/*
|
||||||
|
%doc GPL.txt LGPL.txt README.txt regedit.txt WinReg.txt HISTORY.txt
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Feb 13 2014 Automatic Build System <autodist@mambasoft.it> 140201-1mamba
|
||||||
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
* Mon Jun 25 2012 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 110511-1mamba
|
||||||
|
- package created by autospec
|
Loading…
Reference in New Issue
Block a user