Results 1 to 6 of 6

Thread: Pyrit Networking

  1. #1
    Junior Member
    Join Date
    Jul 2006
    Posts
    45

    Default Pyrit Networking

    Is the Pyrit Project dead? with the latest version of BT5 i still can't networking to function.

    here's my error, I've been over at the pyrit website but the author doesn't seem to be addressing the issues with networking.

    Has anyone successfully got networking to work? other than that pyrit works fine with my GPU and MySQL database i just can't use my box as a pyrit server.

    Code:
    Server Config
    
    default_storage = mysql://root:@localhost/wpadb
    limit_ncpus = 0
    rpc_announce = true
    rpc_announce_broadcast = false
    rpc_knownclients = 
    rpc_server = false
    workunit_size = 75000
    
    Client Config
    
    default_storage = mysql://root:@localhost/wpadb
    limit_ncpus = 0
    rpc_announce = true
    rpc_announce_broadcast = false
    rpc_knownclients = 192.168.1.65 <<<Server IP
    rpc_server = true
    workunit_size = 75000
    
    I start the Pyrit server and then go to my client.
    
    root@bt:~# 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
    And when i run 'pyrit batch' on the client.

    Code:
    root@bt:~# pyrit batch
    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+
    
    Connecting to storage at 'mysql://root:@192.168.1.65/wpadb.....  connected.
    Working on ESSID 'BTHub3-6K49'
    ...nothing!!
    it successfully connects to the mysql database and trys but can't process the next essid in line.

    But my Pyrit Server outputs

    Code:
    root@bt:~# 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-12:
    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 54, in run
        pwlist = storage.PAW2_Buffer()
    TypeError: __init__() takes exactly 2 arguments (1 given)
    
    Serving 1 active clients; 0 PMKs/s; 0.0 TTS Exception in thread Thread-14:
    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 54, in run
        pwlist = storage.PAW2_Buffer()
    TypeError: __init__() takes exactly 2 arguments (1 given)
    
    Serving 1 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 1060, in getreply
        response = self._conn.getresponse()
      File "/usr/lib/python2.6/httplib.py", line 986, 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 397, in readline
        data = recv(1)
    socket.error: [Errno 104] Connection reset by peer
    I'm sorry i can't make real sense of the output.

    Thanks
    Last edited by Si2006; 03-11-2012 at 05:22 PM.
    ______________
    Tarmac Terrorist

  2. #2
    Good friend of the forums zimmaro's Avatar
    Join Date
    Mar 2010
    Location
    milano
    Posts
    407

    Default Re: Pyrit Networking

    hi,
    if I can be of help
    time ago I had the same problem with BT5-release is "suspected" a bug of pyrite (so was out of the discussion):
    http://www.backtrack-linux.org/forum...ad.php?t=46502 (in-the-bottom)
    in theory with the bt5r2 (if I understand it) should work, there in the wiki:
    http://www.backtrack-linux.org/wiki/.../Pyrit_cluster
    I have not tried yet!
    bye

  3. #3
    Junior Member
    Join Date
    Jul 2006
    Posts
    45

    Default Re: Pyrit Networking

    Thanks for the reply.

    I'm now up and running though a bit slow, my server is wired and my client is wireless G band, I got about 8700pmk's , thats pretty poor considering the server hits 40000pmk's during a benchmark without networking.

    Just going to hook the laptop up to ethernet on the network and i'll report back the expected improvement.

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

    Bug Fix

    Locate the following:

    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)

    :-)
    ______________
    Tarmac Terrorist

  4. #4
    Junior Member
    Join Date
    Jul 2006
    Posts
    45

    Default Re: Pyrit Networking

    Got a slight improvement on Ethernet 10/100 at 30-33k PMK's, Though suppose i'll need to upgrade to Gigabit LAN to be beneficial.

    It's worth noting that running 'pyrit list_cores' still crashes the server, I can benchmark and run a batch process without errors on the client or server.

    just hope the pyrit hasn't be abandoned
    ______________
    Tarmac Terrorist

  5. #5
    Good friend of the forums zimmaro's Avatar
    Join Date
    Mar 2010
    Location
    milano
    Posts
    407

    Default Re: Pyrit Networking

    hi, Si2006
    really thanks for your FIX works perfectly, NO ERROR! good, good! (If I had a bit of brain maybe I would have solved the first) ahahha
    I'm testing with 2 bt5r2 hdd install
    1) server-r2-BT5 kdex64 with CUDA (little geforce GT420m i3-370m) (wifi rtl8192)
    2) client BT5-r2-gnome32 NO cuda (old pent4-2, 81GHz)
    TEST via WI-FI (3 meter-distance)

    BENCHMARK-SERVER:
    --------------------------
    root@bt:~# pyrit benchmark
    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+

    Running benchmark (3728.0 PMKs/s)... -

    Computed 3727.98 PMKs/s total.
    #1: 'CUDA-Device #1 'GeForce GT 420M'': 3207.3 PMKs/s (RTT 2.8)
    #2: 'CPU-Core (SSE2)': 280.2 PMKs/s (RTT 3.1)
    #3: 'CPU-Core (SSE2)': 279.0 PMKs/s (RTT 3.0)
    #4: 'CPU-Core (SSE2)': 296.2 PMKs/s (RTT 3.2)

    BENCHMARK-CLIENT
    --------------------------
    root@bt:~# pyrit benchmark
    Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
    This code is distributed under the GNU General Public License v3+

    Running benchmark (290.7 PMKs/s)... \

    Computed 290.73 PMKs/s total.
    #1: 'CPU-Core (SSE2)': 152.5 PMKs/s (RTT 2.9)
    #2: 'CPU-Core (SSE2)': 152.2 PMKs/s (RTT 3.0)

    BENCHMARK-NETWORK(running in client pc)
    -------------------------------------
    root@bt:~# pyrit benchmark
    Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
    This code is distributed under the GNU General Public License v3+

    Running benchmark (3781.6 PMKs/s)... |

    Computed 3781.60 PMKs/s total.
    #1: 'CPU-Core (SSE2)': 144.3 PMKs/s (RTT 3.2)
    #2: 'CPU-Core (SSE2)': 148.5 PMKs/s (RTT 3.0)
    #3: 'Network-Clients': 2679.6 PMKs/s (RTT 1.7)

    i make only one test!! the result is not OPTIMUS! but but I'm already happy that it works!
    THANS-AGAIN
    bye

  6. #6
    Just burned his ISO
    Join Date
    Jun 2012
    Posts
    1

    Unhappy Re: Pyrit Networking

    Is there anything else that you did to get this to work? I have not been successful with any fix. I tried the fix that you noted in the network.py file and yet I am still dealing with the same issue of not being able to connect the client and the server. Any help would be greatly appreciated.

Similar Threads

  1. Pyrit: source with networking feature
    By isdigit in forum OLD BackTrack 4 General Support
    Replies: 3
    Last Post: 09-20-2009, 08:11 PM
  2. No networking on eee pc 901
    By hacktivist in forum OLD BackTrack 4 NON working hardware
    Replies: 4
    Last Post: 06-29-2009, 12:24 PM
  3. Networking GUI
    By fredcadet in forum OLD BT4 Feature Requests
    Replies: 1
    Last Post: 06-02-2009, 05:22 PM
  4. Networking
    By Oneiroi in forum OLD BT3final Support
    Replies: 1
    Last Post: 08-02-2008, 09:30 AM
  5. Networking
    By netpumber in forum OLD Newbie Area
    Replies: 0
    Last Post: 04-11-2007, 03:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •