debian/0000755000000000000000000000000012111203160007151 5ustar debian/copyright0000644000000000000000000000457412111177275011137 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: binwalk Upstream-Contact: Craig Heffner Source: http://code.google.com/p/binwalk/ Files: * Copyright: 2010-2012, Craig Heffner License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: src/md5.* Copyright: 1999 Aladdin Enterprises License: Zlib This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Files: src/magic.binwalk src/magic/magic.compressed Copyright: 2003 Andrew Tridgell License: other You may do whatever you want with this file Comment: this applies only to a small block inside the files debian/binwalk.10000644000000000000000000000534112111177275010706 0ustar .TH BINWALK "1" "April 2012" "binwalk" "User Commands" .SH NAME binwalk \- binary image search tool .SH SYNOPSIS .B binwalk [\fIOPTIONS\fR] [\fIFILE1\fR] [\fIFILE2\fR] [\fIFILE3\fR] ... .SH DESCRIPTION Binwalk is a tool for searching a given binary image for embedded files and executable code. Specifically, it is designed for identifying files and code embedded inside of firmware images. Binwalk uses the libmagic library, so it is compatible with magic signatures created for the Unix file utility. .SH OPTIONS .TP \fB\-o\fR, \fB\-\-offset=\fR File offset to start searching at .TP \fB\-l\fR, \fB\-\-length=\fR Number of bytes to search .TP \fB\-b\fR, \fB\-\-align=\fR Set byte alignment .TP \fB\-f\fR, \fB\-\-file=\fR Log results to file .TP \fB\-m\fR, \fB\-\-magic=\fR Magic file to use [/etc/binwalk/magic.binwalk] .TP \fB\-g\fR, \fB\-\-grep=\fR Only display results that contain the text .TP \fB\-r\fR, \fB\-\-raw\-bytes=\fR Search for a sequence of raw bytes inside the target file (implies \fB\-a\fR, \fB\-d\fR, \fB\-I\fR) .TP \fB\-y\fR, \fB\-\-search=\fR Only search for matches that have in their description (implies \fB\-t\fR, \fB\-d\fR, \fB\-k\fR) .TP \fB\-x\fR, \fB\-\-exclude=\fR Exclude matches that have in their description .TP \fB\-i\fR, \fB\-\-include=\fR Include matches that are normally excluded and that have in their description * .TP \fB\-a\fR, \fB\-\-all\fR Search for all matches, including those that are normally excluded * .TP \fB\-d\fR, \fB\-\-defaults\fR Speed up scan by disabling default filters ** .TP \fB\-I\fR, \fB\-\-show\-invalid\fR Show results marked as invalid *** .TP \fB\-t\fR, \fB\-\-fast\fR Speed up scan by only loading signatures specified by \fB\-i\fR or \fB\-y\fR .TP \fB\-u\fR, \fB\-\-update\fR Update magic signature files .TP \fB\-v\fR, \fB\-\-verbose\fR Enable verbose mode .TP \fB\-s\fR, \fB\-\-smart\fR Disable smart matching (implies \fB\-a\fR) .TP \fB\-k\fR, \fB\-\-keep\-going\fR Don't stop at the first match (implies \fB\-I\fR) .TP \fB\-c\fR, \fB\-\-validate\fR Validate magic file .TP \fB\-q\fR, \fB\-\-quiet\fR Supress output to stdout .TP \fB\-A\fR, \fB\-\-opcodes\fR Scan for executable code (implies \fB\-a\fR) .TP \fB\-C\fR, \fB\-\-cast\fR Cast file contents as various data types (implies \fB\-k\fR) .PP * Signatures of two bytes or less are excluded by default. Use \fB\-i\fR or \fB\-a\fR to include them in the search. .PP ** Default filters include 'gzip', 'lzma' and 'jffs2' results. .IP Disabling the default filters (\fB\-d\fR) will speed up scan time, but may miss these file types. .PP *** By default, all results that contain the text 'invalid' will not be shown. Use \fB\-I\fR to display them. debian/patches/0000755000000000000000000000000012111201174010603 5ustar debian/patches/series0000644000000000000000000000000012111201174012006 0ustar debian/control0000644000000000000000000000212612111202341010555 0ustar Source: binwalk Section: devel Priority: extra Maintainer: Leo Costela Build-Depends: debhelper (>= 9), python-all-dev Standards-Version: 3.9.3 Homepage: http://code.google.com/p/binwalk/ Vcs-Browser: http://git.debian.org/?p=collab-maint/binwalk.git Vcs-Git: git://git.debian.org/git/collab-maint/binwalk.git Package: binwalk Architecture: any Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-magic Provides: ${python:Provides} Description: tool for searching binary images for embedded files and executable code Binwalk is a tool for searching a given binary image for embedded files and executable code. Specifically, it is designed for identifying files and code embedded inside of firmware images. Binwalk uses the libmagic library, so it is compatible with magic signatures created for the Unix file utility. . Binwalk also includes a custom magic signature file which contains improved signatures for files that are commonly found in firmware images such as compressed/archived files, firmware headers, Linux kernels, bootloaders, filesystems, etc. debian/rules0000755000000000000000000000013212111201312010222 0ustar #!/usr/bin/make -f # export DH_VERBOSE=1 %: dh $@ --sourcedirectory=src --with python2 debian/changelog0000644000000000000000000000224512111203136011031 0ustar binwalk (1.0-1) unstable; urgency=low * [c78b7e93] Imported Upstream version 1.0 - full rewrite in python * [5eb6c54c] migrate to new python rewrite * [be1394d6] add python API to /u/s/docs/binwalk -- Leo Costela Wed, 20 Feb 2013 18:21:37 +0100 binwalk (0.5.0-1) unstable; urgency=low * [e62042e2] Imported Upstream version 0.5.0 * [c04a9633] add patch to fix DESTDIR handling during install -- Leo Costela Thu, 17 Jan 2013 17:12:32 +0100 binwalk (0.4.5-1) unstable; urgency=low * [6b44b155] Imported Upstream version 0.4.5 -- Leo Costela Sat, 08 Sep 2012 13:19:20 +0200 binwalk (0.4.4-1) unstable; urgency=low * [658252c0] Imported Upstream version 0.4.4 * [30f6357d] debian/copyright: add copyrighted blocks in magic.* files * [d3607624] drop use_cppflags.patch (merged upstream) * [f7060555] don't build with --enable-libmagic and drop README.source -- Leo Costela Mon, 06 Aug 2012 17:56:57 +0200 binwalk (0.4.3+dfsg-1) unstable; urgency=low * First debian package (closes: #660654) -- Leo Costela Sun, 15 Jul 2012 15:55:22 +0200 debian/compat0000644000000000000000000000000212111177275010370 0ustar 9 debian/source/0000755000000000000000000000000012111177275010472 5ustar debian/source/format0000644000000000000000000000001412111177275011700 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000002512111177347010042 0ustar docs/API docs/README debian/manpages0000644000000000000000000000002112111177275010701 0ustar debian/binwalk.1 debian/watch0000644000000000000000000000020112111177275010214 0ustar version=3 opts=dversionmangle=s/(\+|\.)dfsg$// \ http://code.google.com/p/binwalk/downloads/list .*/binwalk-([\d\.]+?)\.tar\.gz