Export to GitHub

pyrit - issue #388

NameError: global name 'filename' is not defined


Posted on Feb 28, 2012 by Swift Hippo

What steps will reproduce the problem? 1.pyrit -r some_captured.cap attack_db 2. 3.

What is the expected output? What do you see instead? Error while loading results ******* for ESSID 'motorola**' Traceback (most recent call last): File "/usr/local/bin/pyrit", line 6, in <module> pyrit_cli.Pyrit_CLI().initFromArgv() File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 106, in initFromArgv func(self, **options) File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 143, in new_f f(*args, **kwds) File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 729, in attack_db yieldNewResults=False)): File "/usr/local/lib/python2.7/dist-packages/cpyrit/util.py", line 134, in next return self.storage.essids[self.essid, key] File "/usr/local/lib/python2.7/dist-packages/cpyrit/storage.py", line 388, in getitem raise IOError("File-format for '%s' unknown." % filename) NameError: global name 'filename' is not defined

What version of the product are you using? On what operating system? DISTRIB_ID=Ubuntu DISTRIB_RELEASE=11.04 DISTRIB_CODENAME=natty DISTRIB_DESCRIPTION="Ubuntu 11.04" 2.6.38-13-generic

Please provide any additional information below.

Comment #1

Posted on Mar 1, 2012 by Swift Hippo

just upgraded to Ubuntu 11.10 and it is the same story

Comment #2

Posted on Mar 1, 2012 by Happy Ox

try to downgrade python to 2.6

Status: New

Labels:
Type-Defect Priority-Medium