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

Aorps/bulk scan testing #233

Closed
wants to merge 9 commits into from
Closed

Aorps/bulk scan testing #233

wants to merge 9 commits into from

Conversation

AOrps
Copy link
Contributor

@AOrps AOrps commented Sep 7, 2023

  • Bulk Scan Script

@Cyber-JiuJiteria
Copy link
Contributor

@AOrps Could you add comments above each method to describe what the input and output of each should be? If a new person were to use your bash script, what should they know?

@AOrps
Copy link
Contributor Author

AOrps commented Sep 11, 2023

I refactored the code so ./bulk-scan-poc.sh -h could have more information into usage (with examples too)!

Would look something like this:

    ./bulk-scan-poc.sh - Bulk Scan Script for Analyzer                                            

OPTIONS: -[p|q|d|e|h]

  - p: Package Manager - Select Package Manager
  - q: seQuence - Choose awk sequence
  - d: Dry-run - See which packages you are going to bulk-scan before doing it
  - e: Env file - Pass in .env file
  - h: Help - Show Usage of Program

EXAMPLES:

$ ./bulk-scan-poc.sh -e .env
- Runs bulk-scan script with .env in local directory

$ ./bulk-scan-poc.sh -e .env -q 99
- Runs bulk-scan script at line 99

$ ./bulk-scan-poc.sh -e .env -q 43,60
- Runs bulk-script with custom sequence lines 43 to 60 inclusive

$ ./bulk-scan-poc.sh -d -q 34,45
- Dry-runs (doesn't actually perform a scan), used to check the packages you are going to scan before executing

NOTES:

- Requires '-e "Location of an environment variable"' to perform a scan (easier than running from local)
- Be sure to take 'omega-top10k.csv' with you!

Hope this helps!

@micmarti85 micmarti85 closed this Feb 26, 2024
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

Successfully merging this pull request may close these issues.

3 participants