如何绕过关键词,一个简单法


所有跟贴·加跟贴·新语丝读书论坛

送交者: xinku 于 2009-09-24, 22:51:16:

create an HTML file named "encode.html", with the following code:
--------
<html>
<head>
<title>Encode Text</title>
<script type="text/javascript">
function encode(){
    var r = Math.round(Math.random()*10000);
    document.getElementById("key").value=r;
    var src = document.getElementById("source").value;
    var dest = "";
    for (var i = 0; i < src.length; i++){
        dest += " " +(src.charCodeAt(i)+r);
    }
    document.getElementById("target").value=dest;
}

</script>
</head>
<body>
<textarea id="source" rows=20 cols=40 valign="top"></textarea>
<button type="button" onclick="encode()">encode>></button>
key:<input id="key" type="text"></input>
Result:<textarea id="target" rows=20 cols=40 valign="top"></textarea><br/><br/>
</body>
---------------
load the file into a browser, type your words in the left box, and click the encode button. The key and the result fields will be populated with a decode key and the encoded text. Create your web page as usual, but use the encoded text instead of the plain text, as in the following example:
------------------------
<html>
<head>
<title>Normal Document</title>
<script type="text/javascript">
function decode(){
    var key =9160;
    var target = document.getElementById('target');

    var srcArray = target.innerHTML.split(" ");
    var targetStr = "";
    for (var i = 0; i < srcArray.length; i++){
        if (srcArray[i].length > 0){
            targetStr += String.fromCharCode(parseInt(srcArray[i])-key);
        }
    }
    target.innerHTML = targetStr;
}
</script>
</head>
<body onload="decode()">
<pre id="target">
48692 30362 35844 31881
</pre>
</body>
------------------------
Note: you have to change the value of "var key=" to the decode key you got in the previous step, and the value between "<pre>"..."</pre>" must be the encoded text you got from the previous step.
Now your page contains no sensitive words but can show any content.




所有跟贴:


加跟贴

笔名: 密码: 注册笔名请按这里

标题:

内容: (BBCode使用说明