nmap / nmap/npcap

Support Npcap in Docker Containers

Open
#570 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
3.6k
Forks
592
PR merge metrics
No merged PRs in 30d

Description

I couldn't able to install silently inside the docker image.
I am using free version of npcap.
nmap-7.92-setup.exe
@hsluoyz Please help on this to capture the packet inside the windows container. We tried tcpdump, winpcap, wireshark inside container but still we are getting issue to capture packets.

` ** (wireshark:1936) 14:10:05.456066 [GLib WARNING] -- Failed to determine console output code page: The system could not find the environment option that was entered.. Falling back to UTF-8
wireshark: Unable to load Npcap or WinPcap (wpcap.dll); you will not be able to
capture packets.

In order to capture packets Npcap or WinPcap must be installed. See

    https://nmap.org/npcap/

for a downloadable version of Npcap and for instructions on how to
install it.`

Dockerfile
`ARG version=ltsc2019
FROM mcr.microsoft.com/windows/servercore:$version

ENV chocolateyUseWindowsCompression false

RUN powershell -Command
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'));
choco feature disable --name showDownloadProgress
COPY tcpdump.exe C:/tcpdump.exe
COPY WinDump.exe C:/WinDump.exe
RUN choco install -y wireshark
RUN choco install -y winpcap
`

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied Dockerfile and the reported wpcap.dll error, then investigate how Npcap installation and packet capture behave in Windows Server Core containers. Done means a reproducible Windows container can install the required capture support and Wireshark or tcpdump can capture packets.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
devops, networking, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.