mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
committed by
Sebastian Kinne
parent
4ce2b50cb2
commit
bfbb8afe43
20
payloads/library/dryClean/README.md
Normal file
20
payloads/library/dryClean/README.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# dryClean
|
||||||
|
|
||||||
|
* Author: ricky5ive
|
||||||
|
* Version: Version 1.0
|
||||||
|
* Target: N/A
|
||||||
|
* Category: CYA
|
||||||
|
* Attackmodes: N/A
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
Removes loot directory along with contents. Will remove ANY loot directory located on the BashBunny
|
||||||
|
|
||||||
|
## STATUS
|
||||||
|
|
||||||
|
| LED | Status |
|
||||||
|
| ------------------- | -------------------------------------- |
|
||||||
|
| White (fast blink) | Running |
|
||||||
|
| Red (fast blink) | Failed to remove loot directory |
|
||||||
|
| Green | Finished |
|
||||||
|
| | |
|
||||||
35
payloads/library/dryClean/payload.txt
Normal file
35
payloads/library/dryClean/payload.txt
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Title: dryClean for Bash Bunny
|
||||||
|
# Author: ricky5ive
|
||||||
|
# Version: 1.0
|
||||||
|
#
|
||||||
|
# deletes files in the */loot folder/s
|
||||||
|
#
|
||||||
|
# White Blinking ........... Running
|
||||||
|
# Red ...................... Failed to wipe files
|
||||||
|
# Green .................... Done
|
||||||
|
#
|
||||||
|
#
|
||||||
|
LED R G B 100
|
||||||
|
|
||||||
|
# Create directory to mount the mass storage partition to
|
||||||
|
if [ ! -d /mnt/hotbuns]; then
|
||||||
|
mkdir /mnt/hotbuns
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Mount mass storage partition
|
||||||
|
mount /dev/nandf /mnt/hotbuns
|
||||||
|
|
||||||
|
# Find all loot folders
|
||||||
|
# Delete all the loot folders and their contents
|
||||||
|
for i in `find / -name loot`; do
|
||||||
|
rm -rf $i
|
||||||
|
done
|
||||||
|
|
||||||
|
# Check to make sure loot folders are gone *blink RED == failed to remove*
|
||||||
|
if [ "`find / -name loot | wc -l`" -gt "0" ] ; then
|
||||||
|
LED R 100
|
||||||
|
else
|
||||||
|
LED G
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user