diff options
| author | Max <mahn.maxwell@gmail.com> | 2021-11-16 10:12:00 -0500 |
|---|---|---|
| committer | Max <mahn.maxwell@gmail.com> | 2021-11-16 10:12:00 -0500 |
| commit | 846876484320ba718520c8f2becef0648e539eb1 (patch) | |
| tree | 33161d880a1d9353dcfece8869a6dc96b4bf22d1 /main.py | |
| parent | 17d88baaa111298f938ddd84ffc423f28ab4dc31 (diff) | |
add cli arg support
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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))] |
