Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Simple browser with local DNS system

I made this in about two minutes in response to a request on another thread as to how tor works. This is a very simple and stripped down version with local dns handling. You can see how the dns.txt is able to set any .PLD domain you type in into another website to load on the browser.

This isn't exactly how tor works, but it is a simple demonstration on making custom TLD's which was the main issue.

Download: Source Project

Relevant thread: https://hackforums.net/showthread.php?tid=4635578
Freelance Programmer


Selling Scripts

Non-Sharing Virus Scanning Script
PM Me For Anything

This really isn't "DNS", but nice demo I suppose.
can you show us some screenshot? tho nice release :D
I didn't include a screenshot because it is just a very simple browser ( just a webbrowser control and a few buttons ) and the rest is handled by the code. ) I figured most people don't really want to SEE the code, they want the actual code. Thanks for the reply :)
Freelance Programmer


Selling Scripts

Non-Sharing Virus Scanning Script
PM Me For Anything

wow, you couldent of picked a shitter file host could you?
* edit so nobody else has to go through all that shit *

Code
Public Class Form1

    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
      wBro.GoBack()
    End Sub

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
      wBro.GoForward()
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
      wBro.GoHome()
    End Sub

    Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click

      ' We should first check to see if the TLD in the url box is one of our private TLDs.

      Dim tld = getTLD() ' Grab the TLD using our custom function we programmed

      If tld = "pld" Then ' PLD is our Private Level Domain extension that we are going to use for this project

      ' It is our PLD, so have the browser grab the special private server information and have it open

      Dim url As String
      url = txtURL.Text.Replace("http://", "")
      url = url.Replace("https://", "")

      wBro.Navigate(getPLDServer(url))

      Else

      ' It isn't our PLD, so we will have the web browser load it normally.
      wBro.Navigate(txtURL.Text)

      End If

    End Sub

    Private Function getTLD()

      Dim url As String() = txtURL.Text.Split(".")
      Dim tld As String = url(url.Count - 1)

      Return tld

    End Function

    Private Function getPLDServer(ByVal pURL As String)

      Dim pServer As String = Nothing

      Dim rServer As New System.IO.StreamReader("dns.txt")

      Do Until rServer.EndOfStream

      Dim curLine As String = rServer.ReadLine

      If curLine.Split(":")(0).ToLower = pURL.ToLower Then

      pServer = curLine.Split(":")(1)

      End If

      Loop

      rServer.Close()

      If pServer = Nothing Then

      pServer = "file://" & Application.StartupPath & "/404.html" ' The PLD was not found in the database

      End If

      Return pServer

    End Function

End Class
(Jan 18, 2015 10:45 AM)nathan72389 Wrote:  wow, you couldent of picked a shitter file host could you?

So on topic that I, much like a white girl, literally can't even.
Freelance Programmer


Selling Scripts

Non-Sharing Virus Scanning Script
PM Me For Anything



Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by Emre_Sep 4, 2019 03:15 PM 0 149 Sep 4, 2019 03:15 PM
Last Post: Emre_
[Shell] by samir50Sep 24, 2018 12:33 PM 3 262 Sep 24, 2018 12:33 PM
Last Post: ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™
[Shell] by SkidyMar 21, 2017 01:13 PM 1 253 Mar 21, 2017 01:13 PM
Last Post: Cumbax