القائمة الرئيسية

الصفحات

wifi-share

Instantly share your WIFI connection using a QR code. 
Scan it with your phone and connect automatically.
Software License Python version Platform support

Installation (using make)

git clone https://github.com/thanosgn/wifi-share.git
cd wifi-share
make install
You can uninstall at any time using make uninstall. If you don't have make you can always use pip install -r requirements.txt to install the necessary requirements.
Obviously python and pip are required.
The script is compatible with both python2 and python3
On windows you can use cmd to install and use the script.

Usage (default)

wifi-share
If you did not use the provided Makefile, and you don't have a symlink to the python script, then using python wifi-share.pywill do just fine.
See also the Notes section below.

Example

Options

All the below arguments are optional. The default behavior is to generate a QR code on the terminal for the network you are currently connected. However, there are many options available if you want something besides the default scenario.
usage: wifi-share [-h] [-v] [-i [IMAGE]] [-s SSID] [-p PASSWORD] [-l]

__ ___ ______ _ _____ _
\ \ / (_) | ____(_) / ____| |
\ \ /\ / / _ ______| |__ _ | (___ | |__ __ _ _ __ ___
\ \/ \/ / | |______| __| | | \___ \| '_ \ / _` | '__/ _ \
\ /\ / | | | | | | ____) | | | | (_| | | | __/
\/ \/ |_| |_| |_| |_____/|_| |_|\__,_|_| \___|

optional arguments:
-h, --help show this help message and exit
-v, --verbose Enable verbose output.
-i [IMAGE], --image [IMAGE]
Specify a filename for the generated QR code image.
(.png or .svg). Default: [WIFINAME].svg. If -i/--image
argument is not provided the QR code will be displayed
on the console.
-s SSID, --ssid SSID Specify the SSID you want the password of. Default:
the SSID of the network you are currently connected.
-p PASSWORD, --password PASSWORD
Specify a desired password to be used instead of the
stored one.
-l, --list Display a list of stored Wi-Fi networks (SSIDs) to
choose from.

Notes

Unfortunately, in Linux systems using NetworkManager root privileges are required in ordered to read the password of a saved WiFi connection. That is why, unless you are root, you should run the script with sudo (as shown in the example).
The same does not apply on Windows systems. netsh does not need administrator privileges.
هل اعجبك الموضوع :

Commentaires

التنقل السريع