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

Input file does not exist, please specify one as the first argument... #715

Closed Nishantbhagat57 closed 1 year ago

Nishantbhagat57 commented 1 year ago

I am getting this error when running axiom-scan : Input file does not exist, please specify one as the first argument...

nishant57@v2202304199255227426:~/BB$ axiom-scan /home/op/domain.txt -m puredns-bruteforce -r /home/op/resolvers.txt -wL /home/op/lists/seclists/Discovery/DNS/bitquark-subdomains-top100000.txt -o myresults.txt
              _
  ____ __  __(_)___  ____ ___        ______________ _____
 / __ `/ |/_/ / __ \/ __ `__ \______/ ___/ ___/ __ `/ __ \
/ /_/ />  </ / /_/ / / / / / /_____(__  ) /__/ /_/ / / / /
\__,_/_/|_/_/\____/_/ /_/ /_/     /____/\___/\__,_/_/ /_/

                                    @pry0cc
                                 & @0xtavian

Input file does not exist, please specify one as the first argument... 
axiom-scan provides easy distribution of arbitrary binaries and scripts.
axiom-scan splits user-provided input files (target lists), wordlists and configuration files and uploads them to a unique scan working directory on the remote instance.
axiom-scan combines user-provided command-line arguments with commands in the module and executes the final command on the remote instance.
axiom-scan downloads and merges scan output in a variety of different formats, specified by the extension in the module (dir, txt, csv, xml).
individual scanning operations are executed from a detacted tmux session ($module+$timestamp) inside a unique scan working directory (/home/op/scan/$module+$timestamp) on the remote instances.

Usage:
   axiom-scan inputfile.txt -m ffuf -w /home/op/wordlist-on-remote-instance
   axiom-scan inputfile.txt -m ffuf -wL /home/localuser/local-wordlist-to-upload
   axiom-scan inputfile.txt -m ffuf -wD /home/localuser/local-wordlist-to-split-and-upload
   axiom-scan inputfile.txt -m nuclei -w /home/op/nuclei-templates-on-remote-instances -o outputfile.txt
   axiom-scan inputfile.txt -m nuclei --nuclei-templates /home/localuser/local-custom-nuclei-template-folder-to-upload/ -o outputfile.txt
   axiom-scan inputfile.txt -m nuclei --local-config /home/localuser/local-custom-nuclei-config-file-to-upload.yaml -anew outputfile.txt
   axiom-scan inputfile.txt -m gowitness -oD screenshots-folder --spinup 10 --rm-when-done
   axiom-scan inputfile.txt -m nmapx -p- -sV -T4 -v --open -oA nampx-scan --spinup 100 --rm-when-done --regions dal13,lon06,fra05,tok05,syd05 

Flags:
INPUT:
   string[]              required positional first argument must always be an input file, this can be a list of URLs, IPs, hostnames, etc
   --dont-shuffle        do not randomize input file before uploading (default is to randomize)
   --dont-split          do not split input file, upload entire input file to every instance (default is to split the input file)

You can see below, the domain.txt file is there:

nishant57@v2202304199255227426:~/BB$ axiom-exec 'cat /home/op/domain.txt'
=====================================================
Interlace v1.9.7    by Michael Skelton (@codingo_)
                    & Sajeeb Lohani (@sml555_)
=====================================================
  0%|                                                                                                                             | 0/3 [00:00<?, ?it/s][15:00:33] [THREAD] [ssh -F /home/nishant57/.axiom/tmp/exec/1683896424/sshconfig -o StrictHostKeyChecking=no -o PasswordAuthentication=no bb02 'tmux new -d -s 1683896424 && tmux send-keys -t 1683896424 "bash -i /tmp/exec/1683896424/command  > >(tee -a /tmp/exec/1683896424/stdout.log) 2> >(tee -a /tmp/exec/1683896424/stderr.log >&2) ; touch /tmp/exec/1683896424/bb02" ENTER ' "&& tmux send-keys -t 1683896424 exit ENTER"] Added to Queue 
[15:00:33] [THREAD] [ssh -F /home/nishant57/.axiom/tmp/exec/1683896424/sshconfig -o StrictHostKeyChecking=no -o PasswordAuthentication=no bb01 'tmux new -d -s 1683896424 && tmux send-keys -t 1683896424 "bash -i /tmp/exec/1683896424/command  > >(tee -a /tmp/exec/1683896424/stdout.log) 2> >(tee -a /tmp/exec/1683896424/stderr.log >&2) ; touch /tmp/exec/1683896424/bb01" ENTER ' "&& tmux send-keys -t 1683896424 exit ENTER"] Added to Queue 
[15:00:33] [THREAD] [ssh -F /home/nishant57/.axiom/tmp/exec/1683896424/sshconfig -o StrictHostKeyChecking=no -o PasswordAuthentication=no bb03 'tmux new -d -s 1683896424 && tmux send-keys -t 1683896424 "bash -i /tmp/exec/1683896424/command  > >(tee -a /tmp/exec/1683896424/stdout.log) 2> >(tee -a /tmp/exec/1683896424/stderr.log >&2) ; touch /tmp/exec/1683896424/bb03" ENTER ' "&& tmux send-keys -t 1683896424 exit ENTER"] Added to Queue 
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00,  8.91it/s]
tesla.com
tesla.com
tesla.com
nishant57@v2202304199255227426:~/BB$ 
Nishantbhagat57 commented 1 year ago

Okay, So I got the command wrong. The domian.txt file needs to be in my local machine, not in the axiom instances.