projectdiscovery / shuffledns

MassDNS wrapper written in go to enumerate valid subdomains using active bruteforce as well as resolve subdomains with wildcard filtering and easy input-output support.
https://projectdiscovery.io
GNU General Public License v3.0
1.32k stars 188 forks source link

MassDNS error could not execute massdns: exit status 1 #7

Closed myuyu closed 4 years ago

myuyu commented 4 years ago

[WRN] Use with caution. You are responsible for your actions [WRN] Developers assume no liability and are not responsible for any misuse or damage. [INF] Started generating bruteforce permutation [INF] Generating permutations took 28.898107ms [INF] Creating temporary massdns output file: /tmp/shuffledns365027544/bpdu67p92jhup178risg [INF] Executing massdns on hackerone.com [ERR] Could not run massdns: could not execute massdns: exit status 1 [INF] Finished resolving. Hack the Planet!

Massdns in : /usr/local/bin/massdns

ehsandeep commented 4 years ago

Hi @MMrhassel,

Can you please share the output of

/usr/local/bin/massdns -h
dd404x commented 4 years ago

image

ehsandeep commented 4 years ago

Hi @dd404x,

Thank you for adding details on this, we will try to find the root cause, meanwhile, can you confirm if manually providing the massdns path works for you?

For example:-

shuffledns -r resolvers.txt -w words.txt -d test.com -massdns /usr/local/massdns
dd404x commented 4 years ago

image no problem with the location of masscan

dd404x commented 4 years ago

My system info:Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-52-generic x86_64) When I use massdns, he always looks idle

dd404x commented 4 years ago

image Except that time is increasing, it has always been this state

I tried massdns0.2 and massdns 0.3

ehsandeep commented 4 years ago

@MMrhassel this should be fixed with https://github.com/projectdiscovery/shuffledns/pull/10, Can you update the shuffledns and try again?

proabiral commented 4 years ago

@bauthard , I am facing the same issue even on the latest shuffledns.

Screenshot from 2020-03-09 11-33-01

ehsandeep commented 4 years ago

@proabiral sure, will ping on this.

Ice3man543 commented 4 years ago

@MMrhassel @proabiral @dd404x can you all please download the latest release. It contains detailed error message in case of failure from massdns, which should help us isolate the problem. Thanks a lot!

proabiral commented 4 years ago

Hi @Ice3man543 @bauthard , Seems like I was getting error as massdns is not being allowed to be run as root user from shuffledns.

Screenshot from 2020-03-10 07-50-22

Switching to other user solved the issue : Screenshot from 2020-03-10 07-50-35

May be a command line switch for shuffledns that helps to run massdns as root would be helpful :)

Thank you so much for such a quick help :)

ehsandeep commented 4 years ago

Thank you for the confirmation @proabiral

ehsandeep commented 4 years ago

Closing this out as we identified that massdns was getting failed due to permission issues and added more detailed error for any other issues.

proabiral commented 4 years ago

@Ice3man543 @bauthard , I can try to send pull request for this if you want. :)

H3ssam13 commented 1 year ago

run shuffledns this error

Could not run massdns: blank input file specified