C4l4M1TY / pyrit

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

IOError: [Errno 2] No such file or directory: 'dict.gz' #318

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. installed pyrit
2. imported passwords, verified with "eval" that passwords are imported
3. stripped data, verified stripped data includes handshake
4. issued: pyrit -r /home/X/pskstripped.cap -i dict.gz -b MACADDRESS 
attack_passthrough

What do you see instead?
pyrit -r /home/X/pskstripped.cap -i dict.gz -b MACADDRESS attack_passthrough
Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Parsing file '/home/X/pskstripped.cap' (1/1)...
Parsed 144 packets (144 802.11-packets), got 1 AP(s)

Traceback (most recent call last):
  File "/usr/local/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 115, in initFromArgv
    func(self, **options)
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 163, in new_f
    f(*args, **kwds)
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 927, in attack_passthrough
    with cpyrit.util.FileWrapper(infile) as reader:
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/util.py", line 130, in __init__
    self.f = gzip.open(filename, mode, 6)
  File "/usr/lib/python2.6/gzip.py", line 33, in open
    return GzipFile(filename, mode, compresslevel)
  File "/usr/lib/python2.6/gzip.py", line 79, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: 'dict.gz'

What version of the product are you using? On what operating system?
pyrit 4.0, Ubuntu 10.4

Please provide any additional information below.
verified passwords:
Connecting to storage at 'file://'...  connected.
Passwords available: 611511456

Where is "dict.gz"?  I search for it but I only find 3 tiny dict.gz files, the 
test dictionaries, not the ones I imported the password list into...

Original issue reported on code.google.com by fvul...@gmail.com on 24 May 2011 at 3:25

GoogleCodeExporter commented 8 years ago
You didnt quite get the concept here:

Pyrit can read passwords from two sources: It's own database (where you import 
passwords and store PMKs to) or an external file (where you can't store PMKs).

*Either* you import your passwords to the database and then use that database 
e.g. with 'attack_batch' *or* you leave the database alone and use 
'attack_passthrough' with a password-file given through -i.

dict.gz is just a password-file that is provided for testing.

Original comment by lukas.l...@gmail.com on 24 May 2011 at 4:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Well that makes sense, I re-read the tutorial and now it is clear.  Thanks for 
the response.

Original comment by fvul...@gmail.com on 25 May 2011 at 12:07

GoogleCodeExporter commented 8 years ago
I'm having a similar issue, except I get the error when trying to import the 
dict.gz password file.  I use the command pyrit -i dict.gz import_passwords and 
get the same Connecting to storage at 'file://'...  connected.
Traceback (most recent call last):
  File "/usr/bin/pyrit", line 6, in <module>
    pyrit_cli.Pyrit_CLI().initFromArgv()
  File "/usr/lib/pymodules/python2.7/pyrit_cli.py", line 115, in initFromArgv
    func(self, **options)
  File "/usr/lib/pymodules/python2.7/pyrit_cli.py", line 352, in import_passwords
    with cpyrit.util.FileWrapper(infile) as reader:
  File "/usr/lib/pymodules/python2.7/cpyrit/util.py", line 130, in __init__
    self.f = gzip.open(filename, mode, 6)
  File "/usr/lib/python2.7/gzip.py", line 34, in open
    return GzipFile(filename, mode, compresslevel)
  File "/usr/lib/python2.7/gzip.py", line 89, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: 'dict.gz'

Obviously I'm really new to this, but that's the way I've seen it done on every 
tutorial I've looked at.  I'm using Kali Linux btw.  Any information in the 
right direction would be very appreciated.  Thank you.

Original comment by 2jackson...@gmail.com on 23 Aug 2014 at 12:19