Closed gedw99 closed 7 months ago
@gedw99,
SO when a user calls for naabu, we check if its installed and is not, instal it, and then let the original call to naabu through.
We're installing the given tool programmatically if it's already not installed. Is this what you were aiming? See https://github.com/projectdiscovery/pdtm/blob/main/internal/runner/runner.go#L98
Thanks but on a Mac if does not work in that if the naabu is not installed then the call to naabu fails.
I will try this again though. Could be mistaken
Also the code uses go install to do the install I think ? so we could also make it install off the GitHub binaries eventually. A env toggle could then determine what me hanism it uses.
This would however require the binaries to be signed. For Mac that quite easy but needs an Apple developer account.
The reason of course being that not all users have golang installed.
No, it depends on the tool's installation type, if it is binary, it tries binary install, then go install if the binary install is not successful.
go install: https://github.com/projectdiscovery/pdtm/blob/main/internal/runner/runner.go#L106 binary install: https://github.com/projectdiscovery/pdtm/blob/main/internal/runner/runner.go#L113
Thanks. I think we can close this and I can reopen if I need to later
SO when a user calls for naabu, we check if its installed and if not, install it, and then let the original call to naabu through.
The below Makefile works btw, but I was thinking we should codify it into pdtm as golang code.