muyang 发表于 2010-12-19 13:59:11

挂ssh不管用,顶多一两分钟又会验证了

490775 发表于 2010-12-19 14:05:36

muyang 发表于 2010-12-19 14:06:40

楼上的兄弟,能把内容贴出来看下吗,20的权限,我还进不去..

xspoco 发表于 2010-12-19 14:08:22

小夜分享的问问小偷无验证码文件(需要空间支持php-curl模块)

只要修改curl.php 文件,增加几行代码就可以了,但是要达到无验证码的要求,需要尽量多找问问服务器的IP
隐患: 问问服务器IP 有可能无效,需要定时检查IP 有效性
<?
$isfun='curl';
echocurl('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;
}
?>

muyang 发表于 2010-12-19 14:11:15

感谢楼上的兄弟,先看看

[ 本帖最后由 muyang 于 2010-12-19 14:40 编辑 ]

aru 发表于 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';
echocurl('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;
}
?>

ineme 发表于 2010-12-19 18:18:48

这个给力,我要mark.

ixbear 发表于 2010-12-19 18:22:44

LZ的问问小偷没被K???

mslxd 发表于 2010-12-19 18:39:10

原帖由 aru 于 2010-12-19 18:16 发表 http://hostloc.wiki/images/common/back.gif
这个办法不可行了,wenwen所有服务器共享IP访问次数的,多买几个IP来搞搞

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

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

aru 发表于 2010-12-19 18:40:59

原帖由 mslxd 于 2010-12-19 18:39 发表 http://hostloc.wiki/images/common/back.gif


大概看懂了,,,,中国就是不缺人才。。。
没啥难懂的
curl 可以指定IP进行网络访问,所以只要有多个IP,每次随机选一个就好了
1个IP每分钟能访问30次,2个IP就可以大概60次了
页: 1 [2] 3
查看完整版本: 小夜小偷的验证码问题,有什么好的解决办法没?