Commit Graph

19 Commits

Author SHA1 Message Date
Curt Hash e2036bbf84 pollster now writes the date and time the page was generated, so
that clients can calculate how long it has been since the last
poll.
2010-01-25 16:04:40 -07:00
Curt Hash 3dd84a10f4 In order to make it harder for clients to allow connections from
pollster while blocking everyone else, pollster will now change
IP addresses every minute. The pollster box will need a secondary
interface (default: eth1) in order to do this. Before each poll,
the mac address of the interface is changed to a random address
with a particular vendor code (default: 00:01:c0 (FitPC)) and a
new address is requested via DHCP. All connections made from
pollster are bound to the new address, forcing them out through
the secondary interface. This caused some problems, since the
poll function for cat.cgi previously relied on urllib, which did
not support binding. I ended up having to subclass
http.client.HTTPConnection and override __init__() and connect().
These changes necessitated two new global configuration variables:
	(1) POLL_MAC_VENDOR : the vendor code to use in the random MAC
	(2) POLL_IFACE : the secondary interface to use

I also fixed a bug where an empty string would be interpreted as a
valid team name.
2010-01-22 16:57:45 -07:00
Curt Hash 9b14d50374 changed catcgi poller to use library rather than my socket code 2010-01-21 13:16:52 -07:00
Curt Hash 82cb84ff78 untest 2010-01-19 15:52:25 -07:00
Curt Hash fc4917a7d1 test 2010-01-19 15:52:08 -07:00
Curt Hash 1328229708 merged changed from tfi server 2010-01-19 15:11:59 -07:00
Curt Hash f19f096082 removed error check on os.remove 2009-10-15 09:35:42 -06:00
Neale Pickett 9fe367ff39 A couple ctfd and pollster fixes 2009-10-09 10:15:24 -06:00
Neale Pickett fdf76ed847 Pollster does much quicker HTML updates now 2009-10-09 08:55:51 -06:00
Curt Hash 1ee9d5d21d changed to svc 2009-10-08 17:24:05 -06:00
Neale Pickett d1baa77f2a Slaughtered all the stuff I asked Curt to add 2009-10-08 17:07:15 -06:00
Neale Pickett 811141e4d9 Merge cfl:/var/projects/gctf
Conflicts:
	pollster/pollster.py
2009-10-08 16:44:42 -06:00
Neale Pickett ec202f23f5 Mostly cosmetics 2009-10-08 16:42:26 -06:00
Curt Hash fbf09276c0 changed it so that the response from the polls is not turned
into a string until it returns to the poller loop. This allows
poll functions to manipulate the raw responses from the socket
reads. Also added an ACK to tftdp poller so that the tftpd
daemon stops whining about the socket closing without an ACK.
2009-10-08 16:40:14 -06:00
Curt Hash 7c07f13117 config and points submission stuff added to polster 2009-10-08 11:11:41 -06:00
Curt Hash 04893b33bd css additions for pollster page, more robust pollster 2009-10-08 08:49:50 -06:00
Neale Pickett 06fd1a2c87 Potential new pwnables image 2009-10-07 22:57:32 -06:00
Curt Hash 402cd03be5 updates per neale's suggestions (more to come) 2009-10-07 19:02:57 -06:00
Curt Hash b5c517e2c0 pollster thing 2009-10-07 16:54:47 -06:00