Results 1 to 3 of 3

Thread: Pyrit errors after Dist-Upgrade Fix

  1. #1
    Junior Member
    Join Date
    Feb 2016
    Posts
    14

    Pyrit errors after Dist-Upgrade Fix

    I experienced the following error after upgrading my Kali distribution when I tried to run Pyrit:

    Code:
    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'
    I was able to fix this issue by uninstalling Scapy 2.3.3 that was included in the upgrade and downgrading to Scapy 2.3.2.

    You can download Scapy 2.3.2 at https://github.com/secdev/scapy/archive/v2.3.2.zip. Unpack and run the following in a terminal window in the same directory you unpacked the files in (that contains the file setup.py):

    Code:
    sudo python setup.py install
    After doing this Pyrit ran fine.

    Hope this helps.

    G3Cube

  2. #2
    Senior Member
    Join Date
    Apr 2013
    Location
    in a computer
    Posts
    635
    Thanks for posting the fix Was having this trouble with Pyrit, too.

  3. #3
    Junior Member
    Join Date
    Dec 2016
    Posts
    1

    Downgrade worked. Now how to undo it?

    Your suggestion to downgrade Scapy, worked. It immediately fixed the problem with Pyrit.
    Thanks!

    But now that Pyrit has been updated.... how would I undo the Scapy downgrade?
    (And again allow automatic updates from this day forward.)



    Quote Originally Posted by G3Cube View Post
    I experienced the following error after upgrading my Kali distribution when I tried to run Pyrit:

    Code:
    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'
    I was able to fix this issue by uninstalling Scapy 2.3.3 that was included in the upgrade and downgrading to Scapy 2.3.2.

    You can download Scapy 2.3.2 at https://github.com/secdev/scapy/archive/v2.3.2.zip. Unpack and run the following in a terminal window in the same directory you unpacked the files in (that contains the file setup.py):

    Code:
    sudo python setup.py install
    After doing this Pyrit ran fine.

    Hope this helps.

    G3Cube

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •