nmap / nmap/npcap

Add separate devices to open if only some interface information is desired?

Open
#175 2 comments 0 reactions 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

If the driver supported an additional set of per-adapter devices that:

  • never require administrator access to open;
  • do not support capturing or injecting packets;
  • do support a small set of ioctls, such as BIOCQUERYOID, with either a whitelist of OIDs or a blacklist of OIDs if necessary, and the BIOCGNUMTIMESTAMPMODES and BIOCGTIMESTAMPMODES ioctls proposed in #174;
  • skip all the initialization that change b657dbcf9ef5925c352e1ca39cc23dd475bad7a1 was added to avoid;

that routine could be used to:

  • quickly check whether a given device name exists in the adapter-enumeration code, without having to worry about a UAC prompt popping up;
  • get the list of supported time stamp types without having to worry about a UAC prompt popping up (so that a GUI sniffer could have a combo box for the supported time stamp types);
  • determine the list of supported link-layer types, and whether monitor mode is supported, without having to worry about a UAC prompt popping up (for the same reason).

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 adapter-enumeration code and the initialization changes from commit b657dbcf9ef5925c352e1ca39cc23dd475bad7a. Read issue #174 and inspect the existing BIOCQUERYOID, BIOCGNUMTIMESTAMPMODES, and BIOCGTIMESTAMPMODES ioctl handling. Done means a separate per-adapter device can be opened without administrator access, exposes only the requested interface information, and cannot capture or inject packets.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.