mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
Add GET BB_LABEL function and docs (#569)
* Add GET BUNNY_LABEL to get.sh Instead of hardcoding "BashBunny" or whatever new name the Bunny has, attackers can use a GET command. * Add docs for GET HOST_IP & GET BB_LABEL
This commit is contained in:
@@ -26,6 +26,10 @@ function GET() {
|
||||
[[ "${ScanForOS,,}" == *"linux"* ]] && export TARGET_OS='LINUX' && return
|
||||
export TARGET_OS='UNKNOWN'
|
||||
;;
|
||||
"BB_LABEL")
|
||||
export BB_LABEL=$(ls -l /dev/disk/by-label/ | awk '/nandf$/ { print $9 }')
|
||||
;;
|
||||
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user