Atitit 破解qq空间(2)-------探测权限
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://blog.csdn.net/attilax
Atiend