pry0cc / axiom

The dynamic infrastructure framework for everybody! Distribute the workload of many different scanning tools with ease, including nmap, ffuf, masscan, nuclei, meg and many more!
MIT License
4k stars 622 forks source link

Can't change instance type when using AWS #683

Closed vitorfhc closed 1 year ago

vitorfhc commented 1 year ago

Hi, I changed the instance type in my axiom.json config today, but the changes didn't affect the results.

I think this is the culprit:

https://github.com/pry0cc/axiom/blob/431fe613e2b8135c98406bcaeb704df4e20a0421/providers/aws-functions.sh#L321

We are passing the --instance-type with an empty value, which means it will use the type used to build the AMI. It's only possible to change it later by rebuilding the image.

Can we get the type from the config and use it?

0xtavian commented 1 year ago

@vitorfhc yes you are correct! Good catch. We need to take the instance-type from the axiom.json

vitorfhc commented 1 year ago

@vitorfhc yes you are correct! Good catch. We need to take the instance-type from the axiom.json

@0xtavian nice, I'll open a PR soon, can I get assigned to the issue?