freewso / pyrit

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

cpyrit.storage.StorageError / Server error / Fault 1 #291

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.pyrit serve
2.pyrit benchmark and
3 pyrit attack passthough

What is the expected output? What do you see instead?

Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.5/site-packages/cpyrit/network.py", line 50, in run
    self.server.gather(self.client.uuid, 5000)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.5/xmlrpclib.py", line 1201, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.5/xmlrpclib.py", line 1340, in _parse_response
    return u.close()
  File "/usr/lib/python2.5/xmlrpclib.py", line 787, in close
    raise Fault(**self._stack[0])
Fault: <Fault 1: "<class 'cpyrit.storage.StorageError'>:Not a PAW2-buffer.">

Serving 1 active clients; 0 PMKs/s; 0.0 TTS Exception in thread Thread-78:

What version of the product are you using? On what operating system?
v299 and BT4

Original issue reported on code.google.com by mannydia...@gmail.com on 2 Apr 2011 at 5:08

GoogleCodeExporter commented 8 years ago
I am having exactly the same issue on BT4, and also Mac OS X 10.6.6. I can't 
get serve to run on any client without this happening.

Original comment by jeddawig...@gmail.com on 5 Apr 2011 at 7:35

GoogleCodeExporter commented 8 years ago
I have the same problem too, Ubuntu 10.04 Lucid / Pyrit svn r299

What works is just manually connecting to the relay server from my 2nd box to 
the relay server. 
pyrit -u http://192.168.0.100:17934 batch

Error I get on the relay server when I run pyrit -u http://ip:17935 batch

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 784, in batchprocess
    if len(storage.essids) == 0:
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/storage.py", line 79, in protected_f
    ret = f(*args, **kwds)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/storage.py", line 628, in __len__
    return self.cli.essids.len()
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1: "<type 'exceptions.AttributeError'>:">

On the box with the big gpu, this error appears every second but pyrit 
continues to run and does not segfault. 

Serving 1 active clients; 0 PMKs/s; 0.0 TTS Exception in thread Thread-267:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/network.py", line 50, in run
    self.server.gather(self.client.uuid, 5000)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
Fault: <Fault 1: "<class 'cpyrit.storage.StorageError'>:Not a PAW2-buffer.">

Ports open up fine on the relay 17934 and the box running pyrit serve 17935
I can connect to the relay manually fine though, both the rpc and mysql ports. 

Original comment by fo...@safe-mail.net on 9 Apr 2011 at 1:17

GoogleCodeExporter commented 8 years ago
What version of SqlAlchemy are you using?

Original comment by FagwaiCh...@aol.com on 16 Apr 2011 at 10:14

GoogleCodeExporter commented 8 years ago
Confirm the same issue on OS X clients. SQLAlchemy 0.6.6.

Original comment by jeddawig...@gmail.com on 19 Apr 2011 at 2:05

GoogleCodeExporter commented 8 years ago

One Debian x64 Squeeze VMWare VM as the primary file:// machine, to run pyrit 
batch or pyrit benchmark from.  pyrit r308 from SVN, compiled, no cpyrit 
modules.  pyrit selftest works fine.  184 million passwords in the file:// 
database.

One Debian x64 Squeeze local install, to run pyrit serve.  r308 from SVN, 
compiled with the cpyrit_cuda module.  No local database.  uname -a gives: 
Linux <name> 2.6.32-5-amd64 #1 SMP  ...  x86_64 GNU/Linux

Optional: One Debian x64 Squeeze VMWare VM as a secondary pyrit serve (on a 
third machine), installed with apt-get pyrit.  No local database.

All on the local network with naught but a gigabit switch between them.

the pyrit serve clients get endless repeats of:

Serving 1 active clients; 0 PMKs/s; 0.0 TTS Exception in thread Thread-48:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/network.py", line 50, in run
    self.server.gather(self.client.uuid, 5000)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
Fault: <Fault 1: "<class 'cpyrit.storage.StorageError'>:Not a PAW2-buffer.">

and their computations are not reported to the pyrit batch machine.

Original comment by Optimiza...@gmail.com on 17 May 2011 at 11:43

GoogleCodeExporter commented 8 years ago
Did someone found a solution for this... i  try it on 2 backtrack 5 and get

Serving 1 active clients; 0 PMKs/s; 0.0 TTS Exception in thread Thread-504:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/network.py", line 50, in run
    self.server.gather(self.client.uuid, 5000)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
Fault: <Fault 1: "<class 'cpyrit.storage.StorageError'>:Not a PAW2-buffer.">

Original comment by mannydia...@gmail.com on 14 Aug 2011 at 8:47

GoogleCodeExporter commented 8 years ago
Nobody has I guess. I get the same error on 3 client machines. I'm using mySql 
so I just batch them directly into the server. I'm a little concerned though 
that they may all be redoing the same work.

Original comment by elaborat...@gmail.com on 15 Aug 2011 at 6:51

GoogleCodeExporter commented 8 years ago
I had the same problems, but I find a way to do same thing.

The only bad thing is that you can't see your effectiv PMKs over all machines.

1. Edit your config file on the server as before.

2. Start "pyrit relay" and in a another shell "pyrit batch" on the server (with 
the  db; for me mysql woks just fine)

3. Start "pyrit -u http://IPOFTHESERVER:17934 batch" on the client (with more 
power; for me this is a dual-core processor and a cuda card)

I checked if the db get double entries but this doesn't happen. Another thing 
make me sure that both computers work on another unit because you see that both 
jump to the next workunit when the workunit is computed on the other machine.

After all check your pyrit db with "pyrit check_db and pyrit verify".

Original comment by mats.pfe...@googlemail.com on 30 Aug 2011 at 7:54

GoogleCodeExporter commented 8 years ago
Im getting the same crappy error too

Original comment by misterva...@aol.com on 8 Oct 2011 at 10:35

GoogleCodeExporter commented 8 years ago
Anyone ever find a solution?  I would MUCH rather get this thing running by 
doing pyrit serve on the clients and then running batch on the "master".  Pyrit 
is of no use to me if I can't do it the simple way. 

Original comment by jonathan...@gmail.com on 11 Jun 2012 at 6:46

GoogleCodeExporter commented 8 years ago
nobody has fixed this because they are stinking rich douchebags with expensive 
GPUs and dont care

Original comment by Testicul...@gmail.com on 3 Aug 2012 at 1:02

GoogleCodeExporter commented 8 years ago
I found this solution but it didn't help me...

Make this changes on all your pc running pyrit.

Open file:

/usr/local/lib/python2.6/dist-packages/cpyrit/network.py

Locate the following lines :

except socket.error:
   break
if essid != '' or pwbuffer != '':
   pwlist = storage.PAW2_Buffer()
   pwlist.unpack(pwbuffer.data)
   self.client.enqueue(essid, pwlist)
else:
   time.sleep(1)

Change it to :

except socket.error:
   break
if essid != '' or pwbuffer != '':
   pwlist = storage.PAW2_Buffer(pwbuffer.data)
   self.client.enqueue(essid, pwlist)
else:
   time.sleep(1)

Original comment by unholyg...@gmail.com on 14 Oct 2012 at 6:41

GoogleCodeExporter commented 8 years ago
Fixed it for ya!

Apply this patch with:

patch -p0 < pyrit_paw2bufferfix.patch

inside pyrit_svn branch. In one place cpyrit.py uses PAW2_Buffer constructor 
instead of .pack() method.

Tested it on ubuntu 13.04 and fixes the issue with pyrit serve. The error is on 
the running machine side, not on the serving one.

Original comment by kichadal...@gmail.com on 8 May 2013 at 6:42

Attachments: