• Stars
    star
    131
  • Rank 266,502 (Top 6 %)
  • Language
    Objective-C
  • Created over 10 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Automagically logs into to Captive Portal Networks

NetworkAutoLogin

Automagically logs into to Captive Portal Networks

Installation

Configuration format

The format to use in ~/.networkautologin.js is a javascript file with definition for exports.forms, which should be an array of objects.

Each of these objects should contain a matches & a fields key and optionally a form_selector key.

The 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.

The 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.

The 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.

Example configuration

exports.forms = [
    { // Example with all possible options
		match: {
			SSID: ['Example WiFi 1', 'Example WiFi 2'],
			BSSID: '01:23:45:67:89:AB',
			URL: 'http://logon.example.org/?url=http://www.apple.com/library/test/success.html'
		},
		form_selector: 'form#login_form',
		fields: {
			'username': 'test',
			'password': '123123'
		}
	}
];

This 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.

When 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.

Finally it will submit the form and check that it is successfully connected the Internet.

A barebones example can be seen below:

exports.forms = [
    { // Minimal example
		match: {
			SSID: 'Example WiFi'
		},
		fields: {
			'username': 'test',
			'password': '123123'
		}
	},
];

More Repositories

1

insert_dylib

Command line utility for inserting a dylib load command into a Mach-O binary
C
1,527
star
2

macho_edit

Command line utility for modifying Mach-O binaries in various ways.
C++
151
star
3

cycript-utils

Various cycript functions
Cycript
127
star
4

asm_repl

A REPL for assembly
C
95
star
5

z4

z3++
Python
24
star
6

get_aslr

C
22
star
7

objc_instance_finder

Find instances of objc classes at runtime
Objective-C
22
star
8

kextd_patcher

Patch kextd using radare2
Python
16
star
9

yt_dlp_firefox

Svelte
10
star
10

ineffective_hooker

Lets you replace a functions implementation with another function which can call the original function normally
C
9
star
11

link_cut_tree

A link/cut tree implemented in python
Python
9
star
12

auprint

Allows you to setup Aarhus University's printers on their prt11.uni.au.dk server
Python
8
star
13

class-dump-a

Combines class-dump and class-dump-z
8
star
14

inject_dylib

Command-line utility to inject a dylib into a running process
C
8
star
15

Lid-sleep

Automatically sleep a MacBook when closing the lid with an external screen attached.
Objective-C
5
star
16

lldb-utils

Various utilities to use with lldb
Python
5
star
17

apkmagician

Python
4
star
18

albert-extensions

Python
4
star
19

us_da-layout

US keyboard layout with level 3-4 รฆรธรฅ
Shell
3
star
20

fork-futures

Provides an alternative to concurrent.futures.ProcessPoolExecutor implemented using fork.
Python
3
star
21

theos-templates

2
star
22

fbtk

TK-navne pรฅ Facebook
JavaScript
2
star
23

Mathematica-init.m

Mathematica init.m
Mathematica
2
star
24

runtime_class-dump

Objective-C
2
star
25

SimpleInjector

Objective-C
2
star
26

JSON_with_NaN

JSON with NaN (and Infinity/-Infinity)
JavaScript
1
star
27

DisablePowerButton

Disables the power button on OS X
Objective-C
1
star
28

no-html-download

JavaScript
1
star
29

kattis-test

Tool for running problem submissions against samples.
Python
1
star
30

alfred_workflows

Various Alfred workflows
Objective-C
1
star
31

dk_mac_fixed-layout

Shell
1
star
32

kattis-improvements

JavaScript
1
star
33

ijvm-disasm

Tool for disassembling IJVM bytecode files
Python
1
star
34

neutrino

C++
1
star
35

patricia_tree_rust

Rust
1
star
36

pacclean

A better `pacman -R $(pacman -Qdtq)`
C++
1
star
37

vtable

Rust
1
star