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

Closes #6 - Output grepable support #71

Merged
merged 5 commits into from
Oct 11, 2017
Merged

Conversation

codingo
Copy link
Owner

@codingo codingo commented Oct 10, 2017

This adds output grepable. I'm still unsure of its utility since likely matches isn't easy to display in this format, open to suggestions?

At present I'm just writing out:

    def output_grepable_detail(self):
        for host in self.scanner.hosts:
            output += "\n{}\t{}\t{}".format(
                str(host.hostname),
                str(host.response_code),
                str(host.hash)
            )

        return output

Likely has some use, but merits further thought. We could merge this for now and amend as better use cases for it become more known.

Copy link
Collaborator

@timkent timkent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but haven't done test run

@timkent timkent merged commit 36684c7 into master Oct 11, 2017
@codingo codingo deleted the codingo-output-grepable branch October 11, 2017 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants