-
Notifications
You must be signed in to change notification settings - Fork 6
/
ighack.sh
114 lines (102 loc) · 2.79 KB
/
ighack.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#!/bin/bash
clear
echo -e "\033[1;32m"
figlet -f slant "Password Cracker" | lolcat
read -p "¿En qué idioma prefieres comunicarte? Lang (es/en): " lang
case "$lang" in
"es")
clear
echo -e "\033[1;32m"
figlet -f slant "Hackeador de contraseñas" | lolcat
echo ""
echo "¿Cómo quieres generar tu contraseña?
1. Diccionario personalizado
2. Diccionario predeterminado
3. Aleatoriamente"
read -p "Ingresa tu elección: " choice
case "$choice" in
"1")
read -p "Ingresa la ruta del archivo de diccionario personalizado (.txt): " dictionary_file
clear
cd ..
password_file=$dictionary_file
;;
"2")
echo "¿Quieres generar combinaciones con el diccionario predeterminado?"
read -p "Ingresa 's' para Sí o cualquier otra cosa para No: " combinations
if [ "$combinations" == "s" ]; then
clear
cd random-generator
python diccionario.py
cd ..
password_file="Generated/generated.txt"
else
password_file="random-generator/pass.txt"
fi
;;
"3")
clear
cd random-generator
python generador.py
cd ..
password_file="Generated/generated.txt"
;;
*)
echo "Opción inválida. Saliendo del script."
exit 1
;;
esac
;;
"en")
clear
echo -e "\033[1;32m"
figlet -f slant "Password Cracker" | lolcat
echo ""
echo "How do you want to generate your password for hack?
1. Custom dictionary
2. Default dictionary
3. Randomly"
read -p "Enter your choice: " choice
case "$choice" in
"1")
read -p "Enter the path to your custom dictionary file (.txt): " dictionary_file
clear
cd random-generator
python dictionary.py -f $dictionary_file
cd ..
password_file=$dictionary_file
;;
"2")
echo "Do you want to generate combinations with the default dictionary?"
read -p "Enter 'y' for Yes or anything else for No: " combinations
if [ "$combinations" == "y" ]; then
clear
cd random-generator
python dictionary.py
cd ..
password_file="Generated/generated.txt"
else
password_file="random-generator/pass.txt"
fi
;;
"3")
clear
cd random-generator
python generator.py
cd ..
password_file="Generated/generated.txt"
;;
*)
echo "Invalid option. Exiting script."
exit 1
;;
esac
;;
*)
echo "Invalid language. Exiting script."
exit 1
;;
esac
read -p "Please enter Instagram username: " username
echo "Executing"
instagram-py --username $username --password-list $password_file