fredw11 / pyrit

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

Problem with serve #316

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
* What steps will reproduce the problem?
I have two machines a PS3 (running serve) and PC (main) Both running pyrit 
0.4.1-dev r308 on Debian
1. PC:
       8*i7 + GTX295 (+++22029.11 PMKs/s)
2. PS3
       Still don't have access to cell B.E (~100 PMKs/s)

* What is the expected output? What do you see instead?
I expect pyrit serve to run smoothly and does what it intends to do
but what I see is this error
root@ps3:/usr/src# pyrit serve
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Serving 1 active clients; 0 PMKs/s; 0.0 TTS Exception in thread Thread-10:
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.">

This happens when the PS3 running as serve and the PC does a 'benchmark'
I don't get any results from the PS3 and pyrit keeps running just throws this 
error again and again.

What version of the product are you using? On what operating system?
Both running Pyrit 0.4.1-dev r308 on Debian

   * PS3 : Python 2.6.6 (r266:84292)
           Kernel 2.6.38
   * PC  : Python 2.5.2 (r252:60911)
           Kernel 2.6.35.8

Please provide any additional information below.
I have just found the same issue it's 'Issue 291'
I'll attach both files ps3-serve-logs and pc-client-logs
I hope this will provide more information to fix the problem
Connection type : both connected via wireless I know 'slow' but this is only 
for testing.

Original issue reported on code.google.com by qni...@gmail.com on 21 May 2011 at 5:41

Attachments:

GoogleCodeExporter commented 8 years ago
I experienced same problem with a laptop and a pc on a wired network. 

Original comment by monkeyma...@gmail.com on 31 May 2011 at 4:36

GoogleCodeExporter commented 8 years ago
this is a known issue that has not yet been fixed, there is a work around, 1 
you use MPI to run, or you can use an sql db instead of file:// then manually 
pyrit batch on the db, each machine will process work units from the same db, 
effectively distributing the workload.

Original comment by MrNicho...@gmail.com on 5 Jun 2011 at 6:13

GoogleCodeExporter commented 8 years ago
Everyone knows about this problem, the devs are too lazy playing with their 
video cards to bother fixing it, I suggest they just remove it.

Original comment by frozenpo...@aol.com on 23 Oct 2011 at 10:09

GoogleCodeExporter commented 8 years ago
root@galileo:/home/devadmin# pyrit serve
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Serving 0 active clients; 0 PMKs/s; 0.0 TTS 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 117, in initFromArgv
    func(self, **options)
  File "/usr/local/lib/python2.6/dist-packages/pyrit_cli.py", line 881, in serve
    server.addClient(addr)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/network.py", line 140, in addClient
    client = NetworkClient(srv_addr, self.enqueue, known_uuids)
  File "/usr/local/lib/python2.6/dist-packages/cpyrit/network.py", line 68, in __init__
    self.srv_uuid, self.uuid = self.server.register(";".join(known_uuids))
  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 1237, in request
    errcode, errmsg, headers = h.getreply()
  File "/usr/lib/python2.6/httplib.py", line 1064, in getreply
    response = self._conn.getresponse()
  File "/usr/lib/python2.6/httplib.py", line 990, in getresponse
    response.begin()
  File "/usr/lib/python2.6/httplib.py", line 391, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python2.6/httplib.py", line 349, in _read_status
    line = self.fp.readline()
  File "/usr/lib/python2.6/socket.py", line 427, in readline
    data = recv(1)
socket.error: [Errno 104] Connection reset by peer

Original comment by Testicul...@gmail.com on 3 Aug 2012 at 12:26

GoogleCodeExporter commented 8 years ago
Serving 1 active clients; 0 PMKs/s; 0.0 TTS Exception in thread Thread-11:
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 Testicul...@gmail.com on 3 Aug 2012 at 1:06

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:50

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for your patch, seems to be working except list_cores still has some 
problems. The benchmark runs fine though & I imagine an actual 
attack_passthrough will as well.

Cheers

Original comment by benyha...@gmail.com on 1 Dec 2013 at 2:28