Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#51633 - [pyrit] outdated Google Code version now breaks with scapy 2.3.3

Attached to Project: Community Packages
Opened by Ilya Terentyev (bacondropped) - Tuesday, 01 November 2016, 21:09 GMT
Last edited by Levente Polyak (anthraxx) - Sunday, 13 November 2016, 21:26 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

community/pyrit uses the outdated and no longer maintained Google Code version, which broke with the recent update to scapy v2.3.3 with the following backtrace:

Traceback (most recent call last):
File "/usr/bin/pyrit", line 6, in <module>
pyrit_cli.Pyrit_CLI().initFromArgv()
File "/usr/lib/python2.7/site-packages/pyrit_cli.py", line 115, in initFromArgv
func(self, **options)
File "/usr/lib/python2.7/site-packages/pyrit_cli.py", line 163, in new_f
f(*args, **kwds)
File "/usr/lib/python2.7/site-packages/pyrit_cli.py", line 912, in attack_passthrough
ap = self._fuzzyGetAP(self._getParser(capturefile), bssid, essid)
File "/usr/lib/python2.7/site-packages/pyrit_cli.py", line 179, in _getParser
parser.parse_pcapdevice(dev)
File "/usr/lib/python2.7/site-packages/cpyrit/pckttools.py", line 601, in parse_pcapdevice
self.parse_packet(pckt)
File "/usr/lib/python2.7/site-packages/cpyrit/pckttools.py", line 614, in parse_packet
if dot11_pckt.isFlagSet('type', 'Control'):
File "/usr/lib/python2.7/site-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'

There are two possible solutions:

1) Apply the following patch to package source: https://gist.github.com/bacondropped/c3dd5586a9cf204cd44a3f290fe25529

2) Abandon the unmaintained upstream and package JPaulMora's active fork instead: https://github.com/JPaulMora/Pyrit (this patch is currently awaiting merge, though)

More info at https://github.com/JPaulMora/Pyrit/issues/500 and https://github.com/secdev/scapy/issues/323
This task depends upon

Closed by  Levente Polyak (anthraxx)
Sunday, 13 November 2016, 21:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  0.5.0-1

Loading...