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

Add command line option to load different query files #6

Closed
awsrossw opened this issue Oct 4, 2023 · 1 comment
Closed

Add command line option to load different query files #6

awsrossw opened this issue Oct 4, 2023 · 1 comment
Assignees

Comments

@awsrossw
Copy link

awsrossw commented Oct 4, 2023

Pull out the static definition of the queries.yaml (leave as the default for ease of use) and make it a command line option

parser.add_argument(
    "-f",
    "--queryfile",
    type=str,
    help="[+]  File containing queries that you want Invictus-aws to run."
)


    try:
        with open('source/files/queries.yaml') as f:
            queries = yaml.safe_load(f)
    except Exception as e:
        print(f"[!] Error : {str(e)}")
@benjamin-glz
Copy link
Collaborator

Feature added, will be available by the end of the month on the main branch.
Thank you for the proposal !

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