求删除空间说说源码

@Ta 2014-12-11 5252点击
rt,空间说说太多了,手动删等于删到手残。。。
回复列表(14|隐藏机器人聊天)
  • @Ta / 2014-12-11 / /
    @小松,给你随机发说说图片的,源码,就是个错误么,搞得我空间一打开,全是你的
  • @Ta / 2014-12-11 / /
    @为你一人,哎,频率高了,不好意思。
  • @Ta / 2014-12-11 / /
    @爱小邹,怎么使用
  • @Ta / 2014-12-11 / /
    @小松,自行配置del_index.php中的UAER_QQ , USER_SID
    使用: del_index.php?exec=1&start=删除的开始页&end=结束页
  • @Ta / 2014-12-11 / /
    @爱小邹,修改null这个??
  • @Ta / 2014-12-11 / /
    @小松,是的
  • @Ta / 2014-12-11 / /
    @爱小邹,没有效果耶
  • @Ta / 2014-12-11 / /
    @小松
    <?php
    header("content-type:text/html; charset=utf-8");
    include dirname(__FILE__) . '/Http.class.php';
    
    $http = new Http;
    $http->ua = $_SERVER['HTTP_USER_AGENT'];
    
    set_time_limit(0);
    
    /* 自行配置 */
    
    //现在可以了,修改了下 成功了
    $qq="";
    $sid="";
    /* GET */
    $exec  = $_GET['exec'];
    $start = $_GET['start'];
    $end   = $_GET['end'];
    $location = empty($_GET['location']) ? $start : $_GET['location'];
    
    /* 防误删 */
    if(!isset($exec)){
        exit('缺少exec参数!');
    }
    
    /* 删除完成 退出脚本 */
    if($location == $end){
        exit('删除完成!<br/>Powered by <a href="http://commoner.cn">布衣</a><br/>
    Copyright 2014 by Commoner.');
    }
    
    /* 获取说说列表 */
    $talkList = $http->execute('GET' ,'http://blog30.z.qq.com/mood/mood_list_my.jsp?B_UID=' . $qq .'&sid=' . $sid  . '&pageNo=' . $location);
    file_put_contents('gll.html' , $talkList);
    
    /* 获取列表中的删除链接 */
    preg_match_all("/<a\s?href=\"(\S+)\">删除<\/a><\/p>
    /" , $talkList , $DeleteList);
    
    foreach($DeleteList[1] as $row){
    
        preg_match("/sid=(\S+)&/" , $row , $sid);
        preg_match("/B_UID=(\S+)&/" , $row , $b_uid);
        preg_match("/tid=(\S+)&/" , $row , $tid);
        $qq = $b_uid[1];
       
        $url = 'http://blog60.z.qq.com/mood/mood_del_exe.jsp?sid='.$sid[1].'&B_UID='.$qq.'&tid='.$tid[1].'&mood_uin='.$qq.'&mood_id='.$tid[1].'&t1_source=1&writeUin=0&comeFrom=mood_my&t1_uin='.$qq.'&t1_tid='.$tid[1].'&t2_uin=0&t2_tid=&t3_tid=&del_type=1';
    
        $http->execute('GET' , $url);    
    }
    header('Location: ?exec=1&start=' . $start . '&end=' . $end . '&location=' . $location++);
    ?>
    
  • @Ta / 2014-12-11 / /
    @爱小邹,还是不行,就生成一个gll.html文件
  • @Ta / 2014-12-11 / /
    你肯定没有设置正确吧 我把自己说说都清理了
  • @Ta / 2014-12-11 / /
    @小松
    ?exec=1&start=1&end=你最后的页数

    我的说说都清理了
  • @Ta / 2014-12-11 / /
    @爱小邹,我不清楚我有多少页,我就设置1到20,看了下没有效果
添加新回复
回复需要登录