Skip to content

Instantly share code, notes, and snippets.

@ChanSec
Last active August 29, 2015 13:59
Show Gist options
  • Save ChanSec/10497348 to your computer and use it in GitHub Desktop.
Save ChanSec/10497348 to your computer and use it in GitHub Desktop.
This code is used to grab any websites IP. The code is written in VB.NET. There are many similar codes, so this is nothing special, but it does work. This particular code was coded by Team Devnet and was used by Cyb3rj1h4d in his DoS tool Eclipse v1.0.0.2.
Imports System.Net
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
If WSITE.Text.Contains("http://") Then
Dim iphe As IPHostEntry = Dns.GetHostEntry(WSITE.Text.Replace("http://", String.Empty))
IPADD.Text = iphe.AddressList(0).ToString()
Else
Dim iphe As IPHostEntry = Dns.GetHostEntry(WSITE.Text)
IPADD.Text = iphe.AddressList(0).ToString()
End If
Catch ex As Exception
MsgBox(ex)
End Try
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment