nvm-sh /
nvm
Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
Loading repository data…
allwill90 / repository
Bash script to automatically connect/refresh connections to Vodafone-WiFi hotspots in italy. This script allows you to automatically login or refresh connections to Vodafone-WiFi hotspots which are free for users who have an internet subscription with vodafone and enable in their router the option to share their unused bandwidth through a secondary wifi hotspot that has the standard name "Vodafone-WiFi". When you allow to share your bandwidth, you get login credentials to connect to other people's hotspots. When you first connect to a Vodafone-WiFi hotspot your operating system detects it by trying to connect to a random website and should be redirected accordingly by the server on the router. For vodafone this happens by redirecting on the first http request to a page having the URL https://it.portal.vodafone-wifi.com/jcp/it?res=welcome with some parameters that are the mac address of the router "nasid" the router ip address "uamip" the router port "uamport" your device mac address "mac" and a random generated challenge. In case of any missing parameters or if they are wrong i found out that you get a 404 Not Found response even if the URL is correct. After getting the required parameters the url that does the login is the same as before but with res=login with the parameters attached plus your login info. In order to use this script you just need to setup the username, password and directory variables, the username and password need to have special characters url encoded (that is @ in the username is %40). You can find online tools that url encode your password if you search on google. More info: according to the places i have used this the vodafone station router gives a lease of 600 seconds or 5 minutes so you need to use some kind of watchdog to keep the wireless connection up (i use travelmate on openwrt), second you should run this as often as 5 minutes or 10 minutes (personally i run it every 5 minutes just in case). This script was written using ubuntu 18.04 and tested on it and openwrt 18.06.2, all you need is wget anda shell like bash or ash. This should work on any unix system with a shell and wget(not tested).
This is a script written in bash that lets you automatically connect and refresh connections to Vodafone Hotspots in Italy (although it should work for other countries too with few changes to the url and the parameters which i didn't bother to do since i haven't had the need to use this abroad). If your internet provider is Vodafone and you use their provided Vodafone Station you can enable a setting in the router which allows for your unused bandwidth to be shared with other people who are Vodafone customers through a secondary wireless interface that broadcasts a standard SSID "Vodafone-WiFi". The prerequisites to use this are:
Then you just need to set the parameters in the script (username and password must be url encoded, you can use any tool you like or use this website. This was written on Arch linux and tested on Arch, Ubuntu 18.06.x and Openwrt 18.06.x to 19.07.5.
Note: if you want a completely automated connection manager based on this (like running it on the router) you need to setup the proper scripts at boot (in openwrt for example you could place a script in /etc/hotplug.d/net/99-something where you run the script when your desired interface goes up) and setup a cron job every 5 minutes (which is the lease time the Vodafone Station gives every dhcp client).
Selected from shared topics, language and repository description—not editorial ratings.
nvm-sh /
Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
dylanaraps /
📖 A collection of pure bash alternatives to external processes.
vishnubob /
Pure bash script to test and wait on the availability of a TCP host and port
kellyjonbrazil /
CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
HariSekhon /
1200+ DevOps Bash Scripts - AWS, GCP, Kubernetes, Docker, CI/CD, APIs, SQL, PostgreSQL, MySQL, Hive, Impala, Kafka, Hadoop, Jenkins, GitHub, GitLab, BitBucket, Azure DevOps, TeamCity, Spotify, MP3, LDAP, Code/Build Linting, pkg mgmt for Linux, Mac, Python, Perl, Ruby, NodeJS, Golang, Advanced dotfiles: .bashrc, .vimrc, .gitconfig, .screenrc, tmux..
v1s1t0r1sh3r3 /
This is a multi-use bash script for Linux systems to audit wireless networks.