Coder Social home page Coder Social logo

sadeghhayeri / mili Goto Github PK

View Code? Open in Web Editor NEW
203.0 10.0 19.0 2.75 MB

Mili is an open source tool for auto login hotspot pages! (MacOS + Linux)

License: GNU General Public License v2.0

Shell 100.00%
mikrotik mikrotik-hotspot hotspot hotspot-wifi auto-login wifi-hotspot

mili's Introduction

Mili - Hotspot Auto login Script

mili logo

Never see login pages again!

Mili is an open source tool for auto login hotspot pages. if you are tired of inserting username and password for internet access, Mili is your friend!

Every time you connect to a new WiFi, Mili checks Mikrotik services and try to login.

mili notify

In addition, you can set more than one login info (for example your close friend password) for Mili. every time Mili tries to use a random user! (yes! you can set share percentage too)

Example:

"login_information" : [
		{
			"username": "USER 1",
			"password": "PASS 1",
			"share": 5
		},
		{
			"username": "USER 2",
			"password": "PASS 2",
			"share": 1
		},
	]

Installation

git clone https://github.com/SadeghHayeri/Mili.git
cd Mili/scripts
./install.sh

mili config
MacOnly (disable captive popup page)

this is optional (Note: disabling SIP is unsafe. enable it immediately after rename captive network.)

  1. Restart your Mac.
  2. Before OS X starts up, hold down Command-R and keep it held down until you see an Apple icon and a progress bar. Release. This boots you into Recovery.
  3. From the Utilities menu, select Terminal.
  4. At the prompt type exactly the following and then press Return: csrutil disable
  5. Terminal should display a message that SIP was disabled.
  6. In the Finder, select Go > Go To Folder.
  7. Enter /System/Library/CoreServices and hit return.
  8. Find Captive Network Assistant, click it, and rename it with an extra word, like Captive Network Assistant Do Not Launch and press return.
  9. Enter your password when prompted to make the change.
  10. From the  menu, select Restart.

Usage

Init/change configs
mili config
Check and login
mili
Force login
mili login
Login with specific user (Password must be saved beforehand)
mili login <UserName>
Status
mili status
Logout
mili logout

mili's People

Contributors

sadeghhayeri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mili's Issues

Installation Directory

It would be nice to provide an option to install in a directory other than ~/.mili, as this clutters up the home directory in a way that users might not prefer. The XDG Base Directory Specification provides a good baseline for how this can be implemented with little to no configuration hassle.

The only change required would be in the following snippet:

Mili/scripts/install.sh

Lines 3 to 20 in f0a2260

case "$OSTYPE" in
darwin*)
user=$(id -un)
mili_location="/Users/$user/.mili"
script_location="$mili_location/bin"
service_location="/Users/$user/Library/LaunchAgents"
;;
linux*)
user=$(id -un)
mili_location="/home/$user/.mili"
script_location="$mili_location/bin"
service_location="/etc/systemd/system"
;;
*)
echo "Mili does not support your OS yet, sorry :("
exit 1
;;
esac

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.