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

how to import an nmap xml file #18

Open
xkillbit opened this issue Apr 26, 2022 · 3 comments
Open

how to import an nmap xml file #18

xkillbit opened this issue Apr 26, 2022 · 3 comments

Comments

@xkillbit
Copy link

First I run:

sudo docker run -d --name webmap4 -h webmap -p 8000:8000 -v /tmp/webmap:/opt/xml reborntc/webmap

This would seem to indicate that /tmp/webmap on my host OS will be mounted to /opt/xml inside the docker image. However when I drop an nmap.xml file into /tmp/webmap the docker webapp doesn't load/parse it?

Thoughts?

@Lewiscowles1986
Copy link

Have you tried to docker exec -it webmap4 bash ?

Seems to me like the mount might not have been successful. On OSX and Windows /tmp might not mount at all.

Also, have you tried mapping an individual xml file rather than folder?

@Moustrash
Copy link

Hi, I am having trouble too providing the volume as documented in the example command line, but as I am quite new to docker I do not understand where the problem lies.

However, you can provide your own xml file after running the container by copying it to the correct location using docker cp <path/to/xml> <containerId>:/opt/xml/, where containerId should be "webmap" if you used the --name webmap option.
Then, your file will be in the folder webmap looks for xml files and you should see after refreshing your tab.

This is only a workaround and I am still looking for an explanation as to why the -v /tmp/webmap:/opt/xml does not seem to work, please enlighten us if you have any idea :)

@joe67
Copy link

joe67 commented Nov 26, 2023

Hello, I tried to create a new job with the button "new nmap scan" in the dashboard, I did not receive a confirmation. But I could see the following error message in the log. " No such file or directory: '/opt/nmapdashboard/nmapreport/nmap/schedule/b6aa0b1220180e599e10fd0cf1602a3c.json'"
I then checked the path in the container and found that the directory "schedule" did not exist. After I created it manually and repeated the process, I received a message from the dashboard that a new job had been created.

I don't know if the schedule job is working now, but maybe the information is useful. I'm just surprised that I seem to be the only one with this problem.

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

No branches or pull requests

4 participants