{"id":13578679,"url":"https://github.com/tyilo/NetworkAutoLogin","last_synced_at":"2025-04-05T19:33:28.763Z","repository":{"id":11556118,"uuid":"14042146","full_name":"tyilo/NetworkAutoLogin","owner":"tyilo","description":"Automagically logs into to Captive Portal Networks","archived":false,"fork":false,"pushed_at":"2014-11-19T01:56:49.000Z","size":254,"stargazers_count":135,"open_issues_count":2,"forks_count":19,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-05T16:47:45.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tyilo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-01T12:05:46.000Z","updated_at":"2024-10-10T14:20:37.000Z","dependencies_parsed_at":"2022-09-23T00:02:00.284Z","dependency_job_id":null,"html_url":"https://github.com/tyilo/NetworkAutoLogin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyilo%2FNetworkAutoLogin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyilo%2FNetworkAutoLogin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyilo%2FNetworkAutoLogin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyilo%2FNetworkAutoLogin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyilo","download_url":"https://codeload.github.com/tyilo/NetworkAutoLogin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393095,"owners_count":20931804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T15:01:32.831Z","updated_at":"2025-04-05T19:33:27.274Z","avatar_url":"https://github.com/tyilo.png","language":"Objective-C","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"readme":"NetworkAutoLogin\n================\n\nAutomagically logs into to Captive Portal Networks\n\nInstallation\n------------\n\n- Download phantomjs from http://phantomjs.org/download.html and copy `bin/phantomjs` to `NetworkAutoLogin/resources`.\n- Download casperjs from https://github.com/n1k0/casperjs/releases and copy the contents of the directory to `NetworkAutoLogin/resources/casperjs`\n- Open the project with Xcode and build the \"Install\" target\n- Edit `~/.networkautologin.js`\n\nConfiguration format\n--------------------\nThe format to use in `~/.networkautologin.js` is a javascript file with definition for `exports.forms`, which should be an array of objects.\n\nEach of these objects should contain a `matches` \u0026 a `fields` key and optionally a `form_selector` key.\n\nThe `matches` key should contain an object with one or more of the following keys: `SSID`, `BSSID`, `URL`. Each of these fields should contain either be a string or an array of strings to be matched. The `URL` key, if present, should specify the URL redirected to when requesting `http://www.apple.com/library/test/success.html` from the unauthenticated network.\n\nThe `fields` key should contain an object with keys specifying HTML form element names and the values representing the values of those fields to be filled in.\n\nThe `form_selector` key can be used if multiple forms are present on the page. If this field is not present, it will default to just `form`, matching the first form on the page.\n\nExample configuration\n---------------------\n```\nexports.forms = [\n    { // Example with all possible options\n\t\tmatch: {\n\t\t\tSSID: ['Example WiFi 1', 'Example WiFi 2'],\n\t\t\tBSSID: '01:23:45:67:89:AB',\n\t\t\tURL: 'http://logon.example.org/?url=http://www.apple.com/library/test/success.html'\n\t\t},\n\t\tform_selector: 'form#login_form',\n\t\tfields: {\n\t\t\t'username': 'test',\n\t\t\t'password': '123123'\n\t\t}\n\t}\n];\n```\n\nThis example will run when connected to a network with either the SSID of `Example WiFi 1` or `Example WiFi 2`, with the BSSID of `01:23:45:67:89:AB` and which redirects to `http://logon.example.org/?url=http://www.apple.com/library/test/success.html` when requesting `http://www.apple.com/library/test/success.html`.\n\nWhen this happens the script will find the form matching the CSS selector `form#login_form` and fill the input with the name `username` with `test` and the input with the name `password` with `123123`.\n\nFinally it will submit the form and check that it is successfully connected the Internet.\n\nA barebones example can be seen below:\n```\nexports.forms = [\n    { // Minimal example\n\t\tmatch: {\n\t\t\tSSID: 'Example WiFi'\n\t\t},\n\t\tfields: {\n\t\t\t'username': 'test',\n\t\t\t'password': '123123'\n\t\t}\n\t},\n];\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyilo%2FNetworkAutoLogin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyilo%2FNetworkAutoLogin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyilo%2FNetworkAutoLogin/lists"}