Skip to content

Commit

Permalink
Document --debug for all top-level scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
hlein committed Feb 10, 2016
1 parent cd43e08 commit a11f9df
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dscomputers.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def usage():
sys.stderr.write("\n --csvoutfile <name of the CSV output file>")
sys.stderr.write("\n The filename of the csv file to which ntdsxtract should write the")
sys.stderr.write("\n output")
sys.stderr.write("\n --debug")
sys.stderr.write("\n Turn on detailed error messages and stack trace")
sys.stderr.write("\n")
sys.stderr.flush()

Expand Down
2 changes: 2 additions & 0 deletions dsdeletedobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
sys.stderr.write("\n written to this file")
sys.stderr.write("\n --useIsDeleted")
sys.stderr.write("\n Extract deleted objects based on the IsDeleted flag")
sys.stderr.write("\n --debug")
sys.stderr.write("\n Turn on detailed error messages and stack trace")
sys.stderr.write("\n\nFields of the main output")
sys.stderr.write("\n Rec. ID|Cr. time|Mod. time|Obj. name|Orig. container name\n")
sys.stderr.flush()
Expand Down
3 changes: 3 additions & 0 deletions dsfileinformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
sys.stderr.write("\nDSFileInformation v" + str(ntds.version.version))
sys.stderr.write("\nExtracts information related to the NTDS.DIT database file")
sys.stderr.write("\n\nusage: %s <ntds.dit>\n" % sys.argv[0])
sys.stderr.write("\n\n options:")
sys.stderr.write("\n --debug")
sys.stderr.write("\n Turn on detailed error messages and stack trace")
sys.exit(1)

sys.stderr.write("\n[+] Started at: %s" % time.strftime(
Expand Down
2 changes: 2 additions & 0 deletions dsgroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def usage():
sys.stderr.write("\n --csvoutfile <name of the CSV output file>")
sys.stderr.write("\n The filename of the csv file to which ntdsxtract should write the")
sys.stderr.write("\n output")
sys.stderr.write("\n --debug")
sys.stderr.write("\n Turn on detailed error messages and stack trace")
sys.stderr.write("\n")
sys.stderr.flush()

Expand Down
3 changes: 3 additions & 0 deletions dskeytab.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def usage():
sys.stderr.write("\nDSKeytab v" + str(ntds.version.version))
sys.stderr.write("\nGenerate keytab file")
sys.stderr.write("\n\nusage: {0} <datatable> <linktable> <system hive> <work directory> <keytab>".format(sys.argv[0]))
sys.stderr.write("\n\n options:")
sys.stderr.write("\n --debug")
sys.stderr.write("\n Turn on detailed error messages and stack trace")
sys.stderr.write("\n")

if len(sys.argv) < 6:
Expand Down
2 changes: 2 additions & 0 deletions dstimeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def usage():
sys.stderr.write("\n --outfile <name of the output file>")
sys.stderr.write("\n The filename of the output file to which ntdsxtract should write the")
sys.stderr.write("\n output")
sys.stderr.write("\n --debug")
sys.stderr.write("\n Turn on detailed error messages and stack trace")
sys.stderr.write("\n\nFields of the default output")
sys.stderr.write("\n Timestamp|Action|Record ID|Obj. name|Obj. type")
sys.stderr.write("\n")
Expand Down
2 changes: 1 addition & 1 deletion dsusers.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def usage():
sys.stderr.write("\n --csvoutfile <name of the CSV output file>")
sys.stderr.write("\n The filename of the csv file to which ntdsxtract should write the")
sys.stderr.write("\n output")
sys.stderr.write("\n --debug <name of the CSV output file>")
sys.stderr.write("\n --debug")
sys.stderr.write("\n Turn on detailed error messages and stack trace")
sys.stderr.write("\n")

Expand Down

0 comments on commit a11f9df

Please sign in to comment.