C4l4M1TY / pyrit

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

Networking not functioning on FreeBSD #238

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install 0.30 on FreeBSD 8.x AMD64 (three boxes)
2. On two boxes start "pyrit serve". Program tells it's ready.
3. Add box1 and box2 IP to .pyrit/hosts in my home.
4. pyrit list_cores does not show other network servers

What is the expected output? What do you see instead?
I should see other network servers.
Servers have NO firewall at all, connected to same Giga switch.
On servers I fire up tcpdump and does not see any packet from the client.
Every other client/server sw works between the machines.

What version of the product are you using? On what operating system?
0.30 no cuda/stream, only CPU

Please provide any additional information below.
Each tutorial I find on the net lists different tcp/upd ports used by pyrit: 
19935, 17935, 19735...
On my hosts it is
tcp4       0      0 *.17935                *.*                    LISTEN
udp4       0      0 *.17935                *.*

I have
rpc_server = true
on all the machines. Also tried to add rpc_knownclients with no success. No 
packets go on the wire.
My pyrit hosts file has 666 permission.

Original issue reported on code.google.com by rimba...@gmail.com on 15 Jan 2011 at 9:36

GoogleCodeExporter commented 8 years ago
Another test: on the same machine, start on instance of "pyrit serve", add any 
of the local IPs to the hosts file, "pyrit list_cores" sees no network server, 
evven looping back...

Original comment by rimba...@gmail.com on 15 Jan 2011 at 9:47

GoogleCodeExporter commented 8 years ago
Have you tried updating to the latest build from the svn?

I can't remember if networking was working properly in that release or not. 
Though in the current svn the settings are stored in .pyrit/config

for reference my config file is:

default_storage = sqlite:////pyrit.db (I use an sqlite database, ignore this if 
you are not)
limit_ncpus = 0
rpc_announce = true
rpc_announce_broadcast = true
rpc_knownclients = 192.168.1.1 192.168.1.7
rpc_server = true
workunit_size = 75000

Original comment by adam.k...@gmail.com on 15 Jan 2011 at 10:40

GoogleCodeExporter commented 8 years ago
Got the SVN now. Running r288.

I try the local test to exclude every possible network related issue. Config 
file like the one you posted.
Server starts, when running list_cores server crashes:
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/site-packages/pyrit_cli.py", line 115, in initFromArgv
   func(self, **options)
 File "/usr/local/lib/python2.6/site-packages/pyrit_cli.py", line 877, in serve
   server.addClient(addr)
 File "/usr/local/lib/python2.6/site-packages/cpyrit/network.py", line 140, in addClient
   client = NetworkClient(srv_addr, self.enqueue, known_uuids)
 File "/usr/local/lib/python2.6/site-packages/cpyrit/network.py", line 68, in __init__
   self.srv_uuid, self.uuid = self.server.register(";".join(known_uuids))
 File "/usr/local/lib/python2.6/xmlrpclib.py", line 1199, in __call__
   return self.__send(self.__name, args)
 File "/usr/local/lib/python2.6/xmlrpclib.py", line 1489, in __request
   verbose=self.__verbose
 File "/usr/local/lib/python2.6/xmlrpclib.py", line 1237, in request
   errcode, errmsg, headers = h.getreply()
 File "/usr/local/lib/python2.6/httplib.py", line 1060, in getreply
   response = self._conn.getresponse()
 File "/usr/local/lib/python2.6/httplib.py", line 986, in getresponse
   response.begin()
 File "/usr/local/lib/python2.6/httplib.py", line 391, in begin
   version, status, reason = self._read_status()
 File "/usr/local/lib/python2.6/httplib.py", line 349, in _read_status
   line = self.fp.readline()
 File "/usr/local/lib/python2.6/socket.py", line 397, in readline
   data = recv(1)
socket.error: [Errno 54] Connection reset by peer

It seems it started crashing after adding announce_broadcast=true. Before that, 
nothing happens, no network connection and no network cores detected.
Starting a browser on port 17935 shows me the pyrit normal error, so it is 
correctly listening and the console message show the incoming connection.
I'm using file://, don't know if it matters.

Original comment by rimba...@gmail.com on 15 Jan 2011 at 1:10

GoogleCodeExporter commented 8 years ago
were getting the same problem on debian

see other releted posts

Original comment by thefixe...@gmail.com on 3 Feb 2011 at 10:08

GoogleCodeExporter commented 8 years ago
We have found a temporary solution until the pyrit team can get it fixed
Precompute using an sql server instead of file://
Each node is "aware" which wus have allready been sent out and thus, you can 
manually
"batch" run them and each node will get unique work unites until the tables
have been generated for each essid

See this image

http://i53.tinypic.com/20r8acx.jpg

Original comment by mrfantas...@aol.com on 26 Feb 2011 at 5:33

GoogleCodeExporter commented 8 years ago
I've been having the exact same issue with r308 for over a month! Can anyone 
confirm that this is still a known bug in r308???

Original comment by noli...@gmail.com on 26 Feb 2012 at 9:36