Skip to Main Content
Google Hacking for Penetration Testers
book

Google Hacking for Penetration Testers

by Johnny Long
December 2004
Intermediate to advanced content levelIntermediate to advanced
448 pages
16h 25m
English
Syngress
Content preview from Google Hacking for Penetration Testers
www.syngress.com
408 Chapter 12 • Automating Google Searches
"apache","//","not found for:","OPTIONS","By sending an OPTIONS request for
/, the physical path to PHP can be revealed."
The following is our developed source code to scan a particular site using the
signatures housed within CIRT’s NIKTO database.
SOURCE
#!/usr/bin/perl -w
use IO::Socket;
$server = 'www.google.com';
$port = 80;
#############################
sub socketInit()
{
$socket = IO::Socket::INET->new(
Proto => 'tcp',
PeerAddr => $server,
PeerPort => $port,
Timeout => 10,
);
unless($socket)
{
die("Could not connect to $server:$port");
}
$socket->autoflush(1);
}
############################
sub sendQuery($) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google Hacks

Google Hacks

Tara Calishain, Rael Dornfest
Dissecting the Hack

Dissecting the Hack

Jayson E Street

Publisher Resources

ISBN: 1931836361