Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- _____ _____ _ _____ _____ _____ _____ _____ _____
- ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
- |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
- |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
- |s C R i P T z - T E A M . i N F O|
- Google scraper
- WARN:
- GOOGLE MAY BAN YOUR iP!
- USAGE:
- Just run :P
- */
- set_time_limit(0);
- define("WTF", "powered by vbulletin"); //WTF = What To Find :D
- define("PN", "0"); //PG = Page Number
- define("ST", "5"); //ST = Sleep Time => The more, The better
- function get_url($url)
- {
- $ch = curl_init();
- $user_agent = "[N.i.X]";
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $content = curl_exec($ch);
- curl_close($ch);
- return $content;
- }
- function get_between($from, $to, $where, $position)
- {
- $x = explode($from, $where);
- $x = explode($to, $x[$position]);
- $x_ = $x[0];
- return $x_;
- }
- for ($i = 1; $i <= 10; $i++) {
- $url = get_between('<h3 class="r"><a href="/url?q=', '&', get_url("http://www.google.ca/search?q=".urlencode(WTF)."&hl=en&ie=UTF-8&prmd=xXx&ei=xXx&start=".PN."&sa=N"), $i);
- echo '<a href="' . $url . '">' . $url . '</a><br /><br />';
- sleep(ST);
- }
- ?>
Add Comment
Please, Sign In to add comment