public override void run() { try { string url = "http://myplantblog.com/MaxiProxies.php"; string html = _httpTools.GetPage(url); html = html.Replace("\r", ""); string[] str_proxys = html.Split(new string[] { "\n" }, StringSplitOptions.RemoveEmptyEntries); this.proxys = new List <Proxy>(); foreach (string str_proxy in str_proxys) { string[] tmp = str_proxy.Split(':'); if (tmp.Length < 2) { continue; } Proxy p = new Proxy(tmp[0], int.Parse(tmp[1])); this.proxys.Add(p); } } catch (System.Exception ex) { this.onFindResult(false, this); return; } this.onFindResult(true, this); }
public override void run() { try { string url = "http://216.244.80.43/?username=Adminss&passwd=H5.lfgGfd"; string html = _httpTools.GetPage(url); html = html.Replace("\r", ""); string[] str_proxys = html.Split(new string[] { "\n" }, StringSplitOptions.RemoveEmptyEntries); this.proxys = new List <Proxy>(); foreach (string str_proxy in str_proxys) { string[] tmp = str_proxy.Split('|'); if (tmp[0] == "") { continue; } if (tmp.Length < 3) { if (str_proxy.IndexOf("ransparent") != -1) { //37.187.40.182:3128 #Transparent 2014-03-20 17:25:02 tmp = str_proxy.Substring(0, str_proxy.IndexOf("#")).Split(':'); Proxy p = new Proxy(tmp[0], int.Parse(tmp[1])); p.type = eProxyType.HTTP; p.otherMeInfo = ""; this.proxys.Add(p); } else { continue; } } else { Proxy p = new Proxy(tmp[0], int.Parse(tmp[1])); if (tmp[2] == "HTTP") { p.type = eProxyType.HTTP; } else if (tmp[2] == "SOCKS4") { p.type = eProxyType.SOCKS4; } else if (tmp[2] == "SOCKS5") { p.type = eProxyType.SOCKS5; } p.otherMeInfo = tmp[2] + "|" + tmp[3] + "|" + tmp[4] + "|" + tmp[5] + "|" + tmp[6] + "|" + tmp[7]; p.countryCode = tmp[4]; this.proxys.Add(p); } } } catch (System.Exception ex) { this.onFindResult(false, this); return; } this.onFindResult(true, this); }
public override void run() { try { string url = "http://eemmuu.com/proxy.asp?u=82_cc5fb3a05819b6b2&p=6e1a74f83ca76e17&c=c"; string html = _httpTools.GetPage(url); html = html.Replace("\r", ""); string[] str_proxys = html.Split(new string[] { "\n" }, StringSplitOptions.RemoveEmptyEntries); this.proxys = new List <Proxy>(); foreach (string str_proxy in str_proxys) { string[] tmp = str_proxy.Split(':'); if (tmp.Length != 2) { continue; } Proxy p = new Proxy(tmp[0], int.Parse(tmp[1])); this.proxys.Add(p); } } catch (System.Exception ex) { this.onFindResult(false, this); return; } this.onFindResult(true, this); }
public override void run() { try { string url = "http://kingproxies.com/api/v1/proxies.txt?key=f858c63f2e4f0ef6fed4eca6a53a7e&limit=1000&test=0"; //string url = "http://173.237.187.235/person.html"; string html = _httpTools.GetPage(url); html = html.Replace("\r", ""); string[] str_proxys = html.Split(new string[] { "\n" }, StringSplitOptions.RemoveEmptyEntries); this.proxys = new List <Proxy>(); foreach (string str_proxy in str_proxys) { string[] tmp = str_proxy.Split(':'); if (tmp.Length < 2) { continue; } Proxy p = new Proxy(tmp[0], int.Parse(tmp[1])); this.proxys.Add(p); } } catch (System.Exception ex) { this.onFindResult(false, this); return; } this.onFindResult(true, this); }
public override void run() { try { foreach (string url in this.urls) { string html = _httpTools.GetPage(url); if (html != "") { _js = getJS(html); string proxylisttb = get_proxylisttb(html); readIPs(proxylisttb); } } } catch { this.onFindResult(false, this); return; } this.onFindResult(true, this); }
public override void run() { try { string html = _httpTools.GetPage(_host + "index.php?forums/anonymous-http.4/"); string list_html = _httpTools.GetMid(html, "<ol class=\"discussionListItems\">", "</ol>"); string pattern = @"<li[^>]*>[\s\S]*?</li>"; MatchCollection mc = Regex.Matches(list_html, pattern, RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture); if (mc.Count > 1) { _urls.Add(getUrlFromLi(mc[0].Value)); _urls.Add(getUrlFromLi(mc[1].Value)); } if (this.proxys == null) { this.proxys = new List <Proxy>(); } foreach (string url in _urls) { html = _httpTools.GetPage(url); pattern = @"\w{1,3}\.\w{1,3}\.\w{1,3}\.\w{1,3}:\w{1,5}"; mc = Regex.Matches(html, pattern, RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture); foreach (Match m in mc) { string[] ip_port = m.Value.Split(':'); this.proxys.Add(new Proxy(ip_port[0], int.Parse(ip_port[1]))); } } } catch { this.onFindResult(false, this); return; } this.onFindResult(true, this); }
public override void run() { try { string url = "http://cn.yunproxy.com/apilist/uid/2658/api_format/2/country/US,CA,MX,CR,PA,CU,JM,HT,PR,GB,FR,DE,RU,FI,SE,NO,IS,DK,EE,LT,UA,CZ,SK,AT,CH,IE,NL,BE,RO,BG,GR,SI,HR,IT,ES,PT,PL,JP,KR,KP,IN,TR,IL,MN,AF,KH,ID,LA,MM,MY,PH,SG,TH,VN,SY,MV,PK,IR,KZ,UZ,BH,KW,QA,SA,AE,IQ,AU,NZ,BR,AR,CL,UY,PY,CO,VE,EC,PE,ZA,CG,LR,CM,SO,EG,LY,MA,ET,DZ/"; string html = _httpTools.GetPage(url); html = html.Replace("\r", ""); string[] str_proxys = html.Split(new string[] { "\n" }, StringSplitOptions.RemoveEmptyEntries); this.proxys = new List <Proxy>(); foreach (string str_proxy in str_proxys) { string[] tmp = str_proxy.Split('|'); if (tmp.Length < 3) { continue; } Proxy p = new Proxy(tmp[0], int.Parse(tmp[1])); if (tmp[2] == "HTTP") { p.type = eProxyType.HTTP; } else if (tmp[2] == "SOCK4") { p.type = eProxyType.SOCKS4; } else if (tmp[2] == "SOCK5") { p.type = eProxyType.SOCKS5; } p.otherMeInfo = tmp[2] + "|" + tmp[3] + "|" + tmp[4] + "|" + tmp[5] + "|" + tmp[6] + "|" + tmp[7]; p.countryCode = tmp[4];; this.proxys.Add(p); } } catch (System.Exception ex) { this.onFindResult(false, this); return; } this.onFindResult(true, this); }
public override void run() { try { string url = "http://23.19.43.201/qqbb.php"; string html = _httpTools.GetPage(url); html = html.Replace("\r", ""); string[] str_proxys = html.Split(new string[] { "\n" }, StringSplitOptions.RemoveEmptyEntries); this.proxys = new List <Proxy>(); foreach (string str_proxy in str_proxys) { string[] tmp = str_proxy.Split('|'); if (tmp.Length < 3) { continue; } Proxy p = new Proxy(tmp[0], int.Parse(tmp[1])); if (tmp[2] == "HTTP") { p.type = eProxyType.HTTP; } else if (tmp[2] == "SOCK4") { p.type = eProxyType.SOCKS4; } else if (tmp[2] == "SOCK5") { p.type = eProxyType.SOCKS5; } p.otherMeInfo = tmp[2] + "|" + tmp[3] + "|" + tmp[4] + "|" + tmp[5] + "|" + tmp[6] + "|" + tmp[7]; p.countryCode = tmp[4];; this.proxys.Add(p); } } catch (System.Exception ex) { this.onFindResult(false, this); return; } this.onFindResult(true, this); }
public override void run() { try { foreach (string url in this.urls) { string html = _httpTools.GetPage(url); if (html != "") { _js = getJS(html); string proxylisttb = get_proxylisttb(html); proxylisttb = proxylisttb.Remove(0, proxylisttb.IndexOf("</tr>") + "</tr>".Length); readIPs(proxylisttb); } } } catch (Exception e) { this.onFindResult(false, this); return; } this.onFindResult(true, this); }