dnsx3

Get All Website using IP server

Oct 8th, 2017 (edited)
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.94 KB | None | 0 0
  1. Imports System.Net
  2. Imports System.IO
  3. Imports System.Threading
  4. Imports Newtonsoft.Json.Linq
  5.  
  6. Module Module1
  7.  
  8.     Sub Main()
  9.  
  10.         Console.Title = "[ Get All Website using IP server .. ]"
  11.         Console.SetWindowSize(100, 25)
  12.         Console.ForegroundColor = ConsoleColor.DarkRed
  13.         Console.WriteLine(String.Format("{0," & Console.WindowWidth - 35 & "}", "/* .. Twitter : @0xHunter .. *\" & vbNewLine & vbNewLine))
  14.         Dim thread As Thread
  15.         Thread.Sleep(3000)
  16.         thread = New Thread(AddressOf GetWebsitesFromServer)
  17.         thread.Start()
  18.     End Sub
  19.  
  20.     Private Function CheckForIllegalCrossThreadCalls() As Boolean
  21.         Throw New NotImplementedException()
  22.     End Function
  23.  
  24.     Public Sub GetWebsitesFromServer()
  25.         Try
  26.             Dim ip As String = "160.153.131.204" ' change this ip
  27.             Dim attack As HttpWebRequest = CType(WebRequest.Create("https://api.viewdns.info/reverseip/?host=" + ip + "&apikey=df00b8a29918e3830317a84b738cf4cc543ec9a4&output=json"), HttpWebRequest)
  28.             attack.Method = "GET"
  29.             Dim res As HttpWebResponse = CType(attack.GetResponse(), HttpWebResponse)
  30.             Dim webStream As Stream = res.GetResponseStream()
  31.             Dim webStreamReader As New StreamReader(webStream)
  32.             Dim response_attack = webStreamReader.ReadToEnd()
  33.             Dim json As JObject = JObject.Parse(response_attack)
  34.             Dim x = json.SelectToken("response").SelectToken("domains")
  35.             For Each w As JObject In x
  36.                 Dim urls = "http://" + w.SelectToken("name").ToString
  37.                 Console.WriteLine(urls)
  38.             Next
  39.             Console.ForegroundColor = ConsoleColor.Cyan
  40.             Console.WriteLine(vbNewLine & "[ + ] Done Get Website " & vbNewLine)
  41.             Thread.Sleep(90000)
  42.         Catch ex As Exception
  43.             Console.WriteLine(ex.Message)
  44.             'Thread.Sleep(9000)
  45.         End Try
  46.     End Sub
  47. End Module
Add Comment
Please, Sign In to add comment