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

Automating the "monitoring" part of gitGraber #14

Merged
merged 5 commits into from Oct 2, 2019

Conversation

Abss0x7tbh
Copy link
Contributor

@Abss0x7tbh Abss0x7tbh commented Oct 2, 2019

Hey there!

First off, great work on gitGraber!

The README contains the following recommendation -

We recommend creating a cron that will execute the script regulary :

*/15 * * * * cd /BugBounty/gitGraber/ && /usr/bin/python3 gitGraber.py -k wordlists/keywords.txt -q "uber" -s >/dev/null 2>&1

The above cron job will ensure regular execution of the script every 15 mins . This means that the user need not "repeat" the query with the same arguments, in short on adding the above cron job to the crontab the user can monitor the GitHub "query".

The only issue i see here is that this could very easily be automated i.e the user need not always add cron jobs manually for every query of theirs. So i wanted to automate this by giving a choice to the end user.

My PR does 3 simple things -

  • First creates an optional -m flag which stands for monitor.
  • If the -m flag is present then this means that the user wants to monitor their query. So the script will then invoke the monitor() function & create a cron job with the same arguments passed by the user.
  • if there is no -m flag, script runs as usual.

Hope you like the idea.

Thanks!

@Abss0x7tbh
Copy link
Contributor Author

Abss0x7tbh commented Oct 2, 2019

Also i forgot to add that the cron job that will be created will default to every 30 mins.

@rmarot
Copy link
Collaborator

rmarot commented Oct 2, 2019

Hi !

Thanks for your PR. We will have a look at this but it seems to be an interesting feature indeed.

We will let you know soon,

Thanks !

@rmarot rmarot added the enhancement New feature or request label Oct 2, 2019
@rmarot rmarot merged commit 8e032b7 into hisxo:master Oct 2, 2019
@rmarot
Copy link
Collaborator

rmarot commented Oct 2, 2019

Thanks again @Abss0x7tbh !

@Abss0x7tbh
Copy link
Contributor Author

Abss0x7tbh commented Oct 2, 2019

Hey!

Am glad that you liked my idea : )

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants