怎么可能随机呢?这表达的参数就没变过。function test(){return ((((((((((0x0fffffff^104)|100)^101)|104)^104)^105)^102)|107)^102)&107);}var s = "";
for (var i = 0; i < 10; i++)
s += test() + "\r\n";
alert(s);测试一下就知道了。都是9。

解决方案 »

  1.   

    链接地址是啥?或者可调试的html。总之先让我们能看到效果。
      

  2.   

    是校内的网页游戏“古惑仔”里的银行页面
    http://mob.xiaonei.com/bank.do这是里面的一部分源码<div id="m_content">
        <div class="mc_innerWrap">
            <h2>银行<span class="lime">(银行存款:$9000)</span></h2>
            
            <script type="text/javascript">
                function xn_rand_function(){ return ((((((((((0x0fffffff&101)^101)|100)&108)|107)&104)&101)^101)|107)|102);}
            </script>
            <table class="item_table" cellspacing="3" cellpadding="0">
                <tbody>
                    <tr>
                        <th width="55%">取款</th>
                        <th width="45%">存款</th>
                    </tr>
                    <tr>
                        <td>
                            <form id="withdrawform" name="withdrawform" action="/withdraw.do" method="post">
                                <input type="hidden" name="key" value="2010076141224993911317"/>
                                <input id="run1" type="hidden" name="run" value="2">
                                取款金额:<input type="text" name="withdrawcash" value="1000"/><input class="sub_btn blue"
                                                                                                 type="button"
                                                                                                 onclick="doSub(this)"
                                                                                                 name="" value="取款"/>
                            </form>
                            <p>取款是免费的</p>
                        </td>
                        <td>
                            <form id="depositform" name="depositform" action="/deposit.do" method="post" onsubmit="return doEnt();">
                                <input type="hidden" name="key" value="2010076141224993911317"/>
                                <input id="run2" type="hidden" name="run" value="2">
                                存款金额:<input id="depositvalue" type="text" name="depositCash" value="1317"/><input
                                    class="sub_btn blue" type="button" onclick="doSub(this)" name="" value="存款"/>
                            </form>
                            <p>存款收取<em>10%</em>的费用</p>
                        </td>
                    </tr>
                </tbody>
            </table>
            <script>
                function doSub(o) {
                    var pr = o.previousSibling;
                    if (!/^\d+$/.test(pr.value)) {
                        alert("请输入数字!");
                        pr.focus();
                        return false;
                    }
                    $('run1').value = xn_rand_function();
                    $('run2').value = xn_rand_function();
                    o.parentNode.submit();
                }            function doEnt() {
                    var pr = $('depositvalue');
                    if (!/^\d+$/.test(pr.value)) {
                        alert("请输入数字!");
                        pr.focus();
                        return false;
                    }
                    $('run2').value = xn_rand_function();
                    return true;
                }
            </script>
        </div>
    </div>
    下面是点击depositform中的存款按钮时,我通过抓包得到的页面POST的数据:
    key=2010076141224993911317&run=111&depositCash=1317