Created
November 17, 2024 18:48
-
-
Save mak3r/f751632d06d2eb1ba2a34fb7df6a2192 to your computer and use it in GitHub Desktop.
Open a captive portal on linux. Captive portals tend to be used for Hotels and on Airplanes. Find the SSID and select it. In other OS, it automatically opens the browser or a window to login. In linux you must run this script to open the captive portal in the browser.
This file contains hidden or 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
| #!/bin/sh | |
| # Open the captive portal of the current wifi | |
| xdg-open http://$(ip --oneline route get 1.1.1.1 | awk '{print $3}') & | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment