Error installing some tools
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:
- Run pdtm -i naabu or pdtm -i katana
Anything else:
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.
@rrehlert I'm not sure about this. After the installation, are you able to run naabu?
@dogancanbakir Sry for the delay, but yes, I'm running it just fine, maybe it is something with my OS idk
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: https://github.com/google/gopacket/issues/734
It seems pdtm is not installing all the tools. @dogancanbakir
Could you retry?
@dogancanbakir I retried but didn't install. It was on a fresh server Ubuntu 24 , however, I could install projects individually.
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)
...
@dogancanbakir The projects you wrote here will be installed properly, however, not these ones, did these install too?
After Naabu, I got "Segmentation Fault" which seems prevent other projects to be installed.
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.
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)