下载链接值是这个。。。。。。。。。。如何捕获?
本帖最后由 分号 于 2009-12-11 22:22 编辑http://www.diyifanwen.com/shitiku/xiaoxueyinianjiyuwenshiti/021239931.htm 像这样的下载地址有什么方法下载? 〖试题下载〗
下载链接地址
〖试题下载〗
<input type="button"value="点击下载本试题
下载链接值是这个。。。。。。。。。。如何捕获? DownFiles('66382:166456:166452:166454:166436:166445:166382:166455:166440:166432:166446:166455:166452:166436:166382:134286:192280:195591:189902:189733:186303:190515:198758:136620:192326:186313:187211:196810:188605:187224:194056:189718:198786:186399:139863:166381:166449:166432:166449:1
function isMatch(str1, str2) {
var index = str1.indexOf(str2);
if (index == -1) return false;
return true
}
if (isMatch(window.location.hostname, 'diyifanwen.com') == false) {
window.location.href = "http://www.diyifanwen.com"
}
function UnAsc(str) {
var WordStr = str.split(":1");
var NewStr = "";
for (var EveryWord in WordStr) {
NewStr += String.fromCharCode(parseInt(WordStr) - 799)
}
return NewStr
}
function DownFiles(CodeStr) {
DeCodeStr = UnAsc(CodeStr);
document.location = 'http://www.diyifanwen.com/examfiles' + DeCodeStr
}
挺有意思的地址加密方法,做一个逆向编程就能算出地址来了。
页:
[1]