<?php
if(function_exists('ini_set')) {
ini_set('ignore_user_abort ',1);
ini_set ( 'max_execution_time', 999999999999 );
}
if(function_exists('ini_alter')) {
ini_alter('ignore_user_abort ',1);
ini_alter ( 'max_execution_time', 999999999999 );
}
if(function_exists('ignore_user_abort') && function_exists('set_time_limit')) {
ignore_user_abort(1);
set_time_limit(0);
}
$shell_txt = explode("\n",file_get_contents('shell.txt'));
$shell_count = count($shell_txt);
$shell_array = array();
function cheak_shell ($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLE_OPERATION_TIMEOUTED, 30);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result_curl = curl_exec($ch);
curl_close($ch);
$result_curl = str_replace(array("\r","\n","\t"),' ',$result_curl);
if(strstr($result_curl,'r57shell')) {
$url_good = '+ '. $url . " r57shell \n";
} elseif(strstr($result_curl,'c99shell')) {
$url_good = '+ '.$url . " c99shell \n";
}
return $url_good;
}
for($i=0;$i<$shell_count;$i++) {
if (!in_array ( $shell_txt[$i], $shell_array)) {
$shell_array[] = $shell_txt[$i];
$url_good .= cheak_shell($shell_txt[$i]);
}
}
file_put_contents ('good_shells.txt', $url_good."END");