nmap run slower in docker
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 13.6k
- Forks
- 2.9k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the current behavior
A clear and concise description of what the bug or current behavior is.
hello ,I use follow code to scan an ip
import nmap
nm = nmap.PortScanner(nmap_search_path=PortScan.nmap_search_path)
nm.scan(hosts=ip, arguments='-Pn -T 4 -sV --version-intensity=3 -p 1-65535')
when the code run outside docker,it takes a few minute(less than 5 minutes)
but when code run in docker,it takes more than 20 minutes
Expected behavior
Describe what you would like to happen instead.
how can I do to make nmap run in docker takes fewer minute
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file or test is named. Start by reproducing the Python nmap.PortScanner scan with the supplied arguments inside and outside Docker, then compare the runtime and identify what Docker-specific condition accounts for the difference. Done means explaining the slowdown and verifying that the scan completes within the expected few-minute range in Docker.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, docker, python
- Domain
- networking, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100