From 73e69127206d2660cf9fd84fce81c8a4635a1021 Mon Sep 17 00:00:00 2001 From: saintcrossbow Date: Thu, 18 Jun 2020 21:27:23 -0400 Subject: [PATCH] New payload, directory changes Added KeepAlive payload to prevent PC from going inactive for variable time (default an hour) and moved directory to accomodate for utility / persistence functions --- library/persistence/{ => AddAdmin}/README.md | 0 .../persistence/{ => AddAdmin}/addadmin.txt | 0 library/util/KeepAlive/README.md | 25 ++++++++++++++++ library/util/KeepAlive/keepalive.txt | 30 +++++++++++++++++++ 4 files changed, 55 insertions(+) rename library/persistence/{ => AddAdmin}/README.md (100%) rename library/persistence/{ => AddAdmin}/addadmin.txt (100%) create mode 100644 library/util/KeepAlive/README.md create mode 100644 library/util/KeepAlive/keepalive.txt diff --git a/library/persistence/README.md b/library/persistence/AddAdmin/README.md similarity index 100% rename from library/persistence/README.md rename to library/persistence/AddAdmin/README.md diff --git a/library/persistence/addadmin.txt b/library/persistence/AddAdmin/addadmin.txt similarity index 100% rename from library/persistence/addadmin.txt rename to library/persistence/AddAdmin/addadmin.txt diff --git a/library/util/KeepAlive/README.md b/library/util/KeepAlive/README.md new file mode 100644 index 0000000..ea4bc6f --- /dev/null +++ b/library/util/KeepAlive/README.md @@ -0,0 +1,25 @@ +# Keep Alive +### Don't let the PC fall asleep +--- +Like having a mouse wiggler on for your Key Croc, except with keys! Unlike a regular mouse wiggler, this will constantly press Control - so typing while it is active is not recommended. + +The payload was tested on Windows 10. It may be run with seconds specified as a parameter while in SSH (just remove the MATCH). + +*Setup* +1. Connect the Key Croc and place into arming mode +2. Place `keepalive.txt` in the payloads directory +3. Change the `TOTAL_SEC` variable to increase time - default is an hour. +4. Optionally change the MATCH string to a unique passphrase of your choice +5. Eject the Key Croc safely + +The Key Croc is ready for deployment. + +*Deploy* +1. Connect the Key Croc to target in attack configuration +2. Type `__staylive` to start the keep awake routine: it will flash yellow while it is active + +*What’s up with the name SaintCrossbow?* + +Most of it is because it wasn’t taken. Other than that, I’m a big fan of the literary Saint by Leslie Charteris: a vigilante type who very kindly takes on problem people, serves his own justice, and has a great deal of fun doing it. Also, I just can’t help but think that crossbows are cool. + + diff --git a/library/util/KeepAlive/keepalive.txt b/library/util/KeepAlive/keepalive.txt new file mode 100644 index 0000000..94c3b5b --- /dev/null +++ b/library/util/KeepAlive/keepalive.txt @@ -0,0 +1,30 @@ +# Title: Keep the PC from locking - default 1 hour +# When executed from command line without MATCH can specify time +# Author: Saint Crossbow +# Version: 1.0 + +MATCH __staylive +LED ATTACK +if [ $# -eq 0 ] + then + TOTAL_SEC=3600 + echo "Default time of 60 minutes used" + else + echo "Running for total $1 seconds" + TOTAL_SEC=$1 +fi + +echo $TOTAL_SEC + +i=1 +while [ "$i" -le "$TOTAL_SEC" ]; do + echo -n "." + Q CONTROL + sleep 1 + i=$(($i + 1)) +done + +echo +LED FINISH +sleep 1 +LED OFF \ No newline at end of file