Socket
Socket
Sign inDemoInstall

wifi.sh

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    wifi.sh

connect to wifi


Version published
Weekly downloads
27
increased by2600%
Maintainers
1
Install size
42.0 kB
Created
Weekly downloads
 

Readme

Source

wifi.sh

bash script to connect to wifi (on linux)

Install

with npm

npm install -g wifi.sh

without npm

curl https://raw.githubusercontent.com/dominictarr/wifi.sh/master/index.sh > /usr/bin/wifi.sh; chmod +x /usr/bin/wifi.sh

Usage

#list currently available wifi networks.
sudo wifi.sh scan

#connect to best network
sudo wifi.sh connect

#add a network to file.
sudo wifi.sh add SSID passphrase

# show your mac address

sudo wifi.sh mac

# set your mac address randomly.

sudo wifi.sh randmac

# set your mac address manually

sudo wifi.sh 01:23:45:67:89:ab

#show current interface

wifi.sh interface

# this defaults to the LAST interface
# it finds, for me, this is the most recent USB wifi
# dongle I plugged in.

# set interface manually like this:

sudo INTERFACE=wlan0 wifi.sh connect

# set wpa_supplicant.conf location

sudo WPA_CONF=/etc/wpa_supplicant.conf wifi.sh connect

# connect to open network

sudo wifi.sh open "A great SSID"

# disconnect any wifi network

sudo INTERFACE=wlan0 wifi.sh disconnect

Some other wifi utils on npm,

  • wit
  • wireless
  • wifi-password (for osx)

These both use node, wifi.sh has the distinction that it is all in bash, so will run where there are very low resources, such as on a raspberry pi.

License

MIT

FAQs

Last updated on 30 Aug 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc