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 · 4 comments · Fixed by #321
Open

Error installing some tools #318

rrehlert opened this issue Aug 28, 2024 · 4 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

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.

4 participants