Hack Forums
[.NET] [SOURCE] Pulling IP's from HideMyAss - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [SOURCE] Pulling IP's from HideMyAss (/showthread.php?tid=2651509)

Pages: Pages 1 2 3


[SOURCE] Pulling IP's from HideMyAss - Cody8295 - Jul 5, 2012

I did this in response to this thread here:

https://hackforums.net/showthread.php?tid=2649418

It's just a small little function to parse IP's from HMA's shitty semi-obfuscated web source.

[Image: M2LvN.png]


Code
#Region "GetProxies Function"
    Shared Sub Get50Proxies()
  Dim ts As String = String.Empty
  Dim t As String = String.Empty
  ProxyList.Clear()
  Dim s As String = wc.DownloadString("http://hidemyass.com/proxy-list/").Replace("<td rel", "ʘ")
  For i As Integer = 1 To 50
    ts = Split(s, "class=""updatets")(i).Split("ʘ")(0)
    t = String.Empty
    For ip As Integer = 1 To (System.Text.RegularExpressions.Regex.Matches(ts, "<div").Count + System.Text.RegularExpressions.Regex.Matches(ts, "<span").Count + System.Text.RegularExpressions.Regex.Matches(ts, "<td").Count) * 2 + 1
    If Not Split(ts.Replace(" ", ""), "<")(ip).Split(">")(0).Contains(":none") And Not String.IsNullOrEmpty(Split(ts.Replace(" ", ""), ">")(ip + 1).Split("<")(0).Replace(".", String.Empty).Replace(Chr(10), String.Empty).Replace(Chr(9), String.Empty)) Then
    t &= Split(ts.Replace(" ", ""), ">")(ip + 1).Split("<")(0).Replace(".", "").TrimStart(Chr(10)) & "."
    End If
    Next
    t = t.TrimEnd(".")
    t = t.Insert(t.LastIndexOf(".") + 1, ":")
    t = t.Remove(t.LastIndexOf("."), 1)
    MsgBox(t)
    ProxyList.Add(t)
  Next
    End Sub
#End Region


Enjoy guys.


* - kolec94 - Jul 6, 2012

someone really sked for this its where most grabber get thier ip's


* - li0nsar3c00l - Jul 6, 2012

as in other thread already said, thanks for the script. now my view booster got 5 different proxy grabbing negines ;)


* - Cody8295 - Jul 6, 2012

(Jul 6, 2012 12:15 AM)kolec94 Wrote:  someone really sked for this its where most grabber get thier ip's

I'm not sure what you mean, I made this myself.


* - StarZ - Jul 6, 2012

Nice, Cody!

I was actually working on something just like this last night.


* - ytlayol - Jul 6, 2012

nice work bro...keep up the good work :)


* - kolec94 - Jul 6, 2012

(Jul 6, 2012 08:18 AM)Cody8295 Wrote:  I'm not sure what you mean, I made this myself.

not that hard to make a proxy grabber


* - Cody8295 - Jul 6, 2012

(Jul 6, 2012 11:35 AM)kolec94 Wrote:  not that hard to make a proxy grabber

It was for this site, take a look at their page source.


* - StarZ - Jul 6, 2012

(Jul 6, 2012 11:35 AM)kolec94 Wrote:  not that hard to make a proxy grabber

On HMA they use <(div|span)="display:none">\d{1,3}</(div|span)> to prevent scraping. It's not hard to get the HTML, But it is to parse the IP correctly.


* - Hackedbyak47imaskid - Jul 6, 2012

That I call a pro with the Split Function.


* - Oppresor - Jul 6, 2012

Lmao, it's so funny how I was making one of these and now you post it.

Cool, nice job!


* - Cody8295 - Jul 6, 2012

Hahah, thanks for the feedback and compliments you guys.


* - зяяоя - Jul 6, 2012

Nice share, buddy. I am sure this will be VERY helpful to many people.


* - ★ SpideR ★ - Jul 10, 2012

How would u display all the ips in a listview


* - jipjan95 - Jul 11, 2012

Very nice code, thanks for the share!