debian/0000755000000000000000000000000011635050323007164 5ustar debian/rules0000755000000000000000000000106311635050323010244 0ustar #!/usr/bin/make -f DEB_HOST_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM) ifeq ($(DEB_HOST_GNU_SYSTEM), linux-gnu) target = linux else target = generic endif CFLAGS = -Wall -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -pipe -fomit-frame-pointer ifeq ($(target), generic) CFLAGS += -O6 else CFLAGS += -O9 -finline-functions -funroll-loops -fstrength-reduce endif endif %: dh $@ override_dh_auto_build: dh_auto_build -- $(target) CFLAGS="$(CFLAGS)" debian/watch0000644000000000000000000000012211635050323010210 0ustar version=3 http://lambda-diode.com/software/wipe/ /resources/wipe/wipe-(.+).tar.gz debian/changelog0000644000000000000000000002003511635050323011036 0ustar wipe (0.22-1) unstable; urgency=low * Team upload. * New upstream release * Switch to debhelper 8 * Update to standards 3.9.2 * Switch to 3.0 (quilt) source package format * Remove useless lintian overrides (use dch --team to avoid Lintian warnings) * Add patch to fix manpages syntax * Update VCS-* fields * Update copyright information and fix DEP-5 syntax -- Julien Valroff Sat, 17 Sep 2011 09:26:40 +0200 wipe (0.21-9) unstable; urgency=low * Minimizing rules file. * Setting uploaders to Christophe. -- Daniel Baumann Wed, 29 Jul 2009 21:12:43 +0200 wipe (0.21-8) unstable; urgency=low * Updating package to standards version 3.8.2. * Updating upstream homepage. * Adding lintian overrides. -- Daniel Baumann Thu, 09 Jul 2009 12:55:00 +0200 wipe (0.21-7) unstable; urgency=low * Updating vcs fields. * Replacing obsolete dh_clean -k with dh_prep. * Prefixing debhelper files with package name. * Updating to standards 3.8.1. * Updating year in copyright file. * Tidy rules file. * Using correct rfc-2822 date formats in changelog. -- Daniel Baumann Thu, 28 May 2009 22:58:30 +0200 wipe (0.21-6) unstable; urgency=low * Fixing git-dch email address misstake. * Updating to standards 3.8.0. * Upgrading package to debhelper 7. * Sorting vcs fields in control file. * Adding full license headers to copyright file. -- Daniel Baumann Sun, 14 Sep 2008 10:18:43 +0200 wipe (0.21-5) unstable; urgency=low * Removing useless whitespaces. * Bumping package to debhelper 6. * Setting maintainer to Debian Forensics. * Adding vcs fields in control. * Rewritten copyright in machine readable form. * Reordering rules. -- Daniel Baumann Fri, 22 Feb 2008 10:03:00 +0100 wipe (0.21-4) unstable; urgency=low * Bumped to new policy. * Using new homepage field in control. * Don't hide make errors in clean target of rules. * Removing non-existing distclean call in clean target of rules. -- Daniel Baumann Sun, 23 Dec 2007 21:05:00 +0100 wipe (0.21-3) unstable; urgency=low * Minor cleanups. * Bumped package to debhelper 5. -- Daniel Baumann Tue, 01 May 2007 13:13:00 +0200 wipe (0.21-2) unstable; urgency=low * New maintainer. * Adjusted debian/* to my own customs. -- Daniel Baumann Mon, 16 Oct 2006 13:10:00 +0200 wipe (0.21-1) unstable; urgency=low * Acknowledge the changes made in the NMU 0.20-2.1. Thanks to Max Kellermann for the patch and Alexander Wirt for the NMU! Closes: Bug#383467 * The NMU patch for Bug#383467 are now incorporated upstream. * debian/README.Debian: removed because upstream removed the files rc6.c, rc6.h and secure_del.html from the tarball. Now the Debian tar.gz no longer differs from the upstream .tar.gz. * debian/control: Bumped Standards-Version to 3.7.2. No changes required. -- Thomas Schoepf Sat, 23 Sep 2006 13:02:56 +0200 wipe (0.20-2.1) unstable; urgency=high * Non-maintainer upload. * Fixes build-target detection, use off_t for length (Closes: #383467). Thanks to Max Kellermann for the patches -- Alexander Wirt Sat, 16 Sep 2006 19:03:59 +0200 wipe (0.20-2) unstable; urgency=low * Closes: #354734: typo in wipe.1 man page * debian/control: Bumped Standards-Version to 3.6.2 * debian/control: build-depend on debhelper >= 4.0 * debian/rules: dh_compat = 4 -- Thomas Schoepf Mon, 13 Mar 2006 11:14:46 +0100 wipe (0.20-1) unstable; urgency=low * New upstream version. * This version includes the patch written by Jim Paris for large file support. Thanks! Closes: #190100: wipe 0.18-1 cannot overwrite files/block devices >4 GB Closes: #252428: Only wipes beginning of a device. -- Thomas Schoepf Sun, 13 Jun 2004 11:50:12 +0200 wipe (0.19.20030913-1) unstable; urgency=low * New upstream version. * Upgraded Standards-Version to 3.6.1. No changes required. * Includes updates for Bug#190100: wipe 0.18-1 cannot overwrite files/block devices >4 GB I am unable to test them so I do not yet close the bug. -- Thomas Schoepf Sun, 28 Sep 2003 23:14:15 +0200 wipe (0.18-1) unstable; urgency=low * New upstream version. -- Thomas Schoepf Sun, 02 Feb 2003 15:18:07 +0100 wipe (0.17-2) unstable; urgency=low * wipe has a new homepage and upstream a new email address. * wipe.c: restored check for "." and ".." in recursive() Closes: #179381: wipe: traverse parent directories check lost in upgrade -- Thomas Schoepf Sun, 02 Feb 2003 12:17:17 +0100 wipe (0.17-1) unstable; urgency=low * New upstream version. * Closes: #169910: wipe -k does nothing * Closes: #170099: Does not work properly on large devices -- Thomas Schoepf Fri, 17 Jan 2003 19:13:09 +0100 wipe (0.16-9) unstable; urgency=low * debian/control: Standards-Version: 3.5.7 * Makefile: move compilation options into debian/rules. * no longer create /usr/doc -> /usr/share/doc symlink. -- Thomas Schoepf Fri, 15 Nov 2002 21:10:53 +0100 wipe (0.16-8) unstable; urgency=low * Compile with -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64. Closes: Bug#145605: wipe: Wipe can't wipe files larger than 2Gig. -- Thomas Schoepf Fri, 03 May 2002 13:27:58 +0200 wipe (0.16-7) unstable; urgency=low * Closes: Bug#134416: doesn't compile on arm -- Thomas Schoepf Fri, 01 Mar 2002 22:34:36 +0100 wipe (0.16-6) unstable; urgency=low * Closes: Bug#126880: wipe: source URL appears incorrect -- Thomas Schoepf Sun, 30 Dec 2001 15:40:00 +0100 wipe (0.16-5) unstable; urgency=low * Closes: Bug#111583: "wipe" WARNING (it will delete parent files and directories!) -- Thomas Schoepf Mon, 17 Sep 2001 10:36:24 +0200 wipe (0.16-4) unstable; urgency=low * Closes: Bug#101645: [hurd] doesn't build -- Thomas Schoepf Sun, 08 Jul 2001 16:39:43 +0200 wipe (0.16-3) unstable; urgency=low * Closes: Bug#85519: wipe: fails to build from source Thanks Berke! -- Thomas Schoepf Sun, 18 Feb 2001 01:56:39 +0100 wipe (0.16-2) unstable; urgency=low * Updated download and email address. * Switched to debhelper v2. * Bumped Standards-Version to 3.2.0 -- Thomas Schoepf Sat, 05 Aug 2000 01:10:37 +0200 wipe (0.16-1) unstable; urgency=low * New upstream version. -- Thomas Schoepf Fri, 31 Dec 1999 00:07:52 +0100 wipe (0.15-4) unstable; urgency=low * Debhelper now takes care of the FHS. (closes: #44595) -- Thomas Schoepf Wed, 08 Sep 1999 18:22:36 +0200 wipe (0.15-3) unstable; urgency=low * debian/control: Standards-Version: 3.0.1. -- Thomas Schoepf Mon, 06 Sep 1999 16:24:59 +0200 wipe (0.15-2) unstable; urgency=low * Previous upload closes: #41108. -- Thomas Schoepf Fri, 30 Jul 1999 20:57:14 +0200 wipe (0.15-1) unstable; urgency=low * New upstream version. (closes: Bug #41108) -- Thomas Schoepf Tue, 27 Jul 1999 21:00:02 +0200 wipe (0.14-3) unstable; urgency=low * Added /usr/doc/wipe -> /usr/share/doc/wipe transition link. -- Thomas Schoepf Thu, 22 Jul 1999 12:09:35 +0200 wipe (0.14-2) unstable; urgency=low * Comply with FHS 2.0 (/usr/share/doc, /usr/share/man). * debian/control: Standards-Version: 3.0.0. * debian/copyright: licenses now in usr/share/common-licenses. -- Thomas Schoepf Fri, 09 Jul 1999 16:49:55 +0200 wipe (0.14-1) unstable; urgency=low * New upstream version. -- Thomas Schoepf Sat, 03 Jul 1999 13:53:11 +0200 wipe (0.12-1) unstable; urgency=low * Initial Release. -- Thomas Schoepf Thu, 17 Jun 1999 02:01:24 +0200 debian/source/0000755000000000000000000000000011635050323010464 5ustar debian/source/format0000644000000000000000000000001411635050323011672 0ustar 3.0 (quilt) debian/wipe.docs0000644000000000000000000000001411635050323010775 0ustar BUGS README debian/patches/0000755000000000000000000000000011635050323010613 5ustar debian/patches/series0000644000000000000000000000002611635050323012026 0ustar 001_fix-manpages.diff debian/patches/001_fix-manpages.diff0000644000000000000000000002556411635050323014420 0ustar Description: fix nroff syntax Author: Julien Valroff Last-Update: 2011-09-17 --- a/wipe.1 +++ b/wipe.1 @@ -114,8 +114,8 @@ directly on the corresponding block device with the appropriate options. However .I THIS IS AN EXTREMELY DANGEROUS THING TO DO. Be sure to be sober. Give the right options. In particular : don't wipe a whole -harddisk (eg. wipe -kD /dev/hda is bad) since this will destroy your master boot -record. Bad idea. Prefer wiping partitions (eg. wipe -kD /dev/hda2) is good, +harddisk (eg. wipe \-kD /dev/hda is bad) since this will destroy your master boot +record. Bad idea. Prefer wiping partitions (eg. wipe \-kD /dev/hda2) is good, provided, of course, that you have backed up all necessary data. .PP @@ -172,14 +172,14 @@ With this option which requires an argument you can specify an alternate /dev/random device, or a command who's standard output will be hashed using MD5-hashed. The distinction can be made using -the -S option. +the \-S option. .TP 0.5i -.B -S (random seed method) +.B \-S (random seed method) This option takes a single-character argument, which specifies how the random device/random seed argument is to be used. The default random device -is /dev/random. It can be set using the -R option. +is /dev/random. It can be set using the \-R option. .PP .PD 0 The possible single-character arguments are: @@ -203,10 +203,9 @@ time, its process id. etc. (the random device argument will not be used). This is of course the least secure setting. -.SP .TP 0.5i -.B -M (select pseudo-random number generator algorythm) +.B \-M (select pseudo-random number generator algorythm) .PP .PD 0 @@ -234,12 +233,11 @@ of RC6, which is faster. In order to be able to use RC6, wipe must be compiled with ENABLE_RC6 defined; see the Makefile for warnings about patent issues. -.SP In all cases the PRNG is seeded with the data gathered from the random device -(see -R and -S options). +(see \-R and \-S options). .TP 0.5i -.B -l +.B \-l As there can be some problems in determining the actual size of a block device (as some devices do not even have fixed sizes, such as floppy disks or tapes), you might need to specify the size of the device by hand; is the @@ -263,26 +261,26 @@ 114M32K = 114*1024*1024+32*1024. .TP 0.5i -.B -o +.B \-o This allows you to specify an offset inside the file or device to be wiped. The syntax of is the same as for the -.B -l +.B \-l option. .TP 0.5i -.B -e +.B \-e Use exact file size: do not round up file size to wipe possible remaining junk on the last block. .TP 0.5i -.B -Z +.B \-Z Don't try to wipe file sizes by repeatedly halving the file size. Note that this is only attempted on regular files so there is no use if you use .B wipe for cleaning a block or special device. .TP 0.5i -.B -F +.B \-F Don't try to wipe file names. Normally, .B wipe tries to cover file names by renaming them; this does NOT guarantee that the @@ -294,72 +292,72 @@ after every rename () makes filename wiping extremely slow. .TP 0.5i -.B -k +.B \-k Keep files: do not unlink the files after they have been overwritten. Useful if you want to wipe a device, while keeping the device special file. This implies -.B -F. +.B \-F. .TP 0.5i -.B -D +.B \-D Dereference symlinks: by default, wipe will never follow symlinks. If you -specify -D however, wipe will consent to, well, wipe the targets of any +specify \-D however, wipe will consent to, well, wipe the targets of any symlinks you might happen to name on the command line. You can't specify both --D and -r (recursive) options, first because of possible cycles in the +\-D and \-r (recursive) options, first because of possible cycles in the symlink-enhanced directory graph, I'd have to keep track of visited files to guarantee termination, which, you'll easily admit, is a pain in C, and, second, for fear of having a (surprise!!) block device buried somewhere unexpected. .TP 0.5i -.B -v +.B \-v Show version information and quit. .TP 0.5i -.B -h +.B \-h Display help. .SH EXAMPLES .PP .TP 0.5i -.B wipe -rcf /home/berke/plaintext/ -Wipe every file and every directory (option -r) listed under +.B wipe \-rcf /home/berke/plaintext/ +Wipe every file and every directory (option \-r) listed under /home/berke/plaintext/, including /home/berke/plaintext/. Regular files will be wiped with 34 passes and their sizes will then be halved a random number of times. Special files (character and block devices, FIFOs...) will not. All directory entries (files, special files and directories) will be renamed 10 times and then unlinked. Things with inappropriate permissions will -be chmod()'ed (option -c). All of this will happen without user confirmation -(option -f). +be chmod()'ed (option \-c). All of this will happen without user confirmation +(option \-f). .TP 0.5i -.B wipe -kq /dev/hda3 +.B wipe \-kq /dev/hda3 Assuming /dev/hda3 is the block device corresponding to the third partition of the master drive on the primary IDE interface, it will be wiped in quick mode -(option -q) i.e. with four random passes. The inode won't be renamed or -unlinked (option -k). Before starting, it will ask you to type ``yes''. +(option \-q) i.e. with four random passes. The inode won't be renamed or +unlinked (option \-k). Before starting, it will ask you to type ``yes''. .TP 0.5i -.B wipe -kqD /dev/floppy +.B wipe \-kqD /dev/floppy Since .B wipe never follows symlinks unless explicitly told to do so, if you want to wipe /dev/floppy which happens to be a symlink to /dev/fd0u1440 you will have to -specify the -D option. Before starting, it will ask you to type ``yes''. +specify the \-D option. Before starting, it will ask you to type ``yes''. .TP 0.5i -.B wipe -rfi >wipe.log /var/log/* -Here, wipe will recursively (option -r) destroy everything under /var/log, +.B wipe \-rfi >wipe.log /var/log/* +Here, wipe will recursively (option \-r) destroy everything under /var/log, excepting /var/log. It will not attempt to chmod() things. It will however be -verbose (option -i). It won't ask you to type ``yes'' because of the -f option. +verbose (option \-i). It won't ask you to type ``yes'' because of the \-f option. .TP 0.5i -.B wipe -Kq -l 1440k /dev/fd0 +.B wipe \-Kq \-l 1440k /dev/fd0 Due to various idiosyncracies of the operating system, it's not always easy to obtain the number of bytes a given device might contain (in fact, that quantity can be variable). This is why you sometimes need to tell .B wipe -the amount of bytes to destroy. That's what the -l option is for. Plus, +the amount of bytes to destroy. That's what the \-l option is for. Plus, you can use b,K,M and G as multipliers, respectively for 2^9 (512), 2^10 (1024 or a Kilo), 2^20 (a Mega) and 2^30 (a Giga) bytes. You can even combine more than one multiplier !! So that 1M416K = 1474560 bytes. @@ -379,7 +377,7 @@ For wiping floppy disks, at least under Linux, there is no way, besides obscure floppy-driver specific ioctl's to determine the block size of the disk. In particular, the BLKGETSIZE ioctl is not implemented in the floppy driver. So, -for wiping floppies, you must specify the size of the floppy disk using the -l +for wiping floppies, you must specify the size of the floppy disk using the \-l option, as in the last example. This option is normally not needed for other fixed block devices, like IDE and SCSI devices. --- a/wipe.tr.1 +++ b/wipe.tr.1 @@ -3,7 +3,7 @@ wipe \- dosyaların manyetik ortamdan güvenli bir şekilde silinmesini sağlar .SH ÖZET -wipe [-f][-c][-r][-q][-i] +wipe [\-f][\-c][\-r][\-q][\-i] .br .SH UYARI @@ -32,58 +32,58 @@ .PP .SH "KOMUT SATIRI SEÇENEKLERİ" .TP 0.5i -.B -f (onay sorusunu etkisizleştir) +.B \-f (onay sorusunu etkisizleştir) Bu seçenek belirtilmediği takdirde .B wipe silinecek dosya ve dizinlerin sayılarını belirtip onay istiyecektir. Bu onay sorusuna "yes" veya "no" cevabı vermeniz gerekiyor. .TP 0.5i -.B -r (altdizinlere gir) +.B \-r (altdizinlere gir) Tüm altdizinleriyle beraber dizinlerin silinmesine olanak sağlar. Simgesel bağlar takip edilmez. .TP 0.5i -.B -c (gerekirse dosya izin bitlerini değiştir) +.B \-c (gerekirse dosya izin bitlerini değiştir) Bu seçenek, eğer silinecek bir dosyanın (dizinin) yazma (yazma, okuma veya çalıştırma) izin bitleri kapalı ise izinleri değiştirmek için chmod () sistem çağrısını kullanılmasını sağlar. .TP 0.5i -.B -i (ayrıntılı bilgi konumu) +.B \-i (ayrıntılı bilgi konumu) Bu konum stdout'a ayrıntılı bilgi yazılmasını sağlar. Olağan konumda bütün iletiler stderr'e yazılır. .TP 0.5i -.B -s (sessiz çalışma konumu) +.B \-s (sessiz çalışma konumu) Bu konumda hata iletileri ile başlangıçtaki onay sorusu dışındaki bütün iletileri kaldırır. .TP 0.5i -.B -q (hızlı silme konumu) +.B \-q (hızlı silme konumu) Bu konumda .B wipe her dosya üstünde sadece 4 geçiş yapacaktır. Bu geçişlerde rasgele bilgi yazacaktır. .TP 0.5i -.B -a (hata durumda işlemi iptal et) +.B \-a (hata durumda işlemi iptal et) Program kurtarılamaz bir hata durumunda EXIT_FAILURE koduyla çıkacaktır. .TP 0.5i -.B -R +.B \-R Bir tane parametre gerektiren bu seçenekle farklı bir /dev/random aygıtı veya olağan çıktısı MD5 öz çıkarma algoritmasıyla kıyılacak bir komut belirtebilirsiniz. Bu parametrenin -tam anlamı -S seçeneği ile belli edilir. +tam anlamı \-S seçeneği ile belli edilir. .TP 0.5i -.B -S (rasgele tohumlama yöntemi) +.B \-S (rasgele tohumlama yöntemi) Bu seçenek tek harflik bir parametre alır; bu harf rasgele bilgi aygıtı/rasgele tohum komutunu parametresinin nasıl kullanılacağını belirler. Olağan -rasgele bilgi aygıtı /dev/random'dur, farklı değerleri -R seçeneği ile +rasgele bilgi aygıtı /dev/random'dur, farklı değerleri \-R seçeneği ile belirtilebilir. .PP .PD 0 @@ -113,10 +113,9 @@ çevre değişkenlerini, tarihi ve zamanı, program numarasını vs. kullanarak elde edecektir. -.SP .TP 0.5i -.B -M (l|a|r|p) (sözde rasgele sayı üretici algoritması) +.B \-M (l|a|r|p) (sözde rasgele sayı üretici algoritması) .PP .PD 0 @@ -155,26 +154,25 @@ ise wipe'ı ENABLE_RC6 ile derlemeniz gerekir. -.SP Her durumda SRSÜ rasgele bilgi aygıtının çıktısıyla -tohumlanır (-R ve -S seçeneklerine bakınız). +tohumlanır (\-R ve \-S seçeneklerine bakınız). .TP 0.5i -.B -v (sürüm) +.B \-v (sürüm) Sürüm bilgisini gösterir ve çıkar. .TP 0.5i -.B -h (yardım) +.B \-h (yardım) Bununla kısa bir yardım bilgisi gösterir. .SH ÖRNEKLER .PP -wipe -rcf /home/berke/plaintext/* +wipe \-rcf /home/berke/plaintext/* -wipe -q /dev/hda3 +wipe \-q /dev/hda3 -wipe -rfi >wipe.log /var/log/auth.* +wipe \-rfi >wipe.log /var/log/auth.* .SH HATALAR/SINIRLAMALAR .PP debian/wipe.dirs0000644000000000000000000000001111635050323011003 0ustar /usr/bin debian/control0000644000000000000000000000162611635050323010574 0ustar Source: wipe Section: utils Priority: extra Maintainer: Debian Forensics Uploaders: Christophe Monniez Build-Depends: debhelper (>= 8.0.0) Standards-Version: 3.9.2 Homepage: http://lambda-diode.com/software/wipe/ Vcs-Browser: http://git.debian.org/?p=forensics/wipe.git;a=summary Vcs-Git: git://git.debian.org/forensics/wipe.git Package: wipe Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Secure file deletion Recovery of supposedly erased data from magnetic media is easier than what many people would like to believe. A technique called Magnetic Force Microscopy (MFM) allows any moderately funded opponent to recover the last two or three layers of data written to disk. Wipe repeatedly writes special patterns to the files to be destroyed, using the fsync() call and/or the O_SYNC bit to force disk access. debian/copyright0000644000000000000000000000411011635050323011113 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174 Upstream-Contact: Berke Durak Source: http://lambda-diode.com/software/wipe/ Files: * Copyright: 1998-2004 Berke Durak License: GPL-2+ Files: md5.* Copyright: 1990 RSA Data Security, Inc. All rights reserved License: other License to copy and use this software is granted provided that it is identified as the "RSA Data Security, Inc. MD5 Message- Digest Algorithm" in all material mentioning or referencing this software or this function. . License is also granted to make and use derivative works provided that such works are identified as "derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm" in all material mentioning or referencing the derived work. . RSA Data Security, Inc. makes no representations concerning either the merchantability of this software or the suitability of this software for any particular purpose. It is provided "as is" without express or implied warranty of any kind. . These notices must be retained in any copies of any part of this documentation and/or software. Files: debian/* Copyright: 2006-2009 Daniel Baumann License: GPL-2+ License: GPL-2+ This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, 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-2 file. debian/wipe.examples0000644000000000000000000000001311635050323011662 0ustar examples/* debian/wipe.manpages0000644000000000000000000000000411635050323011637 0ustar *.1 debian/compat0000644000000000000000000000000211635050323010362 0ustar 8