Skip to content

Instantly share code, notes, and snippets.

@xatier
Created December 3, 2013 03:23
Show Gist options
  • Save xatier/7763380 to your computer and use it in GitHub Desktop.
Save xatier/7763380 to your computer and use it in GitHub Desktop.
A simple script for google hacking (rewrite it to a downloader lol)
#!/usr/bin/env perl
use 5.014;
use Google::Search;
my $search = Google::Search->Web( query => "site:example.com something interesting" );
while ( my $result = $search->next ) {
my $url = $result->uri;
# url processing ?
say $result->rank . " " . $url;
# system("wget $url");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment