Update Zenmap to consider the -v0 option #626

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

lymanZerga11 commented Dec 26, 2016 edited

Done with reference to #601. Zenmap does not consider the -v0 option as NmapOptions.py simply uses the arg and renders multiple copies of -v as @dmiller-nmap mentioned.

In this fix, self["-v"] has been assigned the value of -1 for the case of -v0 because,

  1. Default value for self["-v"] has been set to 0 (when there is no option "-v" in the command itself).
  2. In render() ,opt_list does not include "-v" if self["-v"] is 0
@lymanZerga11 lymanZerga11 Update Zenmap to consider the -v0 option
Zenmap does not consider the "-v0" option as NmapOptions.py simply uses the argument and renders multiple copies of -v. In this fix, self["-v"] has been assigned the value of -1 for the case of "-v0" because the default value for self["-v"] (when there is no option "-v" in the command itself) has been set to 0.
829bf40

lymanZerga11 reopened this Dec 30, 2016

@lymanZerga11 Thanks for this! I merged it as r36534. Please let me know if you want to be credited under a different name in the CHANGELOG.

Haha nice! No, this should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment