Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command line flags as another object in JSON output #52

Closed
codingo opened this issue Oct 4, 2017 · 0 comments
Closed

Add command line flags as another object in JSON output #52

codingo opened this issue Oct 4, 2017 · 0 comments

Comments

@codingo
Copy link
Owner

codingo commented Oct 4, 2017

#50 resolves #15 however this output doesn't let you know the command line flags / header information used for the scan like output normal does.

Output normal uses the following code from output helper to do this:

    def generate_header(self):
        output = "VHostScanner Log: {} {}\n".format(time.strftime("%d/%m/%Y"), time.strftime("%H:%M:%S"))
        output += "\tTarget: {}\n\tBase Host: {}\n\tPort: {}".format(self.scanner.target, self.scanner.base_host, self.scanner.port)
        output += "\n\tReal Port {}\n\tIgnore HTTP Codes: {}".format(self.scanner.real_port,self.scanner.ignore_http_codes)
        output += "\n\tIgnore Content Length: {}\n\tWordlist: {}".format(self.scanner.ignore_content_length, self.scanner.wordlist)
        output += "\n\tUnique Depth: {}\n\tSSL: {}\n\t".format(self.scanner.unique_depth, self.scanner.ssl)
        return output

Ideally this would be included within the json file as well (as valid json) without being written to every scan object.

@codingo codingo assigned codingo and unassigned codingo Oct 4, 2017
@codingo codingo closed this as completed in 892c3b8 Oct 4, 2017
codingo added a commit that referenced this issue Oct 4, 2017
Closes #52 - Added command line flags for JSON output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant