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

Cannot use file for target as namp will fail to resolve #310

Open
zorrobyte opened this issue Sep 23, 2022 · 5 comments
Open

Cannot use file for target as namp will fail to resolve #310

zorrobyte opened this issue Sep 23, 2022 · 5 comments
Assignees

Comments

@zorrobyte
Copy link

Given a list of IPs

12.125.12.5
12.125.12.4
12.125.12.2
12.125.12.87

and command: docker run -v "$(pwd):/data" --net=host -t ullaakut/cameradar -t /data/ips.txt -d -p 554

nmap reports

> [Nmap Warning] Failed to resolve "149.165.246.187
".> [Nmap Warning] Failed to resolve "149.165.246.187
etc...

and only the last IP in the list is actually scanned.

The file is a UTF-8 plaintext file:
image

I'm running docker desktop on Windows with the provided example commands

@vgpastor
Copy link

You try to separate the ips with comma ,

@Ullaakut
Copy link
Owner

Hi @zorrobyte

The target list should indeed be newline-separated, so your file format seems good.

On your host machine, where is the file located? Is it in $(pwd)?
Why iis the error talking about a target at IP 149.165.246.187 even though that one is not in your target file?

@Ullaakut Ullaakut self-assigned this Sep 28, 2022
@zorrobyte
Copy link
Author

Hi @zorrobyte

The target list should indeed be newline-separated, so your file format seems good.

On your host machine, where is the file located? Is it in $(pwd)? Why iis the error talking about a target at IP 149.165.246.187 even though that one is not in your target file?

I was just using pwd to mount the volume containing my file into the container (current dir), it was on my C: root at the time.

149.165.246.187 was just a random IP I changed from my own, so I don't doxx myself.

I'll try comma separating and trying again, will report back in a few days, or sooner

@zorrobyte
Copy link
Author

Replicated @Ullaakut :
image

Adding an additional space doesn't work, nor does adding a comma @vgpastor

This is a plaintext file formatted in UTF-8 I'm running Windows 11 with Docker Desktop in WSL2 mode, I have also tried Hyper-V mode with no change.

Can you attempt repo and share your OS and setup? I can try to replicate using the same.

@zorrobyte zorrobyte changed the title Cannot use file for targer as namp will fail to resolve Cannot use file for target as namp will fail to resolve Sep 29, 2022
@Ullaakut
Copy link
Owner

Ullaakut commented Oct 3, 2022

I've never attempted doing it in Windows, natively or through WSL, so that might be the source of the issue, but I don't see why it would be. I will check that the loader feature didn't get broken but last time I checked it worked fine on Linux and MacOS 🤔

Thanks for the detailed report 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants