Skip to content

Commit

Permalink
Fixed help message output in case tmap was started with wrong arguments.
Browse files Browse the repository at this point in the history
Parser variable was not existing and it was called in if blocks.
  • Loading branch information
stevavoliajvar committed Nov 7, 2019
1 parent b05c6a1 commit 83bc6a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tmap
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ def parseArgs(parser):
def main():
## Record time of program starting in seconds
startTime = time.time()
args = parseArgs(argparse.ArgumentParser(description="Simple stateful port scanner that works over Tor"))
parser = argparse.ArgumentParser(description="Simple stateful port scanner that works over Tor")
args = parseArgs(parser)

## Version argument
if args.version:
Expand Down

0 comments on commit 83bc6a3

Please sign in to comment.