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
$line2 =~ /[\W\t]*([\w\.\-]{1,15})\@([\w\-
]+)\.([\w\-]+)[\W\t\.]*/;
$emaila = "$1\@$2.$3";
}
# filter out junk email addresses
my ($name,undef) = split(/\@/,$emaila);
if (length($emaila) > 0 && $emaila =~ /$target$/i &&
length($name) < 15){
push @collected,$emaila;
}
}
return @collected;
}
sub dedupe
{
(@keywords) = @_;
my %hash = ();
foreach (@keywords) {
$_ =~ tr/[A-Z]/[a-z]/;
chomp;
if (length($_)>1){
$hash{$_} = $_;
}
}
return keys %hash;
This code, mentioned cursorily in the SensePost paper Putting the Tea Back
into CyberTerrorism (do a Google search for Tea Cyberterrorism), performs a Google
search for a domain name prepended with an @ sign, excluding the domain’ ...
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