[Release] DNSwitch - A utility to hijack the webbrowser

Discussion in 'Nintendo Switch' started by Red, Mar 5, 2017 with 23 replies and 11,496 views.

  1. Red

    Red Newbie VIP Retired

    Messages:
    15,098
    Ratings:
    9,479
    DNSwitch
    A utility for the Nintendo Switch to hijack the web browser


    Requirements
    1. Python 3.6
    2. A webserver(if you want to use PHP)
    How to use
    1. Set up your hosts file to set the IP that you would like your DNS to be and run both the DNS server.
    2. Open the internet settings on your Nintendo Switch and change your connection's DNS to the one you set in the hosts file.
    3. Run a connection test and click okay once the switch asks you to register
    4. ???
    5. Profit
    Credits
    Visual Studio for creating the scripts used in this github to automate the process.

    What does this do?
    This will allow you to redirect the stripped down webbrowser on the Nintendo Switch to do whatever you would like instead of the typical captive portal that is used to sign into wifi. An example of this can be found in the video and screenshots below

    Video/Screenshots

    [​IMG]
    [​IMG]
    [​IMG]

    Source/Download
    If you're interesting in view the source code/downloading it yourself to use it can be found here.

    This thread may change at anytime to incorporate better instructions or to house updates.
     
    • Like Like x 9
    • Informative Informative x 3
    Last edited: Mar 5, 2017
  2. Datredyoshi

    Datredyoshi Newbie

    Messages:
    3
    Ratings:
    0
    In the 2 python files which one and where should my DNS go and if I need my IP where does that go also. And if I need a URL where do I place it.
     
  3. Visual Studio

    Visual Studio The Original Shiba Inu

    Messages:
    2,764
    Ratings:
    1,339
    The DNS server you need to connect to is the local ip address of the computer you're running it on.
     
  4. Datredyoshi

    Datredyoshi Newbie

    Messages:
    3
    Ratings:
    0
    Which file do I put that in and also which files do I put in the other and what should I run to enable it
     
  5. heyymanny

    heyymanny Newbie

    Messages:
    7
    Ratings:
    1
    i dont understand the layout youre supposed to use in the hosts file? which ip am i supposed to use? what settings do i have to change on the switch? can you go into more detail and add more pictures/ videos with this post? it would be appreciated thanks
     
  6. Foxofgrey

    Foxofgrey Newbie

    Messages:
    5
    Ratings:
    0
    So how would one set up a webserver on let's say Windows 10 home?
     
  7. OP
    Red

    Red Newbie VIP Retired

    Messages:
    15,098
    Ratings:
    9,479
    This will act as a webserver if you use the http folder
     
  8. Foxofgrey

    Foxofgrey Newbie

    Messages:
    5
    Ratings:
    0
    And in the first step, would the host filed mention be the one included in the download or the HOSTS file in the Windows folder of the root directory?
     
  9. OP
    Red

    Red Newbie VIP Retired

    Messages:
    15,098
    Ratings:
    9,479
    The one included in the download
     
  10. Foxofgrey

    Foxofgrey Newbie

    Messages:
    5
    Ratings:
    0
    Also, how would the hostname regex be set up in the host file?
    Would it just be the path to the http folder?
     
  11. Datredyoshi

    Datredyoshi Newbie

    Messages:
    3
    Ratings:
    0
    Can you give me the http for YouTube
     
  12. OP
    Red

    Red Newbie VIP Retired

    Messages:
    15,098
    Ratings:
    9,479
  13. Foxofgrey

    Foxofgrey Newbie

    Messages:
    5
    Ratings:
    0
  14. OP
    Red

    Red Newbie VIP Retired

    Messages:
    15,098
    Ratings:
    9,479
    This will be an html file..you need to make a redirect for your captive portal
     
  15. Foxofgrey

    Foxofgrey Newbie

    Messages:
    5
    Ratings:
    0
    Sorry if I sound new at this sort of activity, but how could I go through creating a captive portal?
     
  16. OP
    Red

    Red Newbie VIP Retired

    Messages:
    15,098
    Ratings:
    9,479
    You need to use DNSwitch and the python scripts in the main post to do this. Once those are done create your html file and redirect it to youtube.

    Alternatively. Wait about an hour and download the new source code from youtube as I will be adding a premade captive portal, so all you will need to do is run the scripts and do the initial setup
     
  17. OP
    Red

    Red Newbie VIP Retired

    Messages:
    15,098
    Ratings:
    9,479
    For those who want to test multiple sites quickly and easily I have just added an html file to DNSwitch that redirects to dnswitch.redthetrainer.com This will allow you to test to your hearts content with minimal effort
     
    • Like Like x 1
  18. enderzombie15

    enderzombie15 Newbie

    Messages:
    4
    Ratings:
    0
  19. OP
    Red

    Red Newbie VIP Retired

    Messages:
    15,098
    Ratings:
    9,479
    Your wish is my command
     
  20. enderzombie15

    enderzombie15 Newbie

    Messages:
    4
    Ratings:
    0
    Thank Uuuuuuuu
     

Share This Page