Pratheepan Raveendranathan > WebService-GoogleHack > GoogleHack/WebInterface/ghack_server.pl

Download:
WebService-GoogleHack-0.15.tar.gz

Annotate this POD

CPAN RT

New  1
Open  1
View Bugs
Report a bug
Source  

GoogleHack web interface server ^

SYNOPSIS ^

ghack_server.pl acts as a server to which the web interface connects to for all user queries. The server then retrieves the results of the queries and sends it back to the web interface.

DESCRIPTION ^

To install the server please follow these steps:

1) Change the following variables accordingly:

The localport should be a number above 1024, and less than around 66,000. Make sure that localport number is the same on both the client and server side.

$LOCALPORT = XXXXX;

Next, change the the path to the GoogleHack/Temp directory eg, /home/username/WebService/GoogleHack/Temp/

$ghackDir="/home/username/WebService/GoogleHack/Temp/";

Next, update the Google-Hack configuration file path, to eg /home/username/WebService/GoogleHack/Datafiles/initconfig.txt

$configFile="/home/username/WebService/GoogleHack/Datafiles/initconfig.txt";

2)If your ghack server is running behind a firewall, you will need to edit the file /etc/sysconfig/iptables to allow clients to connect to the machine through the port you had given. There is a line that looks like this:

-A RH-Firewall-1-INPUT -p tcp --dport XXXXX -j ACCEPT

Where XXXXX is the port that your client will be connecting to (the value of $localport in ghack_server.pl).

Now start the server by running the ghack_server.pl as you would run a regular perl file.

AUTHOR ^

Ted Pedersen, <tpederse@d.umn.edu>

Pratheepan Raveendranathan, <rave0029@d.umn.edu>

Jason Michelizzi, <mich0212@d.umn.edu>

Date 11/08/2004

COPYRIGHT AND LICENSE ^

Copyright (c) 2003 by Pratheepan Raveendranathan, Ted Pedersen, Jason Michelizzi

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to

The Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.