Commit Graph

6 Commits (qol_fixes)

Author SHA1 Message Date
Mike Kershaw / Dragorn e9fa48db58 gpio: Fix battery offsets, fix LED paths 2023-08-04 10:16:20 -04:00
Mike Kershaw / Dragorn e4c00778f4 gpio: Battery is on chip 416 after all 2023-08-03 14:26:57 -04:00
Mike Kershaw / Dragorn 5f77f0eee1 gpio: Fix GPIO offset 2023-08-03 14:11:48 -04:00
Mike Kershaw / Dragorn c2f279a8d6 gpio: Fix GPIO handling for modern openwrt, handle sharkjack-cable
detection, temporarily don't halt on battery conditions
2023-08-02 16:36:25 -04:00
Zero_Chaos 5aa0ef7c56 Housekeeping (#7)
* fix LED killing

* do not autostart unneeded services

ntp: we don't want to leak in attack mode and arming mode doesn't even
have internet.  user's who want this can start it themselves
dnsmasq: we should start this when needed rather than killing it when
not needed, speed boot by not starting then killing

* NETMODE: use dnsmasq

netmode was improperly calling odhcpd when we use dnsmasq, just call
dnsmasq

* start dnsmasq when needed

have shark service start dnsmasq in arming mode and stop it in attack
and off mode

* randomize mac with macchanger

currently mac is randomized because it is unable to read the actual mac.
If there gets fixed then the mac won't be randomized.  Let's
intentionally randomize the mac to be sure we are random enough

* ensure netmode dhcp_server provides default gateway

* prototype out switching between gateway and no gateway

* actually disable gateway in arming mode

* disable openvpn

I don't know why this is trying to start, but let's not

* better LED anti-suicide

* permissions count

* execute_payload: fix shellcheck warnings

* convert BATTERY to posix

runtime cut from 0.051s to 0.021s on average

* shellcheck cleanup

simplify script while doing it, use faster sh instead of bash

* DO_A_BARREL_ROOL: this was posix anyway, so use posix

* execute_payload: mostly posix, consider refactor

* cleanup LED a bit

partially elminate bashisms when possible to do cleanly
shellcheck fixes for anti-hari kari (and it's faster)

* POSIX NETMODE

this was already posix except for function definitions

* POSIX shark_framework

fix minor logic error and posixify

* shark_framework: save an awk

* SWITCH: posix

* LED: fix logic for SC2015 warnings

* move wait_for_link and add wait_for_no_link

a few additional fixes based on testing

* fix macchanger and wait_for_link

* remove unneeded note

* This is where you change the mac address

* We do not need network in off mode, no services anyway

* ensure no dhcp during attack mode until requested

* bash or python, but not php

* The function is simple enough to not need a comment --Foxtrot
2020-01-24 02:44:17 +00:00
Marc 49cbd4460d Files: Initial commit of Shark files 2019-12-11 21:11:53 +00:00