Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't parse a file #633

Open
VladislavNekto opened this issue Oct 10, 2022 · 2 comments
Open

Can't parse a file #633

VladislavNekto opened this issue Oct 10, 2022 · 2 comments

Comments

@VladislavNekto
Copy link

orange@PC:~/wificrack$ pyrit -r pcap-05.cap analyze
Pyrit 0.5.0 (C) 2008-2011 Lukas Lueg - 2015 John Mora
https://github.com/JPaulMora/Pyrit
This code is distributed under the GNU General Public License v3+

Parsing file 'pcap-05.cap' (1/1)...
Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/usr/local/lib64/python2.7/site-packages/pyrit_cli.py", line 117, in initFromArgv
    func(self, **options)
  File "/usr/local/lib64/python2.7/site-packages/pyrit_cli.py", line 166, in new_f
    f(*args, **kwds)
  File "/usr/local/lib64/python2.7/site-packages/pyrit_cli.py", line 466, in analyze
    parser = self._getParser(capturefile)
  File "/usr/local/lib64/python2.7/site-packages/pyrit_cli.py", line 182, in _getParser
    parser.parse_pcapdevice(dev)
  File "/usr/local/lib64/python2.7/site-packages/cpyrit/pckttools.py", line 714, in parse_pcapdevice
    self.parse_packet(pckt)
  File "/usr/local/lib64/python2.7/site-packages/cpyrit/pckttools.py", line 732, in parse_packet
    self._add_ap(dot11_pckt.addr2, dot11_pckt)
  File "/usr/local/lib64/python2.7/site-packages/cpyrit/pckttools.py", line 660, in _add_ap
    essid = self._find_ssid(pckt)
  File "/usr/local/lib64/python2.7/site-packages/cpyrit/pckttools.py", line 652, in _find_ssid
    if elt_pckt.isFlagSet('ID', 'SSID') \
  File "/usr/local/lib64/python2.7/site-packages/cpyrit/pckttools.py", line 80, in isFlagSet
    if val not in field.i2s:
TypeError: argument of type 'NoneType' is not iterable
@kevinixz
Copy link

Same output here, any solution?

@kevinixz
Copy link

kevinixz commented Nov 19, 2022

One solution 14ec997#r42177738

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants