Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing some tools #318

Open
rrehlert opened this issue Aug 28, 2024 · 12 comments · Fixed by #321
Open

Error installing some tools #318

rrehlert opened this issue Aug 28, 2024 · 12 comments · Fixed by #321
Assignees
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@rrehlert
Copy link

Hello, I am having some trouble installing some tools with PDTM.
I use it for a while, but I am changing my workstation and when installing the tools in a new installation of kali I am getting some error, I encountered it while installing katana and naabu

pdtm version:

0.0.9

Current Behavior:

PDTM gives an error while installing some dependencies for those tools

Expected Behavior:

Installation to be successful, which was for other tools such as subfinder, nuclei, dnsx, ...

Steps To Reproduce:

  1. Run pdtm -i naabu or pdtm -i katana

Anything else:

image

image

@rrehlert rrehlert added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Aug 28, 2024
@dogancanbakir dogancanbakir self-assigned this Aug 28, 2024
@dogancanbakir dogancanbakir linked a pull request Sep 2, 2024 that will close this issue
@Mzack9999 Mzack9999 added the Status: Completed Nothing further to be done with this issue. Awaiting to be closed. label Sep 2, 2024
@rrehlert
Copy link
Author

rrehlert commented Sep 2, 2024

Installing libcap as in #321 fixes the issue, the added printreqs will help a lot in future cases.
Just noticed that while installing naabu the Segmentation Fault is still there, it installed successfully and worked fine, but I don't know what it could be about. I thought of mentioning it here just in case.
image

@dogancanbakir
Copy link
Member

@rrehlert I'm not sure about this. After the installation, are you able to run naabu?

@rrehlert
Copy link
Author

@dogancanbakir Sry for the delay, but yes, I'm running it just fine, maybe it is something with my OS idk

@sto-ic
Copy link

sto-ic commented Sep 12, 2024

Installing libpcap-dev fixes the issue, yes, but when trying to install all tools with -ia the SEGFAULT is still present.

Running

strace /home/anon/go/bin/pdtm -bp /home/anon/go/bin -ia | tee strace_pdtm

There seems to be a EPERM (Operation not permitted) when trying to write ....../.config/pdtm/cache.json

openat(AT_FDCWD, "/home/anon/.config/pdtm/cache.json", O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0777) = 14
fcntl(14, F_GETFL)                      = 0x8001 (flags O_WRONLY|O_LARGEFILE)
fcntl(14, F_SETFL, O_WRONLY|O_NONBLOCK|O_LARGEFILE) = 0
epoll_ctl(4, EPOLL_CTL_ADD, 14, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=2737832089, u64=8198028913561043097}}) = -1 EPERM (Operation not permitted)

Why not statically link libpcap, see: google/gopacket#734

@Sh4d0wHunt3rX
Copy link

Sh4d0wHunt3rX commented Feb 18, 2025

It seems pdtm is not installing all the tools. @dogancanbakir

Image

Image

Image

@dogancanbakir
Copy link
Member

Could you retry?

@Sh4d0wHunt3rX
Copy link

@dogancanbakir I retried but didn't install. It was on a fresh server Ubuntu 24 , however, I could install projects individually.

@dogancanbakir
Copy link
Member

I've just removed all with -ra and installed it again with -ia and it worked:

$ pdtm -ra

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

		projectdiscovery.io

[INF] Current pdtm version v0.0.9 (latest)
[INF] removing aix...
....



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

		projectdiscovery.io

[INF] Current pdtm version v0.0.9 (latest)
[INF] installing aix...
[INF] installed aix 0.0.5 (latest)
[INF] installing alterx...
[INF] installed alterx 0.0.4 (latest)
[INF] installing asnmap...
[INF] installed asnmap 1.1.1 (latest)
[INF] installing cdncheck...
[INF] installed cdncheck 1.1.6 (latest)
[INF] installing chaos-client...
[INF] installed chaos-client 0.5.2 (latest)
[INF] installing cloudlist...
[INF] installed cloudlist 1.2.0 (latest)
[INF] installing cvemap...
[INF] installed cvemap 0.0.7 (latest)
[INF] installing dnsx...
[INF] installed dnsx 1.2.2 (latest)
[INF] installing httpx...
[INF] installed httpx 1.6.10 (latest)
...

@Sh4d0wHunt3rX
Copy link

@dogancanbakir The projects you wrote here will be installed properly, however, not these ones, did these install too?

Image

@Sh4d0wHunt3rX
Copy link

After Naabu, I got "Segmentation Fault" which seems prevent other projects to be installed.

@Sh4d0wHunt3rX
Copy link

It seems this happens if some dependencies not installed, previous test was on a server that just Go installed, but I tried on another server with all necessary dependencies and there was no problem.

@dogancanbakir
Copy link
Member

dogancanbakir commented Feb 19, 2025

Here’s the output I got. I didn't include the entire result because it was lengthy, so this is what I have:

$ pdtm -ia

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

		projectdiscovery.io

[INF] Current pdtm version v0.0.9 (latest)
[INF] installing aix...
[INF] installed aix 0.0.5 (latest)
[INF] installing alterx...
[INF] installed alterx 0.0.4 (latest)
[INF] installing asnmap...
[INF] installed asnmap 1.1.1 (latest)
[INF] installing cdncheck...
[INF] installed cdncheck 1.1.6 (latest)
[INF] installing chaos-client...
[INF] installed chaos-client 0.5.2 (latest)
[INF] installing cloudlist...
[INF] installed cloudlist 1.2.0 (latest)
[INF] installing cvemap...
[INF] installed cvemap 0.0.7 (latest)
[INF] installing dnsx...
[INF] installed dnsx 1.2.2 (latest)
[INF] installing httpx...
[INF] installed httpx 1.6.10 (latest)
[INF] installing interactsh-client...
[INF] installed interactsh-client 1.2.3 (latest)
[INF] installing interactsh-server...
[INF] installed interactsh-server 1.2.3 (latest)
[INF] installing katana with go install...
[INF] installed katana 1.1.2 (latest)
[INF] installing mapcidr...
[INF] installed mapcidr 1.1.34 (latest)
[INF] installing naabu with go install...
[INF] installed naabu 2.3.4 (latest)
[INF] naabu requirements:
optional To install nmap on macOS, visit https://nmap.org/download.html and follow the instructions for macOS.
Note: nmap is not required for naabu, so you can skip this step if you don't need it.

[INF] installing notify...
[INF] installed notify 1.0.7 (latest)
[INF] installing nuclei...
[INF] installed nuclei 3.3.9 (latest)
[INF] installing pdtm...
[INF] installed pdtm 0.0.9 (latest)
[INF] installing proxify...
[INF] installed proxify 0.0.15 (latest)
[INF] installing shuffledns...
[INF] installed shuffledns 1.1.0 (latest)
[INF] shuffledns requirements:
required shuffledns requires massdns to be installed in order to perform its operations. You can see the installation instructions at https://github.com/blechschmidt/massdns#compilation. If you place the binary in /usr/bin/massdns or /usr/local/bin/massdns, the tool will auto-detect the presence of the binary and use it.
[INF] installing simplehttpserver...
[INF] installed simplehttpserver 0.0.6 (latest)
[INF] installing subfinder...
[INF] installed subfinder 2.6.8 (latest)
[INF] installing tldfinder...
[INF] installed tldfinder 0.0.2 (latest)
[INF] installing tlsx...
[INF] installed tlsx 1.1.9 (latest)
[INF] installing tunnelx...
[INF] installed tunnelx 0.0.1 (latest)
[INF] installing uncover...
[INF] installed uncover 1.0.10 (latest)
[INF] installing urlfinder...
[INF] installed urlfinder 0.0.2 (latest)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants