bugfix server hasher
This commit is contained in:
parent
4161fe9021
commit
6fe9ba59a7
|
@ -73,16 +73,16 @@ if __name__ == "__main__":
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="The overwrought server. Use gunicorn to start."
|
description="The overwrought server. Use gunicorn to start."
|
||||||
)
|
)
|
||||||
parse.add_argument(
|
parser.add_argument(
|
||||||
'action',
|
'action',
|
||||||
choices=['hash'],
|
choices=['hash'],
|
||||||
help="What action to perform.",
|
help="What action to perform.",
|
||||||
)
|
)
|
||||||
parse.add_argument(
|
parser.add_argument(
|
||||||
'target',
|
'target',
|
||||||
help="The target to perform the action on."
|
help="The target to perform the action on."
|
||||||
)
|
)
|
||||||
args.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
if args.action == "hash":
|
if args.action == "hash":
|
||||||
pw_hash = generate_hash(args.target)
|
pw_hash = generate_hash(args.target)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user