Update payload.sh

pull/377/head
TheDragonkeeper 2019-04-08 19:16:09 +01:00 committed by GitHub
parent f573cb9b0b
commit bed7de2cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -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=("$@")