brktrksvr / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

NameError: global name 'filename' is not defined #388

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by forgew...@gmail.com on 28 Feb 2012 at 11:03

GoogleCodeExporter commented 8 years ago
just upgraded to Ubuntu 11.10 and it is the same story

Original comment by forgew...@gmail.com on 1 Mar 2012 at 11:16

GoogleCodeExporter commented 8 years ago
try to downgrade python to 2.6

Original comment by masterzorag on 1 Mar 2012 at 2:11