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

No "Location" in report from demo plugin #34

Closed
aiddroid opened this issue Jul 13, 2017 · 1 comment
Closed

No "Location" in report from demo plugin #34

aiddroid opened this issue Jul 13, 2017 · 1 comment

Comments

@aiddroid
Copy link
Contributor

aiddroid commented Jul 13, 2017

I have wrote a demo plugin for backup file checking.This plugin works well for checking backup files, but the text report in console has no "Location" value. I have already checked my code, but found nothing.I'm new to Python from PHP, Pls help!

here is the core code in the plugin's run()

        results = []
        # Check if backup file exists
        for f in self.test_files:
            for backup_ext in self.backup_extensions[:]:
                backup_url = 'http://' + info.hostname + '/' + f + backup_ext
                Logger.log_verbose("Testing %s..." % backup_url)
                response = HTTP.get_url(backup_url, method="HEAD")

                if response.status == "200":
                    Logger.log_verbose("Found backup :%s" % backup_url)
                    results.append(SuspiciousURL(URL(backup_url)))

        return results
@MarioVilas
Copy link
Member

The text report is very limited and in practice only works for trying out the tool a bit. The HTML report format is a lot more complete. There are other formats like ReStructured Text which output the entire database as-is, those formats will definitely contain your Location information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants