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.99k stars 619 forks source link

axiom-scan "No such file or directory" #153

Closed michael1026 closed 3 years ago

michael1026 commented 3 years ago

Hello, when running axiom-scan, once finished, I get the following output...

Files downloaded...
Mode set to directory... Merging directories...
cp: cannot stat '/home/michael/.axiom/tmp/1606788262/output/*/*': No such file or directory
mv: cannot stat '/home/michael/.axiom/tmp/1606788262/merge/output': No such file or directory

I'm using bash, so cp * and mv * should work. I'm confused as to why they aren't and have been looking for solutions to this.

0xtavian commented 3 years ago

@michael1026 Can you paste the command and full output? Also, make sure you're using the most recent version of axiom-scan, run axiom-update https://github.com/pry0cc/axiom/blob/master/interact/axiom-scan

michael1026 commented 3 years ago

Thanks! Just realized there were changes to axiom-scan yesterday. I think that fixed the issue. I'm pretty new to using axiom-scan, as I typically use custom scripts using axiom-exec, so I have a question. I'm running shuffledns through axiom-scan example.txt -d example.com -m shuffledns -o output. This is a pretty small subdomain list, so it should finish within seconds, but this is what I am currently seeing...

Selecting module 'shuffledns'
Starting axiom-scan using instances: [ example01 example02 example03 ]
Command: [ zsh -c '/home/op/go/bin/shuffledns -r lists/resolvers.txt -list input   -d example.com >  output'] | Ext: [txt]
Cleaning up fleet...
  0%|                                                                                                                                    | 0/3 [00:00<?, ?it/s]Generated 3 commands in total
Repeat set to 1
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:01<00:00,  2.87it/s]
Uploading input files to fleet...
  0%|                                                                                                                                    | 0/3 [00:00<?, ?it/s]Generated 3 commands in total
Repeat set to 1
100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:01<00:00,  2.64it/s]
Files uploaded...

Running jobs against specified targets...
  0%|                                                                                                                                    | 0/3 [00:00<?, ?it/s]
       __        ________        __       
  ___ / /  __ __/ _/ _/ /__  ___/ /__ ___
 (_-</ _ \/ // / _/ _/ / -_)/ _  / _ \(_-<
/___/_//_/\_,_/_//_//_/\__/ \_,_/_//_/___/ v1                               

        projectdiscovery.io

[WRN] Use with caution. You are responsible for your actions
[WRN] Developers assume no liability and are not responsible for any misuse or damage.

       __        ________        __       
  ___ / /  __ __/ _/ _/ /__  ___/ /__ ___
 (_-</ _ \/ // / _/ _/ / -_)/ _  / _ \(_-<
/___/_//_/\_,_/_//_//_/\__/ \_,_/_//_/___/ v1                               

        projectdiscovery.io

[WRN] Use with caution. You are responsible for your actions
[WRN] Developers assume no liability and are not responsible for any misuse or damage.

       __        ________        __       
  ___ / /  __ __/ _/ _/ /__  ___/ /__ ___
 (_-</ _ \/ // / _/ _/ / -_)/ _  / _ \(_-<
/___/_//_/\_,_/_//_//_/\__/ \_,_/_//_/___/ v1                               

        projectdiscovery.io

[WRN] Use with caution. You are responsible for your actions
[WRN] Developers assume no liability and are not responsible for any misuse or damage.

I see what appears to be a progress bar, but it isn't changing. And the job isn't finished, though I feel like it should be.

Note: I just got two other axiom-scan modules working. ffuf and a custom one. So I think it may be specifically with the shuffledns module.

pry0cc commented 3 years ago

It's shuffledns. I don't know why, but it does hang, I noticed that too.

I asked pdiscovery but nobody seems to know why? It seems to be a bug about launching shuffledns inside SSH.

In the meantime, massdns works, as does dnsx. So, sorry 😀 I don't know why. If somebody can find a workaround, I'll be super happy 😁

michael1026 commented 3 years ago

Got it. Thanks for the info. I'll let you know if I find a solution :)