codingo / VHostScan

A virtual host scanner that performs reverse lookups, can be used with pivot tools, detect catch-all scenarios, work around wildcards, aliases and dynamic default pages.
GNU General Public License v3.0
1.19k stars 231 forks source link

Closes #6 - Output grepable support #71

Closed codingo closed 6 years ago

codingo commented 6 years ago

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.