Skip to content

Automating the "monitoring" part of gitGraber#14

Merged
rmarot merged 5 commits into
hisxo:masterfrom
Abss0x7tbh:master
Oct 2, 2019
Merged

Automating the "monitoring" part of gitGraber#14
rmarot merged 5 commits into
hisxo:masterfrom
Abss0x7tbh:master

Conversation

@Abss0x7tbh

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

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

@rmarot

rmarot commented Oct 2, 2019

Copy link
Copy Markdown
Collaborator

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

rmarot commented Oct 2, 2019

Copy link
Copy Markdown
Collaborator

Thanks again @Abss0x7tbh !

@Abss0x7tbh

Abss0x7tbh commented Oct 2, 2019

Copy link
Copy Markdown
Contributor Author

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.

2 participants