Giter Site home page Giter Site logo

Comments (6)

bsysop avatar bsysop commented on May 25, 2024 1

Probably execution permission.

chmod +x /usr/local/bin/massdns

from shuffledns.

atikrahman1 avatar atikrahman1 commented on May 25, 2024 1

The problem is actually in massdns. that massdns will not allow you to run massdns without supplying --root argument when you are the root user. Where shuffledns didn't provide the --root argument when calling massdns command in proccess.go

cmd := exec.Command(c.config.MassdnsPath, []string{"-r", c.config.ResolversFile, "-o", "Snl", "-t", "A", c.config.InputFile, "-w", output, "-s", strconv.Itoa(c.config.Threads)}...)

What I did is to solve this problem edit this code and added --root argument end of the command.

cmd := exec.Command(c.config.MassdnsPath, []string{"-r", c.config.ResolversFile, "-o", "Snl", "-t", "A", c.config.InputFile, "-w", output, "-s", strconv.Itoa(c.config.Threads), "--root"}...)

and rebuild the package and copy the binary to GOBIN PATH.

step to solve

  1. Go to /root/go/src/github.com/projectdiscovery/shuffledns/pkg/massdns/process.go

  2. Edit and save the file

  3. cd root/go/src/github.com/projectdiscovery/shuffledns/cmd/shuffledns

  4. go build && cp shuffledns $GOPATH/bin

from shuffledns.

JDRanpariya avatar JDRanpariya commented on May 25, 2024

Ohh my bad I kept full dir in /usr/local/bin and had not used command make to create massdns in massdns/bin/massdns
Now I'm find with this.

from shuffledns.

bsysop avatar bsysop commented on May 25, 2024

=]

from shuffledns.

0xh7ml avatar 0xh7ml commented on May 25, 2024

I'm also facing this problem , any solution please?

from shuffledns.

koyok99 avatar koyok99 commented on May 25, 2024

___ / / __ / / / / / / ___
(
-</ _ / // / / / / -)/ _ / _ (-<
/
////_,//////_/ _,////__/ 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.
[INF] Started generating bruteforce permutation
[INF] Generating permutations took 109.882ยตs
[INF] Creating temporary massdns output file: /tmp/shuffledns278906949/bv4rc3k9a3vshk3ut7jg
[INF] Executing massdns on test.com
[ERR] Could not run massdns: could not execute massdns: could not execute massdns: fork/exec /usr/local/bin/massdns: permission denied
detailed error:
[INF] Finished resolving. Hack the Planet!

i try put permision chmod +x /usr/local/bin/massdns but error

can tou help me i try create make massdns in massdns/bin/massdns

from shuffledns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.