Thread Rating:
  • 3 Vote(s) - 2.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[VB8] Getting Your IP & Information [TUT]
#1
Not really a tutorial.. But I thought it would help some people out. Firstly you will need the following GetBetween function which I think was coded by Deathader but I'm not entirely sure.

GetBetween (Click to View)

Code:
Imports System.Net
Imports System.Text

Code:
Try
            Dim myWebClient As New WebClient()
            Dim myDatabuffer As Byte() = myWebClient.DownloadData("http://whatismyipaddress.com/")
            Dim download As String = Encoding.ASCII.GetString(myDatabuffer)
Basically all this does is downloads the source of www.whatismyipaddress.com.

Code:
Dim IP As String = GetBetween(download, "<span class=""ip blue"">", "<", 0)
            Dim ISP As String = GetBetween(download, "ISP:</th><td>", "</td>", 0)
            Dim ORG As String = GetBetween(download, "Organization:</th><td>", "</td>", 0)
            Dim PRO As String = GetBetween(download, "Proxy:</th><td>", "</td>", 0)
            Dim CIT As String = GetBetween(download, "City:</th><td>", "</td>", 0)
            Dim REG As String = GetBetween(download, "Region:</th><td>", "</td>", 0)
            Dim COU As String = GetBetween(download, "Country:</th><td>", "<img", 0)
This is scanning the source for the string of code which contains the information you need.

Code:
TextBox1.Text = IP
            TextBox2.Text = ISP
            TextBox3.Text = ORG
            If PRO.Contains("None Detected") Then
                TextBox4.Text = "None"
            Else
                TextBox4.Text = PRO
            End If
            TextBox5.Text = CIT
            TextBox6.Text = REG
            TextBox7.Text = COU
        Catch ex As Exception
        End Try
This is displaying all the information you have downloaded.

Hope this can help some people. I know it's not really a tutorial but I wanted to share it with you all.
Reply
#2
Code:
Dim myDatabuffer As Byte() = myWebClient.DownloadData("http://whatismyipaddress.com/[b]"[/b])'Quote forgoten
Imports System.Net   'imports
Imports System.Text 'imports
Here're some fixes . Nice tutorial Smile
My only goal is to help other people .
[Image: gNQgw]
How to make a Photo Viewer [HQ]
Reply
#3
(08-14-2010, 05:24 AM).Nielz Wrote:
Code:
Dim myDatabuffer As Byte() = myWebClient.DownloadData("http://whatismyipaddress.com/[b]"[/b])'Quote forgoten
Imports System.Net   'imports
Imports System.Text 'imports
Here're some fixes . Nice tutorial Smile

Thanks I kinda of wrote it in a rush. Updated it now.
Reply
#4
(08-14-2010, 05:37 AM)Fragma Wrote: Thanks I kinda of wrote it in a rush. Updated it now.
Np , just want to help other people Smile
My only goal is to help other people .
[Image: gNQgw]
How to make a Photo Viewer [HQ]
Reply
#5
there is no such language as vb8.

-.-

its just vb.net
Reply
#6
(08-14-2010, 06:18 AM)BlaiR Wrote: there is no such language as vb8.

-.-

its just vb.net

But it's for Visual basics 8 . Think
My only goal is to help other people .
[Image: gNQgw]
How to make a Photo Viewer [HQ]
Reply
#7
Thank you very much Big Grin
Reply
#8
(08-14-2010, 06:18 AM)Scammer Wrote: there is no such language as vb8.

-.-

its just vb.net

VB8 obviously refers to VB.Net.
Reply
#9
Nice. Thanks very much for this. I am looking for something for my new HF Booter coming soon to Hackforums. Free for any member on there. I know everyone on there loves booting and coding. So i am here to help. Thanks for this awesome thread. Big Grin
Reply
#10
(10-21-2010, 03:01 PM)Positive Wrote: Nice. Thanks very much for this. I am looking for something for my new HF Booter coming soon to Hackforums. Free for any member on there. I know everyone on there loves booting and coding. So i am here to help. Thanks for this awesome thread. Big Grin

Nice to know you're wasting the code I've shared on something like a booter...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [TUT] How to make a simple WebBrowser in VB 2010! [TUT] - [ Pictures] Statics 95 55,624 10-07-2012, 06:56 AM
Last Post: a99
  Computer Information - Program Made By Me BreShiE 25 7,250 06-29-2012, 06:01 PM
Last Post: iRtehLeet
  VB.NET Computer Information [SRC] Fragma 35 15,715 01-07-2012, 03:56 PM
Last Post: Quantum
  [TUT]Auto-Update System[TUT] HB Virus 3 2,149 01-07-2012, 02:21 PM
Last Post: Mastermrz
  EzInfo Source | Computer Information Grabber Die 3 1,801 01-03-2012, 02:07 PM
Last Post: Die

Forum Jump:


Users browsing this thread: 1 Guest(s)