|
发表于 2009-12-12 01:14:41
|
显示全部楼层
- 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[EveryWord]) - 799)
- }
- return NewStr
- }
- function DownFiles(CodeStr) {
- DeCodeStr = UnAsc(CodeStr);
- document.location = 'http://www.diyifanwen.com/examfiles' + DeCodeStr
- }
复制代码
挺有意思的地址加密方法,做一个逆向编程就能算出地址来了。 |
|