本站绝非钓鱼网站,从反应速度就可以看出来,不放心的请不要使用

因为加了验证码,现在用不了了
本表单通过调用联通官方查询页面实现批量查询,每次最多只能查询前10张卡(注册个账户可以解决这个问题^_^)
不过不推荐,因为容易超时,也容易被封IP
现在用不了,因为必须要联通手机注册账号才能查询,而且有验证码

只要卡号,一行一个,不需要密码,不要输密码

本文件源码

<?php

set_time_limit 
);
require (
'../wp-load.php');
get_header ();
?>
<div id="primary">
    <div id="content" role="main">
        <h1 class="entry-title">本站绝非钓鱼网站,从反应速度就可以看出来,不放心的请不要使用</h1>
        <p>
            因为加了验证码,现在用不了了<br />本表单通过调用联通官方查询页面实现批量查询,每次最多只能查询前10张卡(注册个账户可以解决这个问题^_^)<br />
            不过不推荐,因为容易超时,也容易被封IP<br /> 现在用不了,因为必须要联通手机注册账号才能查询,而且有验证码
        </p>
        <p>
      <?php
                        
if (isset ( $_POST ['cards'] )) {
                            
$card_num trim $_POST ['cards'] );
                            
$card_num array_unique explode "\n"$card_num10 ) );
                            echo 
'共有卡号' count $card_num ) . '个<br />';
                            
$count 0;
                            foreach ( 
$card_num as $card ) {
                                if (! 
current_user_can 'read' ) && $count == 10) {
                                    break;
                                }
                                
$card trim $card );
                                
$cu wp_remote_get 'http://info.10010.com/database/card/queryCard.do?cardPassword=' $card );
                                if (
is_wp_error $cu )) {
                                    
var_dump $cu );
                                    break;
                                }
                                
$cu wp_remote_retrieve_body $cu );
                                
$cu iconv 'GBK''UTF-8//TRANSLIT'$cu );
                                
$cu strstr $cu'查询结果:' );
                                
$cu substr $cu0stripos $cu'请输入正确的充值卡卡号' ) );
                                
$cu idea_get_table $cu );
                                if (
stripos ( ( string ) $cu'错误' ) === 0) {
                                    echo 
$cu;
                                    break;
                                }
                                switch (
count $cu ['1'] )) {
                                    case 
:
                                        echo 
'卡' $cu ['0'] ['1'] . $cu ['1'] ['1'] . ',有效期至' $cu ['2'] ['1'] . '<br />';
                                        break;
                                    case 
:
                                        echo 
'卡' $cu ['0'] ['1'] . '不存在,' $cu ['1'] ['0'];
                                        break;
                                    default :
                                        break;
                                }
                                
$count ++;
                                
sleep );
                            }
                            unset ( 
$count );
                        }
                        
?>
    </p>
        <p style="color: #F00">只要卡号,一行一个,不需要密码,不要输密码</p>
        <form action="<?php echo basename(__FILE__);?>" method="post"
            name="form1" target="_self">
            <p>
                <label for="cards">请输入一卡充卡号:<br /></label>
                <textarea name="cards" cols="30" rows="11" id="cards">
<?php
if (isset ( $_POST ['cards'] )) {
    echo 
$_POST ['cards'];
} else {
    echo 
'98120134' mt_rand '00000''99999' ) . '89';
}
?>
</textarea>
            </p>
            <p>
                <input type="submit" name="submit" id="submit" value="给 我 查">
            </p>
        </form>
    本文件源码
    <?php $filename __FILE__;?>
    <?php $content file_get_contents $filename );?>
    <pre><?php highlight_string $content );?></pre>
    </div>
</div>
<?php get_sidebar(); ?>
<?php get_footer
(); ?>