Last active
August 29, 2015 13:59
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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