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

Need a fully "offline" version of GB #10

Open
veggiespam opened this issue Jan 25, 2016 · 3 comments
Open

Need a fully "offline" version of GB #10

veggiespam opened this issue Jan 25, 2016 · 3 comments

Comments

@veggiespam
Copy link
Contributor

GB does not have a fully offline mode. You need to install the requests library even if you are not using the product on a network. You must somehow make a request to download the rule file. If you have no network access, GB cannot even run.

I suggest a manual bit of instructions for boot-strapping GB. I'm not sure if removing the 'requests' requirement is worth the trouble, but a simple "how to use with zero network access" would be quite handy.

@foospidy
Copy link
Owner

What if we added the rules file to the etc directory, which would be used if https://grepbugs.com/ can't be reached? It may not be the latest version of the rules at a given point and time, but at least you would be able to run a scan. Also we can update the repo from time to time with the latest rule file.

@veggiespam
Copy link
Contributor Author

Or the DB dir from a git clone. But I don't like that as git pull will be in conflict with normal operation for someone with networking enabled.

What about just a detailed set of directions? Download GB and then manually put grepbugs.com/ruleset.json into xyz location? Just be clear and detailed about this. Then, mention to use the command line flag to turn off the download to speed things up.

I'd be fine with that, just need to write and test it.

@foospidy
Copy link
Owner

foospidy commented Feb 3, 2016

That makes sense. Perhaps a command line option to just download the rules file, and an option for scan with local rules file only. And some instructions :)

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