CTF::FlagClient - SSL'd Client for communicating with CTF::FlagServer
use CTF;
CTF->load_from_io($config);
my $client = CTF::FlagClient->new();
$client->connect('localhost');
my $httpflag = $client->get_flag($service);
$client->set_flag($service, $newflagdata);
Communicates with CTF::FlagServer
to exchange flag data for various services.
Flag data can be an arbitrary string. $service is the name of a service recognized by the FlagServer.
The FlagClient communicates with a CTF::FlagServer
, to exchange the content of the flag for services. FlagClients may get and set flags identified by a service name.
The FlagClient also performs SSL validation. The FlagClient and FlagServer must both be configured to use the same CA certificate.
Connects the FlagClient to the specified host. This must be called prior to calling get_flag
and set_flag
Returns the value of the flag for the service specified. If $servicename
is not a valid service, this function will return an "Invalid service" warning.
This function tells the flag server to set the flag for the specified service to $content
.
http://crew.ccs.neu.edu/wiki/CaptureTheFlag
Marc Dougherty <[email protected]>
Ian Langworth <http://langworth.com>
Copyright 2004 by Marc Dougherty
This software is released under the terms of the GPL. A copy of the GPL can be obtained here: http://www.fsf.org/licenses/gpl.html