关于非法盗链的问题!
本人实习生一枚,经理让做一个公司提交任务系统的外挂。。现在陷入了僵局......
大概是这样。
1.我能非法登录到系统。。【这部分已经完成】
public void saveOk(String hiddenemp) throws URISyntaxException {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String ly_time = sdf.format(new java.util.Date());
String str=ly_time.substring(0, 10);
uri = new URI(head+"/DealTaskList.do?method=getSubTask&projId="+projId+"&task_actual_manhour="
+task_actual_manhour+"&code_size="+code_size+"&task_id="+task_id+"&actual_date="
+str+"&helpemp=-1&hiddenemp="+hiddenemp);
this.util();
}
public static void main(String[] args) throws MalformedURLException,Exception {
HttpURLConnection conn = (HttpURLConnection) new URL("http://bbs.csdn.net/forums/Java").openConnection();
BufferedInputStream bis = new BufferedInputStream(conn.getInputStream());
BufferedReader br = new BufferedReader(new InputStreamReader(bis));
String line = null;
while ((line = br.readLine()) != null) {
if (line.contains("target="_blank" title="")) {
System.out.println(line.replaceAll(".*?title="([^"].+?)".*+", "$1"));
}
}
br.close();
}