GithubHelp home page GithubHelp logo

dev-ittechca-com / captive-browser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from filosottile/captive-browser

1.0 0.0 0.0 127 KB

Chrome captive-browser

Home Page: https://blog.filippo.io/captive-browser

License: MIT License

Go 100.00%

captive-browser's Introduction

captive-browser

A more secure, dedicated, Chrome-based captive portal browser that automatically bypasses custom DNS servers.

captive-browser detects the DHCP DNS server and runs a SOCKS5 proxy that resolves hostnames through it. Then it starts a Chrome instance in Incognito mode with a separate data directory and waits for it to exit.

Read more on my blog.

Installation

You'll need Chrome and Go 1.9 or newer.

go get -u github.com/FiloSottile/captive-browser

You have to install a config file in $XDG_CONFIG_HOME/captive-browser.toml (if set) or ~/.config/captive-browser.toml. You can probably use one of the stock ones below. You might have to modify the network interface.

macOS

cp $(go env GOPATH)/src/github.com/FiloSottile/captive-browser/captive-browser-mac-chrome.toml ~/.config/captive-browser.toml

To disable the insecure system captive browser see here. If that doesn't work, disable SIP (remember to re-enable it), and rename /System/Library/CoreServices/Captive Network Assistant.app.

Ubuntu

cp $(go env GOPATH)/src/github.com/FiloSottile/captive-browser/captive-browser-ubuntu-chrome.toml ~/.config/captive-browser.toml

Arch / systemd-networkd

go get -u github.com/FiloSottile/captive-browser/cmd/systemd-networkd-dns
cp $(go env GOPATH)/src/github.com/FiloSottile/captive-browser/captive-browser-arch-chrome.toml ~/.config/captive-browser.toml

Arch / dhcpcd

cp $(go env GOPATH)/src/github.com/FiloSottile/captive-browser/captive-browser-dhcpcd-chromium.toml ~/.config/captive-browser.toml

Usage

Simply run captive-browser, log into the captive portal, and then quit (โŒ˜Q / Ctrl-Q) the Chrome instance.

If the binary is not found, try $(go env GOPATH)/bin/captive-browser.

To configure the browser, open a non-Incognito window (โŒ˜N / Ctrl-N).

captive-browser's People

Contributors

chrissnell avatar filosottile avatar kevinburke avatar ma27 avatar monperrus avatar quite avatar radeksimko avatar yanpozka avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.