Back to main page
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax <mahn.maxwell@gmail.com>2021-11-16 10:12:00 -0500
committerMax <mahn.maxwell@gmail.com>2021-11-16 10:12:00 -0500
commit846876484320ba718520c8f2becef0648e539eb1 (patch)
tree33161d880a1d9353dcfece8869a6dc96b4bf22d1
parent17d88baaa111298f938ddd84ffc423f28ab4dc31 (diff)
add cli arg support
-rw-r--r--main.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.py b/main.py
index ce13568..dfc5581 100644
--- a/main.py
+++ b/main.py
@@ -1,7 +1,12 @@
+import sys
chars = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!@#$%^&*()[]{}\\|-=_+,./<>?;:\'\""
-passwd = input("Put in a password> ")
+global passwd
+try:
+ passwd = sys.argv[1]
+except:
+ passwd = input("Put in a password> ")
guess_pass_index = [0 for i in range(len(passwd))]