全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: muyang

小夜小偷的验证码问题,有什么好的解决办法没?

[复制链接]
 楼主| 发表于 2010-12-19 13:59:11 | 显示全部楼层
挂ssh不管用,顶多一两分钟又会验证了
发表于 2010-12-19 14:05:36 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2010-12-19 14:06:40 | 显示全部楼层
楼上的兄弟,能把内容贴出来看下吗,20的权限,我还进不去..
发表于 2010-12-19 14:08:22 | 显示全部楼层
小夜分享的问问小偷无验证码文件(需要空间支持php-curl模块)

只要修改curl.php 文件,增加几行代码就可以了,但是要达到无验证码的要求,需要尽量多找问问服务器的IP
隐患: 问问服务器IP 有可能无效,需要定时检查IP 有效性
<?
$isfun='curl';
echo  curl('http://wenwen.soso.com');





function curl($openurl)
{
        global $isfun;
        if($isfun=="curl"){
    $hostlist = array('113.108.81.226','113.108.81.225');  // 尽量多找wenwen.soso.com 的IP,我们不依赖DNS解析,直接连到问问服务器
    $x = mt_rand(0, count($hostlist) - 1);
    $host = $hostlist[$x];
    $openurl = str_replace('wenwen.soso.com',$host,$openurl);
    //echo $openurl;
        $ch = curl_init($openurl);
        $user_agent = "Baiduspider+(+http://www.baidu.com/search/spider.htm)";
        curl_setopt($ch, CURLOPT_URL, $openurl);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host:wenwen.soso.com')); //这是加header的
        curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_REFERER, 'http://wenwen.soso.com/');//
        curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
        $file = curl_exec($ch);
        curl_close($ch);
        }
        elseif($isfun=="fopen"){
                $file=open($openurl);
        }
        else{ echo "<script>alert('你的空间不支持本程序,谢谢使用');window.close();</script>";}
        return $file;
}
?>
 楼主| 发表于 2010-12-19 14:11:15 | 显示全部楼层
感谢楼上的兄弟,先看看

[ 本帖最后由 muyang 于 2010-12-19 14:40 编辑 ]
发表于 2010-12-19 18:16:29 | 显示全部楼层
这个办法不可行了,wenwen所有服务器共享IP访问次数的,多买几个IP来搞搞

$hostlist = array('113.108.81.226','113.108.81.225');  《-- 请改为你本机的实际IP,越多IP 效果越好,这是每次随机从中选取一个IP当作源IP访问wenwen
<?
$isfun='curl';
echo  curl('http://wenwen.soso.com');





function curl($openurl)
{
    global $isfun;
    if($isfun=="curl"){
    $hostlist = array('113.108.81.226','113.108.81.225');
    $x = mt_rand(0, count($hostlist) - 1);
    $host = $hostlist[$x];
    $openurl = str_replace('wenwen.soso.com',$host,$openurl);
    echo $openurl;
    $ch = curl_init($openurl);
    $user_agent = "Baiduspider+(+http://www.baidu.com/search/spider.htm)";
    curl_setopt($ch, CURLOPT_URL, $openurl);
    curl_setopt($ch, CURLOPT_INTERFACE, $host);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_REFERER, 'http://wenwen.soso.com/');//
    curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
    $file = curl_exec($ch);
    curl_close($ch);
    }
    elseif($isfun=="fopen"){
        $file=open($openurl);
    }
    else{ echo "<script>alert('你的空间不支持本程序,谢谢使用');window.close();</script>";}
    return $file;
}
?>
发表于 2010-12-19 18:18:48 | 显示全部楼层
这个给力,我要mark.
发表于 2010-12-19 18:22:44 | 显示全部楼层
LZ的问问小偷没被K???
发表于 2010-12-19 18:39:10 | 显示全部楼层
原帖由 aru 于 2010-12-19 18:16 发表
这个办法不可行了,wenwen所有服务器共享IP访问次数的,多买几个IP来搞搞

$hostlist = array('113.108.81.226','113.108.81.225');  《-- 请改为你本机的实际IP,越多IP 效果越好,这是每次随机从中选取一个IP当作源IP访问w ...


大概看懂了,,,,中国就是不缺人才。。。
发表于 2010-12-19 18:40:59 | 显示全部楼层
原帖由 mslxd 于 2010-12-19 18:39 发表


大概看懂了,,,,中国就是不缺人才。。。

没啥难懂的
curl 可以指定IP进行网络访问,所以只要有多个IP,每次随机选一个就好了
1个IP每分钟能访问30次,2个IP就可以大概60次了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-5-6 17:59 , Processed in 0.058775 second(s), 6 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表