carnal0wnage / weirdAAL

WeirdAAL (AWS Attack Library)
772 stars 92 forks source link

Perform Credential Check Changes #65

Open cktricky opened 5 years ago

cktricky commented 5 years ago

The credential check ideally only occurs if you are actually doing something meaning, working with a module. So that's the first change - moving that logic into the if (args.module) section.

Secondly, we need to determine if the module being called is for AWS or for GCP and then perform the relevant credential check. This is because we have no reason to perform an AWS credential check if we're using a GCP module and vice versa.