Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- ** Coded by constantine in 19/03/2015.
- ** Site: constantine.sourceforge.net
- ** 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";
- print " .ho .ymmmmmy + `hmmmmmmmd. :` ommmmy. oh.\n";
- print " `sy. /hmmmm+ ommmmmmmmmy -dmmh/ .ys`\n";
- print " :ho` /hmmd- :mmmmmmmmmmmo `hmh/ `oh:\n";
- print " /h+` -odh` `dmmmmmmmmmmmd: oo- `+h/\n";
- print " /ys: ~~ smmmmmmmmmmmmmd` :sy/\n";
- print " .+ys/. `/osyyhhhhyyso/:` ./sy+.\n";
- print " ./oys+:.` `.:+syo/.\n";
- print " `-/+osssssssssssso+/-`\n\n";
- print " WP search - By Constantine & Tr3v0r.\n\n";
- print " Greatz for P0cl4bs and my friends...\n";
- print " https://github.com/P0cL4bs\n\n";
- print " L1sbeth, foreach, 0x29a, xstpl, sup3rman, j0shua3w, Mmxm, Anonymous_\n";
- print " lpax, c00ler, m0nad, sigsegv, enygmata, eremitah, Otacon, KvN, Al3xG0, Erick \n";
- print " H3LLS1ng, Eletronico, l4rg4d0, mvrech, DarkCrypter, nbdu1nder, Orc, Snow, Nosomy\n";
- print " Arion, LiFux, Zeus, Chainksain, shadow, _mlk_, sexpistol, Haxixe, shadow \n";
- print " 0fx66, ecx, ph4ck3r, bl4de, DarkCrypter, Depois, K4r4t3k1d... and all friends.\n";
- }
- main();
- /* EOF. */
- ?>
Advertisement
Add Comment
Please, Sign In to add comment