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:
rsxchin
2022-12-16 08:58:09 -10:00
committed by GitHub
parent 858bb2df2c
commit d68298eaa3
2 changed files with 9 additions and 1 deletions

View File

@@ -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
}