Colin Kuebler
a9abd469ea
Update references to Crypto with Cryptodome in discovery and smartconfig components
2020-01-02 16:29:28 -05:00
Colin Kuebler
769acc617f
Replaced pycrypto with pycryptodomex
2019-12-31 18:55:10 -05:00
Colin Kuebler
70448fec6c
Fix accidental file mode change
2019-11-24 15:34:32 -05:00
Colin Kuebler
46cb505bfc
Change spaces used for indentation into tabs
2019-11-23 17:45:50 -05:00
Colin Kuebler
b5cfc5e6e1
Only show first 9 options, those that are accessible with a single keypress
...
This way a user does not accidentally install option 1 when intending >= 10
2019-11-22 12:54:14 -05:00
Colin Kuebler
060240794e
Change return to exit since this is no longer a function
2019-11-22 12:42:04 -05:00
Colin Kuebler
15b043a325
Merge pull request #401 from kueblc/fix-hostapd-panic
...
Added check for blacklist file known to cause kernel panic in hostapd
2019-11-19 12:33:20 -05:00
Colin Kuebler
d4171a16a9
Add link back to original discussion on hostapd kernel panic
2019-11-19 12:32:16 -05:00
Colin Kuebler
ee88ae0fa3
Merge pull request #400 from kueblc/fix-identity-prefix
...
Always use the known PSK identity prefix to calculate the PSK
2019-11-19 12:30:19 -05:00
Colin Kuebler
09f20a3230
Print prefix if it does not match for debugging purposes
2019-11-19 12:28:55 -05:00
Colin Kuebler
889c16c5e0
Merge pull request #396 from kueblc/flash-menu
...
Replace manual `curl` calls with a menu driven UI
2019-11-19 12:27:26 -05:00
Colin Kuebler
3de90a8664
Merge pull request #405 from R0Wi/master
...
Add backward compatibility for hostapd v2.5 and older (fix #398 )
2019-11-19 01:43:51 -05:00
R0Wi
b5837490ed
Improvements discussed in #404
2019-11-19 07:06:52 +01:00
Colin Kuebler
3cef06065f
Merge remote-tracking branch 'upstream/master' into development
2019-11-18 21:57:18 -05:00
R0Wi
9cfa0f467e
Add backward compatibility for hostapd v2.5 and older
2019-11-18 21:42:33 +01:00
Colin Kuebler
ecaada06da
Implement recommendations from shellcheck thanks to @pfeerick
2019-11-18 13:07:18 -05:00
Christian Clauss
8d679574b3
Use ==/!= to compare str, bytes, and int literals
...
Identity is not the same thing as equality in Python so use ==/!= to compare str, bytes, and int literals. In Python >= 3.8, these instances will raise SyntaxWarnings so it is best to fix them now. https://docs.python.org/3.8/whatsnew/3.8.html#porting-to-python-3-8
2019-11-18 14:41:07 +01:00
Colin Kuebler
b74a708dad
Added check for blacklist file known to cause kernel panic in hostapd, fixes #373
2019-11-17 13:07:55 -05:00
Colin Kuebler
c96ad7229f
Always use the known PSK identity prefix to calculate the PSK
2019-11-17 12:55:53 -05:00
Colin Kuebler
f2499d24f4
Encode all str keys passed to Crypto #332
2019-11-15 10:13:13 -05:00
Colin Kuebler
130a974629
Merge pull request #393 from kueblc/tuya-discovery
...
Tuya discovery
2019-11-14 18:36:56 -05:00
Colin Kuebler
06ee18cf48
Added firmware specific instructions to firmware picker prompt
2019-11-14 18:17:20 -05:00
Colin Kuebler
4eec3fa605
Allow user to attempt recovery if device could not be reached
2019-11-14 18:10:41 -05:00
Colin Kuebler
600a0ca745
Added notice about disconnecting device after undo
2019-11-14 18:01:27 -05:00
Colin Kuebler
cb09ecb596
Implemented menu driven firmware selector
2019-11-14 18:00:55 -05:00
Colin Kuebler
22f2c18bd7
Fix decrypt function
2019-11-13 17:19:49 -05:00
Colin Kuebler
e920e20d99
Implemented script to listen for and decrypt UDP broadcasts from Tuya devices
2019-11-13 17:18:41 -05:00
Felix
183f5c10f4
Change shebang of psk-frontend.py to python2
...
psk-frontend.py should be executed with python2 until sslpsk is working with python3. Some distributions start defaulting to python3 which currently breaks this script.
2019-11-09 20:22:36 +01:00
Colin Kuebler
4aa350c149
Modify extended schema to cover more cases, fix #354 #363 #369 #372
2019-11-07 10:37:51 -05:00
Colin Kuebler
c13abf44ce
Merge pull request #351 from Churro/ip
...
Replace ifconfig and explicitly add route to 10.42.42.0/24
2019-11-02 18:07:44 -04:00
Colin Kuebler
e459fcc3a6
Attempt to stop process nicely before sending SIGKILL
2019-10-31 18:40:36 -04:00
Colin Kuebler
1b02f66e2c
Filter out units which are not service or the user instance
2019-10-31 18:27:12 -04:00
Colin Kuebler
73a344f043
Be explicit when stopping a service vs terminating process
2019-10-30 15:28:14 -04:00
Colin Kuebler
9e434467c8
Confirmed that sudo is not needed by ps
2019-10-30 15:25:37 -04:00
Colin Kuebler
9fa4599024
Don't print ps header so no need for grep
2019-10-30 15:22:43 -04:00
Colin Kuebler
322e42514f
Missed sudo on ps, might be redundant but couldn't hurt
2019-10-30 15:11:25 -04:00
Colin Kuebler
17525e94f6
Missing newline after user prompt
2019-10-29 19:10:25 -04:00
Colin Kuebler
ccad30f600
Port checks for DHCP and Tuya protocol
2019-10-29 19:01:08 -04:00
Colin Kuebler
ffe9ab7ded
Wait for process to end before proceeding
2019-10-29 18:51:05 -04:00
Colin Kuebler
50f4995b0a
Moved disclaimer to setup_checks
2019-10-29 18:32:28 -04:00
Colin Kuebler
70c70fea1e
Moved config check from setup_ap to setup_checks
2019-10-29 18:28:21 -04:00
Colin Kuebler
b87b272987
Added new script responsible for setup checks
...
Added port checking implementation
2019-10-29 18:25:17 -04:00
Johannes Feichtner
c70e102542
Replace ifconfig and explicitly add route to 10.42.42.0/24
2019-10-27 01:34:41 +02:00
Colin Kuebler
c3952af957
Encode AES key
...
Closes #332
2019-10-23 23:31:58 -04:00
Colin Kuebler
8c5b4da98a
Organized setup_ap into three functions, check_config, setup, and cleanup
...
Use bash trap to guarantee cleanup on script exit
This means the user can ^C out and it will do the right thing
2019-10-13 23:19:06 -04:00
Colin Kuebler
4f8e380956
Merge branch 'no-pw' into development
2019-10-13 23:10:59 -04:00
Colin Kuebler
ce30b6ee7e
Merge branch 'fix-net-inf' into development
2019-10-12 18:06:52 -04:00
Colin Kuebler
5e3db7e4d9
Added check for AP mode support
2019-10-12 17:09:46 -04:00
Colin Kuebler
e3168b8339
Remove hostapd.conf writer from setup_ap, and instead include a static file
...
Cut hostapd.conf down to bare configuration
Added hostapd ctrl interface
Reduce log noise by specifying hostapd log level info
Specify interface for hostapd by argument rather than config
No password on vtrust-flash
Updated smartconfig for no password
2019-10-12 16:07:46 -04:00
Colin Kuebler
ec43e49d16
Replace hardcoded gateway with supplied argument
2019-10-09 23:09:47 -04:00