--- python-pefile-1.2.10.139.orig/debian/README.Debian +++ python-pefile-1.2.10.139/debian/README.Debian @@ -0,0 +1,12 @@ +python-pefile for Debian +------------------------ + +You'll probably want to consult the online documentation for usage examples: + + http://code.google.com/p/pefile/w/list + +Some functions require a signature database, for example: + + http://www.peid.info/BobSoft/Downloads/UserDB.zip + + -- Robert S. Edmonds --- python-pefile-1.2.10.139.orig/debian/changelog +++ python-pefile-1.2.10.139/debian/changelog @@ -0,0 +1,29 @@ +python-pefile (1.2.10.139-2) unstable; urgency=medium + + * Fixed watch file + + -- Hilko Bengen Mon, 03 Aug 2015 20:11:38 +0200 + +python-pefile (1.2.10.139-1) unstable; urgency=medium + + * New upstream version (Closes: #737618) + * Adopted package (Closes: #737647) + * Package updates: Use modern Debhelper, bumped Standards-Version, + changed copyright file to machine-readable format + * Added Homepage and Vcs-* fields to debian/control + + -- Hilko Bengen Sat, 28 Feb 2015 19:14:19 +0100 + +python-pefile (1.2.9.1-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Convert to dh_python2 (Closes: #617017). + + -- Andrea Colangelo Wed, 26 Jun 2013 12:30:23 +0200 + +python-pefile (1.2.9.1-1) unstable; urgency=low + + * Initial release; closes: #475493. + + -- Robert S. Edmonds Thu, 10 Apr 2008 16:59:47 -0400 + --- python-pefile-1.2.10.139.orig/debian/compat +++ python-pefile-1.2.10.139/debian/compat @@ -0,0 +1 @@ +9 --- python-pefile-1.2.10.139.orig/debian/control +++ python-pefile-1.2.10.139/debian/control @@ -0,0 +1,36 @@ +Source: python-pefile +Section: python +Priority: extra +Maintainer: Hilko Bengen +Build-Depends: debhelper (>= 9), python-dev (>= 2.6.6-3~), dh-python, +Standards-Version: 3.9.6 +Homepage: http://code.google.com/p/pefile/ +Vcs-Git: git://anonscm.debian.org/collab-maint/python-pefile.git +Vcs-Browser: http://anonscm.debian.org/?p=collab-maint/python-pefile.git;a=summary + +Package: python-pefile +Architecture: all +Depends: ${python:Depends}, ${misc:Depends}, +Description: Portable Executable (PE) parsing module for Python + pefile is a Python module to read and work with Portable Executable (PE) + files. Most of the information in the PE header is accessible, as well as all + the sections, section information and data. + . + All the basic PE file structures are available with their default names as + attributes of the returned instance. + . + Processed elements such as the import table are made available with lowercase + names, to differentiate them from the upper case basic structure names. + . + pefile has been tested against the limits of valid PE headers; that is, + Windows malware. Lots of packed malware attempt to abuse the format beyond its + standard use. + . + Some of the tasks that pefile makes possible are: + * Modifying and writing back to the PE image + * Header inspection + * Section analysis + * Retrieving data + * Warnings for suspicious and malformed values + * Packer detection with PEiD signatures + * PEiD signature generation --- python-pefile-1.2.10.139.orig/debian/copyright +++ python-pefile-1.2.10.139/debian/copyright @@ -0,0 +1,54 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: pefile +Source: + +Files: * +Copyright: 2004-2013 Ero Carrera +License: BSD-3-Clause + +Files: debian/* +Copyright: 2008 Robert S. Edmonds + 2015 Hilko Bengen +License: GPL-3.0+ + +License: BSD-3-Clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +License: GPL-3.0+ + 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 3 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 program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". --- python-pefile-1.2.10.139.orig/debian/docs +++ python-pefile-1.2.10.139/debian/docs @@ -0,0 +1 @@ +README --- python-pefile-1.2.10.139.orig/debian/pefile-match +++ python-pefile-1.2.10.139/debian/pefile-match @@ -0,0 +1,42 @@ +#!/usr/bin/env python + +import os +import pefile +import peutils +import sys + +def dirwalk(path): + for f in os.listdir(path): + fullpath = os.path.join(path, f) + if os.path.isdir(fullpath) and not os.path.islink(fullpath): + for x in dirwalk(fullpath): + yield x + else: + yield fullpath + +def main(sigfile, path): + sigs = peutils.SignatureDatabase(sigfile) + + def print_match(f): + try: + res = sigs.match_all(pefile.PE(f, fast_load=True), ep_only=True) + if not res: + res = 'no match' + print '%s: %s' % (f, res) + except pefile.PEFormatError, e: + print '%s: %s' % (f, str(e).strip("'")) + except KeyboardInterrupt: + sys.exit(1) + + if os.path.isfile(path): + print_match(path) + elif os.path.isdir(path): + for f in dirwalk(path): + if os.path.isfile(f): + print_match(f) + +if __name__ == '__main__': + if len(sys.argv) != 3: + print >>sys.stderr, 'usage: %s ' % sys.argv[0] + sys.exit(1) + main(sys.argv[1], sys.argv[2]) --- python-pefile-1.2.10.139.orig/debian/python-pefile.examples +++ python-pefile-1.2.10.139/debian/python-pefile.examples @@ -0,0 +1 @@ +debian/pefile-match --- python-pefile-1.2.10.139.orig/debian/rules +++ python-pefile-1.2.10.139/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f +#export DH_VERBOSE=1 + +%: + dh $@ --with python2 --- python-pefile-1.2.10.139.orig/debian/watch +++ python-pefile-1.2.10.139/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=uversionmangle=s/-/./g \ + https://github.com/erocarrera/pefile/releases .*/pefile-(.*)\.tar\.gz