Your message dated Tue, 14 Feb 2017 09:48:31 +0000 with message-id <[email protected]> and subject line Bug#850692: fixed in pyrit 0.4.0-7.1 has caused the Debian Bug report #850692, regarding pyrit: failed with 'BitEnumField' object has no attribute 'names' to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 850692: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850692 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: pyrit Version: 0.4.0-7 Severity: normal Tags: patch Hello, Trying to run the command "pyrit -r file.cap analyze" failed: Traceback (most recent call last): File "/usr/bin/pyrit", line 6, in <module> pyrit_cli.Pyrit_CLI().initFromArgv() File "/usr/lib/python2.7/dist-packages/pyrit_cli.py", line 115, in initFromArgv func(self, **options) File "/usr/lib/python2.7/dist-packages/pyrit_cli.py", line 163, in new_f f(*args, **kwds) File "/usr/lib/python2.7/dist-packages/pyrit_cli.py", line 447, in analyze parser = self._getParser(capturefile) File "/usr/lib/python2.7/dist-packages/pyrit_cli.py", line 179, in _getParser parser.parse_pcapdevice(dev) File "/usr/lib/python2.7/dist-packages/cpyrit/pckttools.py", line 601, in parse_pcapdevice self.parse_packet(pckt) File "/usr/lib/python2.7/dist-packages/cpyrit/pckttools.py", line 614, in parse_packet if dot11_pckt.isFlagSet('type', 'Control'): File "/usr/lib/python2.7/dist-packages/cpyrit/pckttools.py", line 66, in isFlagSet return (1 << field.names.index([value])) & self.__getattr__(name) != 0 AttributeError: 'BitEnumField' object has no attribute 'names' It's caused by the new version of python-scapy (2.3.3). Here is a patch to fix it. The patch is from the https://github.com/JPaulMora/Pyrit repo (dev branch): https://github.com/JPaulMora/Pyrit/commit/14ec997174b8e8fd20d22b6a97c57e19633f12a0 John Mora seems to have taken maintenance of pyrit and should consider tracking new release from this repository. Consider joining the pkg-security team, we could co-maintain pyrit there: https://wiki.debian.org/Teams/pkg-security -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages pyrit depends on: ii libc6 2.24-8 ii libpcap0.8 1.8.1-3 ii libssl1.0.2 1.0.2j-4 ii python 2.7.13-1 pn python:any <none> Versions of packages pyrit recommends: ii python-scapy 2.3.3-1 ii python-sqlalchemy 1.0.15+ds1-1 Versions of packages pyrit suggests: ii python-mysqldb 1.3.7-1+b1 ii python-psycopg2 2.6.2-1 -- no debconf informationSubject: Update isinstance(EnumField) for scapy 2.3.3+ scapy 2.3.2- requires that scapy.fields.EnumField is passed to isinstance, while scapy 2.3.3+ needs scapy.fields._EnumField. This patch accomodates pyrit for both versions. Author: Ilya Terentyev <[email protected]> Origin: https://github.com/JPaulMora/Pyrit/commit/14ec997174b8e8fd20d22b6a97c57e19633f12a0 Bug: https://github.com/JPaulMora/Pyrit/issues/500 Bug-Kali: https://bugs.kali.org/view.php?id=3801 Date: Tue, 1 Nov 2016 20:40:15 +0300 Forwarded: not-needed Last-Update: 2017-01-06 --- cpyrit/pckttools.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cpyrit/pckttools.py b/cpyrit/pckttools.py index 326829d..d58fff1 100644 --- a/cpyrit/pckttools.py +++ b/cpyrit/pckttools.py @@ -54,12 +54,23 @@ scapy.layers.dot11.PrismHeader) +def isEnumField(f): + """Return True if f is an instance of EnumField. This function tries to be + portable: scapy versions 2.3.2 and earlier need isinstance(EnumField), + while scapy 2.3.3+ requires isinstance(_EnumField). + """ + try: + return isinstance(f, scapy.fields._EnumField) + except AttributeError: + return isinstance(f, scapy.fields.EnumField) + + def isFlagSet(self, name, value): """Return True if the given field 'includes' the given value. Exact behaviour of this function is specific to the field-type. """ field, val = self.getfield_and_val(name) - if isinstance(field, scapy.fields.EnumField): + if isEnumField(field): if val not in field.i2s: return False return field.i2s[val] == value
--- End Message ---
--- Begin Message ---Source: pyrit Source-Version: 0.4.0-7.1 We believe that the bug you reported is fixed in the latest version of pyrit, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Gianfranco Costamagna <[email protected]> (supplier of updated pyrit package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Tue, 14 Feb 2017 10:27:30 +0100 Source: pyrit Binary: pyrit Architecture: source Version: 0.4.0-7.1 Distribution: unstable Urgency: medium Maintainer: Python Applications Packaging Team <[email protected]> Changed-By: Gianfranco Costamagna <[email protected]> Description: pyrit - GPGPU-driven WPA/WPA2-PSK key cracker Closes: 850692 Changes: pyrit (0.4.0-7.1) unstable; urgency=medium . * Non-maintainer upload. [ Sophie Brun ] * debian/patches/update-for-scapy-2.3.3.patch: - fix build failure with new python-scapy (Closes: #850692) Checksums-Sha1: b7d95a99ee839e502eab33f73be785854e504514 2069 pyrit_0.4.0-7.1.dsc 18a4fe723d56b02f769097477b9a7d99a8d5592e 13016 pyrit_0.4.0-7.1.debian.tar.xz Checksums-Sha256: 3cca64fabe89a6f9cc4ab860dfff0f8c6904326d9c832ebb5fdcdd3c92facfbe 2069 pyrit_0.4.0-7.1.dsc e1e813cf64ea3d8f83d260d5dce8c22826878cb62f9c51442360ff15a9427e87 13016 pyrit_0.4.0-7.1.debian.tar.xz Files: 1cd28ad1e6ac495abacb52071aa86b9e 2069 net extra pyrit_0.4.0-7.1.dsc e865f900fddac4e39d5ffe2892cb246c 13016 net extra pyrit_0.4.0-7.1.debian.tar.xz -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYos9ZAAoJEPNPCXROn13Z9zIQAL/+21OgN8SDa4qrDQoG2bwO hLggkEY+qyG7XtReP/Tw1Ed9qup7JvnmiuIPaAJUKmkxFvSSy0udbbQmB7qTtL37 fc7Ghmiyx1buC7vVsBMtVJHj/BEvL49voMrNubccwXBkb7JHr2sFix7WqBK4bV7p 6++gj4hl+/SKvGfIJ4QMgUL/ig8r69iOFmqXLypAt6thS/35kkg2r/4odxLSmQga d8sDkcyd65VkzImdnHf0x7YGx9H8umr3MHBp8PB9LyDbjwP+P82ZMXvnU4wLxWCj xpD34LWQIJO1S0t2FbOWXCOEGmpoosM3EYKEivXsd6VF6wXlT6CbhPUx5arq4Jkb hR9t3NEFGjVeKaVbsQ1wB0kePSyXGqtAFAFlvgwgnM/GLkpBv9OfYtiTmcaMFXkA chi6jEnVNQIMKp694fY7rudxwoXYongZW1VXHH+9qMdUsDB3DgMXy0cKdtGteLti bGF1Nc8qG+eQUtRGcHR/4yQi5RI3vHofdlhqDJt82H4nekxehEhR02e9ylyMU+pG fwNMOLYPhxRSFmpPfCXzmbBZ4Xnku1wOdRu9Z5buU//VBVv3Ya3PbKLY5Sz92MA9 YEiOBnePQzzi35PDmmxKK7WQ/2Z1d1IapKfJisQoccBP8Dzo1Gs4iTeUUAqOJpDp 0JW9f+BNaxkFJ0tqLaXh =7BTZ -----END PGP SIGNATURE-----
--- End Message ---

