debian/0000755000000000000000000000000011372017151007164 5ustar debian/cmospwd.80000644000000000000000000000201111372017151010723 0ustar .TH CMOSPWD 8 "July 6, 2006" .SH NAME cmospwd \- a cmos/bios password recovery tool .SH SYNOPSIS .B cmospwd .RI [ options ] ... .SH DESCRIPTION This manual page documents briefly the .B cmospwd command. .PP .SH OPTIONS A summary of options is included below. .TP .B \-h, \-\-help Usage information. .TP .B /kfr, \-kfr french AZERTY keyboard. .TP .B /kde, \-kde German QWERTZ keyboard. .TP .B /d, \-d Dump cmos. .TP .B /k, \-k Kill cmos. .TP .B /R, \-R Force mode. .TP .B /w , \-w , /s , \-s Write cmos_backup_file. .TP .B /l , \-l Load cmos_backup_file. .TP .B /r , \-r Restore cmos_backup_file. .TP .B /m0010011, \-m0010011 Execute module 3, 6 and 7. .SH SEE ALSO .BR dmidecode (8). .br .SH AUTHOR cmospwd was written by GRENIER Christophe, grenier@cgsecurity.org. .PP This manual page was written by Michael Prokop , for the Debian project (but may be used by others). debian/rules0000755000000000000000000000203111372017151010240 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/makefile.mk DEB_SRCDIR = $(CURDIR)/src # Path to the debian directory DEBIAN_DIR := $(shell echo ${MAKEFILE_LIST} | awk '{print $$1}' | xargs dirname ) UPSTREAM_VERSION ?=$(shell uscan --dehs | sed -n 's/.*\(.*\)<\/upstream-version>.*/\1/p') PACKAGE := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p') CURRENT_VERSION ?=$(shell dpkg-parsechangelog | sed -n 's/^Version: \(.*\)+dfsg.*/\1/p') get-orig-source: cd ${DEBIAN_DIR}/.. && uscan --force-download --upstream-version $(CURRENT_VERSION) tar xf ../$(PACKAGE)-${UPSTREAM_VERSION}.tar.bz2 #${CURDIR}/$(PACKAGE)-${UPSTREAM_VERSION} rm ${CURDIR}/$(PACKAGE)-${UPSTREAM_VERSION}/src/cmospwd tar cf ${CURDIR}/${DEB_SOURCE_PACKAGE}_${UPSTREAM_VERSION}+dfsg.orig.tar $(PACKAGE)-${UPSTREAM_VERSION}/ gzip ${CURDIR}/${DEB_SOURCE_PACKAGE}_${UPSTREAM_VERSION}+dfsg.orig.tar install/cmospwd:: dh_installdirs usr/sbin install -m 755 src/cmospwd debian/cmospwd/usr/sbin/cmospwd debian/manpages0000644000000000000000000000002111372017151010673 0ustar debian/cmospwd.8 debian/patches/0000755000000000000000000000000011372017151010613 5ustar debian/patches/ftbfs_kfreebsd.patch0000644000000000000000000000243211372017151014606 0ustar --- a/src/cmospwd.c +++ b/src/cmospwd.c @@ -37,7 +37,11 @@ #define HAVE_SYS_IO_H 1 #endif -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) && ! defined(__FreeBSD_kernel__) +# define __FreeBSD_kernel__ __FreeBSD__ +#endif + +#ifdef __FreeBSD_kernel__ #define HAVE_CTYPE_H 1 #endif @@ -181,7 +185,7 @@ #define GWIOPM_PARAMCOUNT 3 // for most functions #define GWIOPM_PARAMCOUNT_BYTES GWIOPM_PARAMCOUNT * 4 // for most functions -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD_kernel__) FILE *cmos_fd; #endif @@ -358,7 +362,7 @@ }; -#if defined(__linux__)||defined(__FreeBSD__)||defined(__NetBSD__)||defined(__CYGWIN32__)||defined(__MINGW32__) +#if defined(__linux__)||defined(__FreeBSD_kernel__)||defined(__NetBSD__)||defined(__CYGWIN32__)||defined(__MINGW32__) static __inline__ void outportb(uint16_t port,uint8_t value) { __asm__ volatile ("outb %0,%1" @@ -1471,7 +1475,7 @@ perror("i386_iopl"); exit(1); } -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD_kernel__) cmos_fd = fopen("/dev/io", "r"); if(cmos_fd==NULL){ perror("fopen /dev/io failed"); @@ -1485,7 +1489,7 @@ { #ifdef __linux__ ioperm(PORT_CMOS_0,4*2,0); -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD_kernel__) fclose(cmos_fd); #endif } debian/patches/series0000644000000000000000000000002511372017151012025 0ustar ftbfs_kfreebsd.patch debian/watch0000644000000000000000000000020411372017151010211 0ustar version=3 opts=dversionmangle=s/\+dfsg$// \ http://www.cgsecurity.org/wiki/CmosPwd http://www.cgsecurity.org/cmospwd-(.*)\.tar\.bz2 debian/docs0000644000000000000000000000001411372017151010032 0ustar cmospwd.txt debian/source/0000755000000000000000000000000011372017151010464 5ustar debian/source/format0000644000000000000000000000001411372017151011672 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000242611372017151011123 0ustar This package was debianized by Luke Faraone on Fri, 26 Feb 2010 23:29:00 -0400. It was downloaded from . Upstream Authors: Christophe GRENIER Copyright: Copyright © 1998-2006 Christophe GRENIER License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. The Debian packaging is Copyright © 2009, Luke Faraone , and is licensed under the GPL version 2 or later, see above. debian/compat0000644000000000000000000000000211372017151010362 0ustar 7 debian/control0000644000000000000000000000134511372017151010572 0ustar Source: cmospwd Section: utils Priority: optional Maintainer: Luke Faraone Build-Depends: cdbs (>= 0.4.49), debhelper (>= 7) Standards-Version: 3.8.4 DM-Upload-Allowed: yes Vcs-Bzr: https://code.launchpad.net/~lfaraone/cmospwd/debian Homepage: http://www.cgsecurity.org/wiki/CmosPwd Package: cmospwd Architecture: amd64 i386 kfreebsd-amd64 kfreebsd-i386 Depends: ${shlibs:Depends}, ${misc:Depends}, Description: decrypt BIOS passwords from CMOS CmosPwd is a cross-platform tool to decrypt password stored in CMOS used to access a computer's BIOS setup. . This application should work out of the box on most modern systems, but some more esoteric BIOSes may not be supported or may require additional steps. debian/changelog0000644000000000000000000000062511372017151011041 0ustar cmospwd (5.0+dfsg-2) unstable; urgency=low * Include fix for FTBFS on KFreeBSD (Closes: #580673) * Restrict archs to i386 and amd64, along with their KFreeBSD counterparts. -- Luke Faraone Mon, 10 May 2010 10:54:23 -0400 cmospwd (5.0+dfsg-1) unstable; urgency=low * Initial release (Closes: #571942) -- Luke Faraone Sun, 28 Feb 2010 13:08:22 -0500