mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-16 08:09:23 +01:00
wifiqr*.bash: specify H:false
As a very basic form of hidden network awareness
This commit is contained in:
parent
7fcd19c4d7
commit
5d871bf3a4
@ -2,14 +2,15 @@
|
|||||||
|
|
||||||
# Argument: SSID
|
# Argument: SSID
|
||||||
|
|
||||||
# -l H uses the highest error correction in case 30 % gets damaged (or artistried upon)
|
# -l H uses the highest error correction in case 30 % gets damaged
|
||||||
|
# (or gets art upon it)
|
||||||
|
|
||||||
PIXELSIZE=6
|
PIXELSIZE=6
|
||||||
|
|
||||||
# Outputs QR code to terminal
|
# Outputs QR code to terminal
|
||||||
qrencode -l H -t utf8 "WIFI:T:nopass;S:$1;;"
|
qrencode -l H -t utf8 "WIFI:T:nopass;S:$1;;"
|
||||||
# Stores QR code as SSID.png, -s doubles pixel size from default 3
|
# Stores QR code as SSID.png, -s doubles pixel size from default 3
|
||||||
qrencode -l H -s $PIXELSIZE -o $1.png "WIFI:T:nopass;S:$1;;"
|
qrencode -l H -s $PIXELSIZE -o $1.png "WIFI:T:nopass;S:$1;;H:false;"
|
||||||
# Might as well jpg this too
|
# Might as well jpg this too
|
||||||
magick "$1".png "$1".jpg
|
magick "$1".png "$1".jpg
|
||||||
|
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Arguments: SSID and WPA2 (3 untested) passphrase
|
# Arguments: SSID and WPA2 passphrase
|
||||||
|
|
||||||
# -l H uses the highest error correction in case 30 % gets damaged (or artistried upon)
|
# -l H uses the highest error correction in case 30 % gets damaged
|
||||||
|
# (or gets art upon it)
|
||||||
|
|
||||||
PIXELSIZE=6
|
PIXELSIZE=6
|
||||||
|
|
||||||
# Outputs QR code to terminal
|
# Outputs QR code to terminal
|
||||||
qrencode -l H -t utf8 "WIFI:T:WPA;S:$1;P:$2;;"
|
qrencode -l H -t utf8 "WIFI:T:WPA;S:$1;P:$2;H:false;"
|
||||||
# Stores QR code as SSID.png, -s doubles pixel size from default 3
|
# Stores QR code as SSID.png, -s doubles pixel size from default 3
|
||||||
qrencode -l H -s $PIXELSIZE -o $1.png "WIFI:T:WPA;S:$1;P:$2;;"
|
qrencode -l H -s $PIXELSIZE -o $1.png "WIFI:T:WPA;S:$1;P:$2;H:false;"
|
||||||
# Might as well jpg this too
|
# Might as well jpg this too
|
||||||
magick "$1".png "$1".jpg
|
magick "$1".png "$1".jpg
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user