From c1f40e7fa7e14b3685e127062b8202691e26fd39 Mon Sep 17 00:00:00 2001 From: Mike Flynn Date: Thu, 22 Aug 2019 14:12:30 -0700 Subject: [PATCH 1/3] Added Jack-Tester payload --- .../library/util/Jack-Tester/._payload.sh | Bin 0 -> 4096 bytes payloads/library/util/Jack-Tester/payload.sh | 38 ++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 payloads/library/util/Jack-Tester/._payload.sh create mode 100644 payloads/library/util/Jack-Tester/payload.sh diff --git a/payloads/library/util/Jack-Tester/._payload.sh b/payloads/library/util/Jack-Tester/._payload.sh new file mode 100644 index 0000000000000000000000000000000000000000..169e65d9b2407b60b294dca4445e71b12418dc7a GIT binary patch literal 4096 zcmeH~y$ZrG5XY~As7psDDH)s`N^x`(TpWs^72G7Psg|Z6G;#24936coU!*3)7Ibmf zI|%o`OYX@1wuA1l2OR*PMr5@iJMuD}gMm6z0Q;`IitPu0D>Z zCF-upkE0@UX<2gSW=zrpm2|dG{l!wUY%5q5(4zndOP&bndDp(_Wa$pt8gC-==SHJP z0!RP}AOR$R1dsp{Kmter2_S*LBA{2qc1?7GQzA&kL~*VnM&hDMNs>#J%cRID=NH0R WEJ?^|o~m8=7eKww-%d0Fr>>v1GA+6Q literal 0 HcmV?d00001 diff --git a/payloads/library/util/Jack-Tester/payload.sh b/payloads/library/util/Jack-Tester/payload.sh new file mode 100644 index 0000000..118341c --- /dev/null +++ b/payloads/library/util/Jack-Tester/payload.sh @@ -0,0 +1,38 @@ +#!/bin/bash +# +# Title: Jack Tester +# Author: Hydrox +# Version: 1.0 +# +# Boots and looks for an ip address to test if the port is active on the LAN. +# +# Magenta Solid............Setup +# Red Slow Blink...........Inactive Jack +# Green....................Active Jack +# + +function find_subnet() { + SUBNET=$(ip addr | grep -i eth0 | grep -i inet | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}[\/]{1}[0-9]{1,2}" | sed 's/\.[0-9]*\//\.0\//') +} + +function run() { + LED SETUP + + # Find IP address and subnet + for i in {1..30}; do + sleep 1 && find_subnet + + if [ ! -z "$SUBNET" ]; then + break; + fi + done + + if [ -z "$SUBNET" ]; then + LED FAIL + else + LED FINISH + fi +} + +# Run payload +run & From 0778948a19e0537f514414ebb35c98991126f058 Mon Sep 17 00:00:00 2001 From: Mike Flynn Date: Thu, 22 Aug 2019 14:14:39 -0700 Subject: [PATCH 2/3] Removed temp file. --- payloads/library/util/Jack-Tester/._payload.sh | Bin 4096 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 payloads/library/util/Jack-Tester/._payload.sh diff --git a/payloads/library/util/Jack-Tester/._payload.sh b/payloads/library/util/Jack-Tester/._payload.sh deleted file mode 100644 index 169e65d9b2407b60b294dca4445e71b12418dc7a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4096 zcmeH~y$ZrG5XY~As7psDDH)s`N^x`(TpWs^72G7Psg|Z6G;#24936coU!*3)7Ibmf zI|%o`OYX@1wuA1l2OR*PMr5@iJMuD}gMm6z0Q;`IitPu0D>Z zCF-upkE0@UX<2gSW=zrpm2|dG{l!wUY%5q5(4zndOP&bndDp(_Wa$pt8gC-==SHJP z0!RP}AOR$R1dsp{Kmter2_S*LBA{2qc1?7GQzA&kL~*VnM&hDMNs>#J%cRID=NH0R WEJ?^|o~m8=7eKww-%d0Fr>>v1GA+6Q From 76e2572e8bfab78dcc7d79648d9599b37d7fe424 Mon Sep 17 00:00:00 2001 From: Mike Flynn Date: Thu, 22 Aug 2019 14:41:13 -0700 Subject: [PATCH 3/3] Updated payload author line. --- payloads/library/util/Jack-Tester/payload.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payloads/library/util/Jack-Tester/payload.sh b/payloads/library/util/Jack-Tester/payload.sh index 118341c..5019720 100644 --- a/payloads/library/util/Jack-Tester/payload.sh +++ b/payloads/library/util/Jack-Tester/payload.sh @@ -1,7 +1,7 @@ #!/bin/bash # # Title: Jack Tester -# Author: Hydrox +# Author: Mike Flynn // Hydrox # Version: 1.0 # # Boots and looks for an ip address to test if the port is active on the LAN.