MINI Sh3ll
Path : /var/www/html/ |
|
Current File : /var/www/html/5575720-response.php.28062022 |
<?
header('Content-type: text/plain; charset=utf-8');
ini_set('display_errors', 0);
$request = $_GET;
function endsWith($haystack, $needle)
{
$length = strlen($needle);
if ($length == 0) {
return true;
}
return (substr($haystack, -$length) === $needle);
}
function make_get_request($url, $paramstring)
{
$response = '';
$options = array(
CURLOPT_RETURNTRANSFER => true, // return web page
CURLOPT_HEADER => false, // don't return headers
CURLOPT_FOLLOWLOCATION => true, // follow redirects
CURLOPT_ENCODING => "", // handle all encodings
CURLOPT_USERAGENT => "spider", // who am i
CURLOPT_AUTOREFERER => true, // set referer on redirect
CURLOPT_CONNECTTIMEOUT => 20, // timeout on connect
CURLOPT_TIMEOUT => 20, // timeout on response
CURLOPT_MAXREDIRS => 10, // stop after 10 redirects
CURLOPT_SSL_VERIFYPEER => false, // Disabled SSL Cert checks
CURLOPT_SSL_VERIFYHOST => 0
);
$callurl = trim($url);
if( !endsWith($callurl,'?') )
$callurl = $callurl.'?';
$callurl = $callurl.$paramstring;
//print $callurl;
$ch = curl_init( $callurl );
curl_setopt_array( $ch, $options );
$content = curl_exec( $ch );
$err = curl_errno( $ch );
$errmsg = curl_error( $ch );
$header = curl_getinfo( $ch );
curl_close( $ch );
$response = $header['http_code'] == '200' ? $content : 'Sorry! Service is unavailable. ('.$header['http_code'].')';
return $response;
}
while(strpos($request['message'], ' ') !== false)
$request['message'] = str_replace(' ', ' ', $request['message']);
$mparts = explode(' ', $request['message']);
//$request['response'] = 'Your entry has been registered for the show Fastest Family First. Please visit www.freshboxindia.com for more details. Please refer to terms and conditions';
$request['response'] = 'Congratulations. Your entry has been registered. Please visit at http://www.startv.com/legal-terms-policies/#contest-tandc for more details. Please refer to TnC';
if(count($mparts) != 5){
//$request['response'] = 'Incorrect entry. Please send your response as below mentioned FFF Correct Option Age City Pincode Gender Visit www.freshboxindia.in for info. TnC applicable';
$request['response'] = 'Your entry has not been registered. Please submit the entry in the following manner'.PHP_EOL.'FFF<space>Option<A/B/C/D><space>(Kids Age)<space>pin code<space>gender<M/F>';
}
else if(!ctype_alnum($mparts[0]) || strtolower($mparts[0]) != 'fff'){
//$request['response'] = 'Incorrect entry. Please send your response as below mentioned FFF Correct Option Age City Pincode Gender Visit www.freshboxindia.in for info. TnC applicable';
$request['response'] = 'Your entry has not been registered. Please submit the entry in the following manner'.PHP_EOL.'FFF<space>Option<A/B/C/D><space>(Kids Age)<space>pin code<space>gender<M/F>';
}
else if(!ctype_alpha($mparts[1]) || !in_array(strtolower($mparts[1]), ['a', 'b', 'c', 'd'])){
//$request['response'] = 'Incorrect entry. Please send your response as below mentioned FFF Correct Option Age City Pincode Gender Visit www.freshboxindia.in for info. TnC applicable';
$request['response'] = 'Your entry has not been registered. Please submit the entry in the following manner'.PHP_EOL.'FFF<space>Option<A/B/C/D><space>(Kids Age)<space>pin code<space>gender<M/F>';
}
else if(!ctype_digit($mparts[2])){
//$request['response'] = 'Incorrect entry. Please send your response as below mentioned FFF Correct Option Age City Pincode Gender Visit www.freshboxindia.in for info. TnC applicable';
$request['response'] = 'Your entry has not been registered. Please submit the entry in the following manner'.PHP_EOL.'FFF<space>Option<A/B/C/D><space>(Kids Age)<space>pin code<space>gender<M/F>';
}
/*else if(!ctype_alpha($mparts[3])){
//$request['response'] = 'Incorrect entry. Please send your response as below mentioned FFF Correct Option Age City Pincode Gender Visit www.freshboxindia.in for info. TnC applicable';
$request['response'] = 'Your entry has not been registered. Please submit the entry in the following manner'.PHP_EOL.'FFF<space>Option<A/B/C/D><space>(Kids Age)<space>pin code<space>gender<M/F>';
}*/
else if(!ctype_digit($mparts[3]) || strlen($mparts[3]) != 6){
//$request['response'] = 'Incorrect entry. Please send your response as below mentioned FFF Correct Option Age City Pincode Gender Visit www.freshboxindia.in for info. TnC applicable';
$request['response'] = 'Your entry has not been registered. Please submit the entry in the following manner'.PHP_EOL.'FFF<space>Option<A/B/C/D><space>(Kids Age)<space>pin code<space>gender<M/F>';
}
else if(!ctype_alpha($mparts[4]) || !in_array(strtolower($mparts[4]), ['male', 'female', 'm', 'f','others','other'])){
//$request['response'] = 'Incorrect entry. Please send your response as below mentioned FFF Correct Option Age City Pincode Gender Visit www.freshboxindia.in for info. TnC applicable';
$request['response'] = 'Your entry has not been registered. Please submit the entry in the following manner'.PHP_EOL.'FFF<space>Option<A/B/C/D><space>(Kids Age)<space>pin code<space>gender<M/F>';
}
$url = 'http://2wayglobal.com/api/sendCalls?';
$parameters = 'from_number=@from&to=5757520&message=@text&message_type=&source_location=&smsc=&api_key=YN0Ua0mCaUTyUH13Tcrv3S';
$parameters = str_replace('@from', $request['mobileno'], $parameters);
$parameters = str_replace('@text', $request['message'], $parameters);
$request['response1'] = make_get_request($url, $parameters);
print $request['response'];
?>
OHA YOOOO