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
3.92k stars 615 forks source link

Using axiom-scan for single target #705

Closed cyb3rsalih closed 1 year ago

cyb3rsalih commented 1 year ago

Hi! I want to use my custom module but getting a little problem.

My script gets 2 parameters ex: script.sh --payloads payloads.txt --target github.com

I want to split only the payload list. So I crafted my module like this

command": "/home/op/myscript.sh --payloads _wordlist_ --target input |tee -a output

I want to use it like this

axiom-scan target.com -m myscript -wD payloads.txt -o results.txt

But axiom-scan wants a file as an input.

My question is Should I edit my script to get the target parameter from stdin or is there any option to handle this in axiom.

Thanks.

0xtavian commented 1 year ago

@cyb3rsalih you are very close! Try this

command": "/home/op/myscript.sh --payloads input --target github.com | tee -a output"

axiom-scan payloads.txt -m module

If you want to also supply a list of targets this won’t work. You’ll have to use a one-shot module.

Lmk.

cyb3rsalih commented 1 year ago

Thanks 🚀 By the way, Am I have to edit module each time for each target?

0xtavian commented 1 year ago

@cyb3rsalih

command": "/home/op/myscript.sh --payloads input   | tee -a output"

axiom-scan payloads.txt -m module —target GitHub.com

this should work. :)