Spaces:
Sleeping
Sleeping
enotkrutoy
commited on
Commit
•
b24a33b
1
Parent(s):
b6b30ff
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
|
|
2 |
from components.passbeaker import PasswordCracker
|
3 |
|
4 |
def crack_password(password_hash, wordlist_file, algorithm, salt, parallel, complexity, min_length, max_length, character_set, brute_force):
|
5 |
-
|
6 |
password_hash=password_hash,
|
7 |
wordlist_file=wordlist_file,
|
8 |
algorithm=algorithm,
|
@@ -11,10 +11,10 @@ def crack_password(password_hash, wordlist_file, algorithm, salt, parallel, comp
|
|
11 |
complexity_check=complexity
|
12 |
)
|
13 |
if brute_force:
|
14 |
-
|
15 |
else:
|
16 |
-
|
17 |
-
return
|
18 |
|
19 |
def main():
|
20 |
st.title("GVA Password Cracker")
|
@@ -46,7 +46,7 @@ def main():
|
|
46 |
character_set=character_set,
|
47 |
brute_force=brute_force
|
48 |
)
|
49 |
-
st.success(f"
|
50 |
st.balloons()
|
51 |
|
52 |
if __name__ == "__main__":
|
|
|
2 |
from components.passbeaker import PasswordCracker
|
3 |
|
4 |
def crack_password(password_hash, wordlist_file, algorithm, salt, parallel, complexity, min_length, max_length, character_set, brute_force):
|
5 |
+
cracker = PasswordCracker(
|
6 |
password_hash=password_hash,
|
7 |
wordlist_file=wordlist_file,
|
8 |
algorithm=algorithm,
|
|
|
11 |
complexity_check=complexity
|
12 |
)
|
13 |
if brute_force:
|
14 |
+
cracker.crack_passwords_with_brute_force(min_length, max_length, character_set)
|
15 |
else:
|
16 |
+
cracker.crack_passwords_with_wordlist()
|
17 |
+
return cracker.get_statistics()
|
18 |
|
19 |
def main():
|
20 |
st.title("GVA Password Cracker")
|
|
|
46 |
character_set=character_set,
|
47 |
brute_force=brute_force
|
48 |
)
|
49 |
+
st.success(f"{stats}")
|
50 |
st.balloons()
|
51 |
|
52 |
if __name__ == "__main__":
|