zoukankan      html  css  js  c++  java
  • Atitit 破解qq空间(2)-------探测权限

    Atitit 破解qq空间(2-------探测权限

     

    /AtiPlatf_cms/src/com/attilax/net/httpTest.java

     

     package com.attilax.net;

     

    import java.util.concurrent.Callable;

    import java.util.concurrent.TimeoutException;

     

    import org.apache.http.conn.ssl.SSLConnectionSocketFactory;

     

     

    import com.attilax.concur.TaskUtil;

    import com.attilax.io.filex;

    import com.attilax.io.pathx;

    import com.attilax.spider.Ffd;

     

    public class qzoneSpider {

     

    public static void main(String[] args) throws TimeoutException {

     

    // SSLConnectionSocketFactory

    String url = "http://user.qzone.qq.com/314087978";

      url = "http://user.qzone.qq.com/1466519819";

     

     

    Ffd ffd1 = new Ffd();

    ffd1.pathMaindir( pathx.prjParentPath_webrootMode());

    ffd1.get(url);

     

    String sou = ffd1.source();//.getPageSource();

    String title = ffd1.getTitle();

    filex.save(sou, "c:\00souce\log.txt");

    // Runnable

    Callable<Boolean> object = new Callable<Boolean>() {

     

    @Override

    public Boolean call() throws Exception {

    // TODO Auto-generated method stub

    return null;

    }

    };

     

    // Runnable

    Callable<Boolean> blockJude = () -> {

    String sou2 = ffd1.source();

    if (sou2.contains("QQ空间(Qzone)是中国最大的社交网络,是QQ用户的网上家园,是腾讯集团的核心平台之一")) {

    System.out.println("--slp");

    return true;

    }

    return false;

    };

     

    TaskUtil.block(blockJude);

     

    String sou2 = ffd1.source();

    filex.save(sou2, "c:\00souce\" + filex.getUUidName() + ".txt");

    if(sou2.contains("主人设置了权限,您可通过以下方式访问"))

    System.out.println("authed");

    else

    System.out.println("opened");

    String r = "";

    // new websitex().WebpageContent(url, "utf8", 10);

    // HttpUtil.sendGet(url);

    System.out.println(r);

    System.out.println(" ");

     

    }

     

    }

     

     

    作者:: 绰号:老哇的爪子 ( 全名::Attilax Akbar Al Rapanui 阿提拉克斯 阿克巴 阿尔 拉帕努伊 ) 

    汉字名:艾提拉(艾龙)   EMAIL:1466519819@qq.com

    转载请注明来源: http://www.cnblogs.com/attilax/

     

    Atiend

     

  • 相关阅读:
    jfinal 导出excle
    SpringBoot添加多数据源mysql和oracle
    Centos6.8搭建Git服务(git版本可选)(转)
    阿里云服务器搭建java环境(jdk+tomcat+oracle11g)
    Oracle 迁移数据库到 mysql
    mysql 迁移数据库到 oracle (sql注意问题)
    nginx学习之——虚拟主机配置
    mongodb 学习之——mongod --help 中文解释
    win 7 MongoDB 下载安装
    nginx学习之——信号控制和配置
  • 原文地址:https://www.cnblogs.com/attilax/p/5978709.html
Copyright © 2011-2022 走看看