From bed7de2cd4eb54ac289b2715b771c49c792b0cae Mon Sep 17 00:00:00 2001 From: TheDragonkeeper Date: Mon, 8 Apr 2019 19:16:09 +0100 Subject: [PATCH] Update payload.sh --- payloads/extensions/payload.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/payloads/extensions/payload.sh b/payloads/extensions/payload.sh index 73f652a8..28cc357d 100644 --- a/payloads/extensions/payload.sh +++ b/payloads/extensions/payload.sh @@ -1,3 +1,20 @@ +#!/bin/bash + +#Payload selector by Dragonkeeper +# Allows selecting payloads by amount of switch changes +# +# Execution RUN_PAYLOAD "/Payload/folder/" "payload1.txt" "anotherpayload.txt" "awesomepayload.txt" +# +# LED will go red, to let you know its ready. It is currently about to execute the 1st given payload +# the LED will blue, to let you decide if you want to run that payload. if yes do nothing, if no flick the switch. +# +# if you flicked the switch, the LED will flash green to indicate this, it will then flick to red and go blue, it is now on the 2nd given payload and awaiting decision. +# +# if you leave the switch alone while its blue, the LED will go solid green to indicate that the selection is locked in. +# and the payload of the given number will run. +# +# This will let you add as many payloads as you desire. + function RUN_PAYLOAD() { payloadcount=$# payloadarray=("$@")