Skip to content

Commit

Permalink
add version output in helper
Browse files Browse the repository at this point in the history
  • Loading branch information
zblurx committed Mar 20, 2024
1 parent 11cdf24 commit be3cdcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions certsync/entry.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import argparse
import datetime
import importlib.metadata
import logging
import random
import sys
Expand Down Expand Up @@ -455,8 +456,8 @@ def get_crl(self, ca_name) -> "List[LDAPEntry]":

def main() -> None:
logger.init()

parser = argparse.ArgumentParser(description="Dump NTDS with golden certificates and UnPAC the hash", add_help=True)
version = importlib.metadata.version("certsync")
parser = argparse.ArgumentParser(description=f"Dump NTDS with golden certificates and UnPAC the hash.\nVersion: {version}", add_help=True)
parser.add_argument("-debug", action="store_true", help="Turn DEBUG output ON")
parser.add_argument(
"-outputfile",
Expand Down

0 comments on commit be3cdcf

Please sign in to comment.