Skip to content

Commit

Permalink
Menu updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ente0v1 committed May 6, 2024
1 parent 828f0cc commit a0178fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 3 additions & 1 deletion crackmaster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ while true; do
fi

# Pause briefly to allow the user to read previous output before clearing the screen
sleep 1
#sleep 1

# If the user selected "Quit", exit the loop
if [[ "$user_option" == [Qq] ]]; then
break
fi
handle_option "$user_option"
echo "User option: $user_option"
done
9 changes: 3 additions & 6 deletions functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ random_color() {

# Function to display the menu
show_title() {
title_color=$(random_color) # Color for the title
option_color="${title_color}" # Use the same color for all options
echo -e "${title_color}"
option_color="${color}" # Use the same color for all options
echo -e "${color}"
cat <<EOF
Expand Down Expand Up @@ -92,8 +91,7 @@ show_windows_menu() {
echo -e "${option_color}2.${NC} Crack with rules (Wordlist + Rules) ${GREEN}[MEDIUM]"
echo -e "${option_color}3.${NC} Crack with brute-force ${YELLOW}[HARD]"
echo -e "${option_color}4.${NC} Crack with combo (Hybrid Wordlist + Mask) ${RED}[ADVANCED]"
echo -e "${option_color}Q.${NC} Quit"
echo -ne "${option_color}\nPress Enter to switch to Windows.${NC}\n"
echo -ne "${option_color}\nPress Enter to switch to Linux.${NC}\n"
echo "--------------------------------"
echo -ne "${option_color}Enter option (1-4, or Q to quit): ${NC}"
}
Expand All @@ -105,7 +103,6 @@ show_linux_menu() {
echo -e "${option_color}2.${NC} Crack with rules (Wordlist + Rules) ${GREEN}[MEDIUM]"
echo -e "${option_color}3.${NC} Crack with brute-force ${YELLOW}[HARD]"
echo -e "${option_color}4.${NC} Crack with combo (Hybrid Wordlist + Mask) ${RED}[ADVANCED]"
echo -e "${option_color}Q.${NC} Quit"
echo -ne "${option_color}\nPress Enter to switch to Windows.${NC}\n"
echo "--------------------------------"
echo -ne "${option_color}Enter option (1-4, or Q to quit): ${NC}"
Expand Down

0 comments on commit a0178fe

Please sign in to comment.