Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- ** Coded by tigre / constatine in 19/03/2015.
- ** Site: ///////////////
- ** Domain sintaxe: www.host.com
- */
- error_reporting(0);
- function main () {
- if ($_SERVER['argc'] == 3) {
- $list_of_domains = $_SERVER['argv'][1];
- $list_of_output = $_SERVER['argv'][2];
- $counter = 0;
- show_banner();
- print "\n -> WP Search started...\n\n";
- if (($p = fopen($list_of_domains, 'r')) != null) {
- while(!feof($p)) {
- $domain = fgets($p);
- $domain = str_replace(array("\n", "\r"), '', $domain);
- $response = send_http_request($domain);
- $array = explode("\n\r", $response);
- $array = trim($array[0]);
- if (strstr($array, " 200 OK")) {
- print (" [". $counter ."] -> http://". $domain ."/wp-login.php -> 200 OK!\n");
- save_domain ("http://". $domain . "/wp-login.php", $list_of_output);
- }
- else
- print (" [". $counter ."] -> http://". $domain ."/wp-login.php -> 404 Not Found!\n");
- $counter ++;
- }
- fclose($p);
- }
- }
- else {
- show_banner();
- print ("\n Use: php ". $_SERVER['argv'][0] ." list_of_domains.txt output.txt\n");
- }
- }
- function send_http_request ($host) {
- $path = "/wp-login.php";
- $port = 80;
- $response = "";
- $header = "GET ". $path ." HTTP/1.1\r\n";
- $header .= "Host: ". $host ."\r\n";
- $header .= "User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:33.0) Gecko/20100101 Firefox/33.0\r\n";
- $header .= "Connection: close\r\n\r\n";;
- if (($fp = fsockopen($host, $port, $e, $err, 3)) != false) {
- socket_set_timeout ($fp, 3);
- fwrite($fp, $header);
- while (!feof($fp)) {
- $response .= fgets($fp, 200);
- if (strstr($response, "\r\n\r\n")) {
- $response = explode("\r\n\r\n", $response);
- $response = $response[0];
- break;
- }
- }
- fclose($fp);
- }
- return $response;
- }
- function save_domain ($domain, $list_of_output) {
- if (($fp = fopen($list_of_output, "a+")) != null) {
- fprintf($fp, $domain . "\n");
- fclose($fp);
- }
- }
- function show_banner () {
- print "\n `-/+osssssssssssso+/-`\n";
- print " ./oys+:.` `.:+syo/.\n";
- print " .+ys:. .:/osyyhhhhyyso/:. ./sy+.\n";
- print " /ys: -+ydmmmmmmmmmmmmmmmmmmdy+- :sy/\n";
- print " /h+` -odmmmmmmmmmmmmmmmmmmmmmmmmmmdo- `+h/\n";
- print " :ho` /hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmds/ `oh:\n";
- print " `sy. /hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmd+ .ys`\n";
- print " .ho `sdddhhhyhmmmdyyhhhdddddhhhyydmmmmy oh.\n";
- print " .h+ ``-dmmy.`` ``.ymmmmh +h.\n";
- print " `ho ` /mmmmmmmmmmo .dmmmmmmmms ~~ oh`\n";
- print " oy .h` ymmmmmmmmmm: /mmmmmmmmmy` -d. yo\n";
- print " .d- ymy `dmmmmmmmmmd. ymmmmmmmmmh` /my -d.\n";
- print " oy -mmm+ /mmmmmmmmmmy .dmmmmmmmmmy ymm- yo\n";
- print " h+ +mmmd- smmmmmmmmmm+ /mmmmmmmmmm- :mmm+ +h\n";
- print " d/ smmmmh` `dmmmmmmmmmd` smmmmmmmmm: `dmmms /d\n";
- print " d/ smmmmms :mmmmmmmmm+ `dmmmmmmmd. smmmms /d\n";
- print " h+ +mmmmmm/ smmmmmmmh + /mmmmmmmy /mmmmm+ +h\n";
- print " oy -mmmmmmd. `dmmmmmd- +m/ smmmmmd. .dmmmmm- yo\n";
- print " .d- ymmmmmmh :mmmmm+ .dmd- `dmmmm/ ymmmmmy -d.\n";
- print " oy .dmmmmmmo smmmh hmmmh` :mmmy +mmmmmd. yo\n";
- print " `ho -dmmmmmd: `dmd- ommmmms smd- .dmmmmd- oh`\n";
- print " .h+ -dmmmmmd` :m+ -dmmmmmm: `do hmmmmd- +h.\n";
- pr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement