projectdiscovery / pdtm

ProjectDiscovery's Open Source Tool Manager
https://projectdiscovery.io
MIT License
714 stars 51 forks source link

Not showing installed tools #195

Closed xvapourx closed 11 months ago

xvapourx commented 1 year ago

pdtm version:

0.0.8

Current Behavior:

Steps To Reproduce:

  1. Run pdtm
  2. See the list of tools and its status.

image

dogancanbakir commented 1 year ago

@tmgbiswadp, Thank you for letting us know. I tried to reproduce the problem according to your description but couldn't.

$ go run pdtm.go -i katana

                ____
     ____  ____/ / /_____ ___
    / __ \/ __  / __/ __ __  \
   / /_/ / /_/ / /_/ / / / / /
  / .___/\__,_/\__/_/ /_/ /_/
 /_/

        projectdiscovery.io

[INF] Current pdtm version v0.0.8 (latest)
[INF] Run `source ~/.zshrc` to add /Users/fortytwo/.pdtm/go/bin to $PATH
[INF] installing katana...
[INF] installed katana 1.0.3 (latest)

$ ls ~/.pdtm/go/bin/
katana

$ go run pdtm.go

                ____
     ____  ____/ / /_____ ___
    / __ \/ __  / __/ __ __  \
   / /_/ / /_/ / /_/ / / / / /
  / .___/\__,_/\__/_/ /_/ /_/
 /_/

        projectdiscovery.io

[INF] Current pdtm version v0.0.8 (latest)
[INF] [OS: DARWIN] [ARCH: ARM64] [GO: 1.20.6]
[INF] Path to download project binary: /Users/fortytwo/.pdtm/go/bin
[INF] Path /Users/fortytwo/.pdtm/go/bin configured in environment variable $PATH
1. aix (not installed)
2. alterx (not supported)
3. asnmap (not installed)
4. cdncheck (not installed)
5. chaos-client (not installed)
6. cloudlist (not installed)
7. dnsx (not installed)
8. httpx (not installed)
9. interactsh-client (not installed)
10. interactsh-server (not installed)
11. katana (latest) (1.0.3)
12. mapcidr (not installed)
13. naabu (not installed)
14. notify (not installed)
15. nuclei (not installed)
16. pdtm (not installed)
17. proxify (not installed)
18. shuffledns (not installed)
19. simplehttpserver (not installed)
20. subfinder (not installed)
21. tlsx (not installed)
22. uncover (not installed)

And this is on different env.

$ go run pdtm.go

                ____          
     ____  ____/ / /_____ ___ 
    / __ \/ __  / __/ __ __  \
   / /_/ / /_/ / /_/ / / / / /
  / .___/\__,_/\__/_/ /_/ /_/ 
 /_/                         

                projectdiscovery.io

[INF] Current pdtm version v0.0.8 (latest)
[INF] [OS: LINUX] [ARCH: ARM64] [GO: 1.21.0]
[INF] Path to download project binary: /home/vscode/.pdtm/go/bin
[INF] Path /home/vscode/.pdtm/go/bin configured in environment variable $PATH
1. aix (not installed)
2. alterx (not installed)
3. asnmap (not installed)
4. cdncheck (not installed)
5. chaos-client (not installed)
6. cloudlist (not installed)
7. dnsx (not installed)
8. httpx (not installed)
9. interactsh-client (not installed)
10. interactsh-server (not installed)
11. katana (not installed)
12. mapcidr (not installed)
13. naabu (not supported)
14. notify (not installed)
15. nuclei (latest) (2.9.14)
16. pdtm (not installed)
17. proxify (not installed)
18. shuffledns (not installed)
19. simplehttpserver (not installed)
20. subfinder (latest) (2.6.2)
21. tlsx (not installed)
22. uncover (not installed)

$ ls ~/.pdtm/go/bin
nuclei  subfinder

@ehsandeep, Do I seem to be overlooking something?

xvapourx commented 1 year ago

@dogancanbakir, What might be the cause for this. I haven't changed anything in my installation. Still its only showing nuclei as installed however on using -ua flag it updates all the tools.

Screenshot 2023-09-13 at 23 51 12

Regards

dogancanbakir commented 1 year ago

@tmgbiswadp, pdtm attempts to retrieve the version of each tool and adds it next to the tool name. However, pdtm seems unable to obtain version information for the tools. I hate to ask, but could you try uninstalling and reinstalling it with pdtm one of the tools to see if the issue persists?

xvapourx commented 1 year ago

@dogancanbakir, Did not work. However when I uninstalled and reinstalled nuclei it catches it.

Screenshot 2023-09-15 at 00 45 52
dogancanbakir commented 1 year ago

@tmgbiswadp, Unfortunately, we were unable to replicate the same scenario. However, I have created a new branch to log some information that could assist us in debugging the issue. Could you test this branch and share the log with us? I appreciate your help. Branch: add_log_for_pr_195

Steps to follow:

git clone https://github.com/projectdiscovery/pdtm.git
git checkout add_log_for_pr_195
cd pdtm/cmd/pdtm
go run .
xvapourx commented 1 year ago

@dogancanbakir,

Screenshot 2023-09-30 at 12 45 05 PM Screenshot 2023-09-30 at 12 46 37 PM
xvapourx commented 1 year ago

@dogancanbakir,

Screenshot 2023-09-30 at 1 13 19 PM
dogancanbakir commented 1 year ago

@tmgbiswadp, I appreciate your assistance and patience with this intriguing case. I couldn't locate any attribute on my machine. However, I'm curious to know the outcome if you execute the command /Users/vapour/.pdtm/go/bin/katana --version as this is how we usually obtain the version, and I don't see this in your output. See the lines that contain only cmd run output:.

dogancanbakir commented 11 months ago

Closing this. Feel free to reopen if the issue continues.