欢迎您光临自学哈网,只为分享网络知识教程,供大家学习参考!

「自学哈网」PHP在线获取VIP会员账号API接口代码

作者 : 自学哈 本文共3466个字,预计阅读时间需要9分钟 2022-10-8 共133人阅读
也想出现在这里? 联系我们

PHP在线获取VIP会员账号API接口代码,可以获取迅雷会员帐号、爱奇艺会员帐号、优酷会员帐号,接口用的找号网数据,下面是整合的API接口代码。

<?php
function get_psd($id)//伪造ip获取密码
{
    $ip = rand(1, 254) . '.' . rand(1, 254) . '.' . rand(1, 254) . '.' . rand(1, 254);
    $mainurl = 'http://www.zhanghao.cc/index.php?c=main&a=getpass&id=' . $id;
    $opts = array('http' => array('header' => 'X-Forwarded-For:' . $ip . ''));
    $context = stream_context_create($opts);
    $contents = file_get_contents($mainurl, false, $context);
    //echo $contents;
    exit($contents);
}
$id = $_GET['id'];
if ($id != "") {
    get_psd($id);
}
$ip = rand(1, 254) . '.' . rand(1, 254) . '.' . rand(1, 254) . '.' . rand(1, 254);
$url = 'http://www.zhanghao.cc/';
$opts = array('http' => array('header' => 'Cookie:' . @$cookie . ''));
$context = stream_context_create($opts);
$contents = file_get_contents($url, false, $context);
preg_match_all('/class="table1">(.*?)name="aqy">[s|S]*?class="table1">(.*?)name="yk">[s|S]*?class="table1">(.*?)"w300 b kr"/', $contents, $match);
preg_match_all('/<font color="red">(.*?)</font[s|S]*?id="(.*?)" class/', $match[1][0], $xunl);
preg_match_all('/<font color="red">(.*?)</font[s|S]*?id="(.*?)" class/', $match[2][0], $aiqy);
preg_match_all('/<font color="red">(.*?)</font[s|S]*?id="(.*?)" class/', $match[3][0], $you);
//echo $match[1][0];
?>

PHP循环获取会员帐号数据

<div class="tab-pane" id="home">
                                            <?php for ($i = 0; $i < count($xunl[1]); $i = $i + 1) {
                                                echo '
    <ul class="list-group">
    <li class="list-group-item">帐号:'.$xunl[1][$i].'</li>
    <li class="list-group-item">ID:'.$xunl[2][$i].'</li>
    <li class="list-group-item"><button type="button" class="btn btn-outline-info"><a href=./?id='.$xunl[2][$i].'>点我查看密码</a></button></li>
  </ul>
    ';
                                               } ?>
                                                
                                            </div>
                                            <div class="tab-pane show active" id="profile">
<?php for ($i = 0; $i < count($aiqy[1]); $i = $i + 1) {
                                                echo '
    <ul class="list-group">
    <li class="list-group-item">帐号:'.$aiqy[1][$i].'</li>
    <li class="list-group-item">ID:'.$aiqy[2][$i].'</li>
    <li class="list-group-item"><button type="button" class="btn btn-outline-info"><a href=./?id='.$aiqy[2][$i].'>点我查看密码</a></button></li>
  </ul>
    ';
                                               } ?>
                                                
                                            </div>
                                            <div class="tab-pane" id="messages">
<?php for ($i = 0; $i < count($you[1]); $i = $i + 1) {
                                                echo '
    <ul class="list-group">
    <li class="list-group-item">帐号:'.$you[1][$i].'</li>
    <li class="list-group-item">ID:'.$you[2][$i].'</li>
    <li class="list-group-item"><button type="button" class="btn btn-outline-info"><a href=./?id='.$you[2][$i].'>点我查看密码</a></button></li>
  </ul>
    ';
                                               } ?>
                                                </div>

相关专题

本站声明:
本站所有资源来源于网络,分享目的仅供大家学习和交流!如若本站内容侵犯了原著者的合法权益,可联系邮箱976157886@qq.com进行删除。
自学哈专注于免费提供最新的分享知识、网络教程、网络技术的资源分享平台,好资源不私藏,大家一起分享!

自学哈网 » 「自学哈网」PHP在线获取VIP会员账号API接口代码
也想出现在这里? 联系我们
© 2022 Theme by - 自学哈网 & WordPress Theme. All rights reserved 浙ICP备2022016594号