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

Request: "Run additional Script" flags for fleet spinup and removal #661

Open fail-open opened 1 year ago

fail-open commented 1 year ago

Logging this here in case anyone wants to work it before I can. I have scripts that I run when I spin up and tear down fleets that log info to certain places (IP addresses of fleet get pushed to a db for example and updated when I destroy the hosts to say when). My current work around is wrapping the axiom calls in a shell script that parses what I need and calls my logging scripts along with the fleet commands.

This works well enough, but prevents me from using the fleet spin up and rm when finished options in axiom-scan without extra steps. In my usecase having flags/config option to specify scripts to run after fleet creation and fleet removal would be awesome. That way I can add my scripts to auto log whenever a fleet is created either through axiom-fleet or axiom-scan and when they delete and not have to do it manually.