AttackSurfaceAnalyzer icon indicating copy to clipboard operation
AttackSurfaceAnalyzer copied to clipboard

Network Monitor

Open gfs opened this issue 5 years ago • 7 comments

Monitor Network Traffic. See https://github.com/chmorgan/sharppcap

On Windows this requires the user to install npcap separately.

gfs avatar Apr 29 '20 18:04 gfs

Potentially look at parsing pcap files instead: https://github.com/ryrychj/PcapngUtils

gfs avatar Jun 30 '20 19:06 gfs

@gfs What do you think about the npcap dependency being loaded into a .NET assembly? The install could do a check of the OS and check if the user is running Windows and do the install on application load.

ghost avatar Jul 30 '22 12:07 ghost

I did look into this before and unfortunately I don’t think it’s feasible to automatically install npcap for the user for two reasons.

Disclaimer: I’m not a lawyer, this isn’t legal advice.

  1. The license does not allow redistribution.

https://github.com/nmap/npcap/blob/master/LICENSE

  1. Even if downloading the installer from the official location and running the it for the user wasn’t considered redistribution, I’m not aware of a silent installer for npcap other than for those who purchase a license for redistribution - as I recall the installer for the publicly available/freenpcap has a click wrap license the user must accept.

I think the best we could potentially do while complying with the license is to offer users a link to the download.

gfs avatar Jul 30 '22 15:07 gfs

It looks like sharppcap now supports windivert which is GPL licensed. It might be possible to go this route instead.

https://github.com/basil00/Divert

gfs avatar Aug 03 '22 03:08 gfs

windivert is distributed via GitHub releases of zips that contain the exe. I think this would be relatively easy to implement a mechanism to prompt the user to download windivert if it's not present.

gfs avatar Aug 03 '22 04:08 gfs

@gfs will have to look into it sometime apologize I work and I've been exploring other projects that I'd like to contribute to.

ghost avatar Aug 07 '22 10:08 ghost

@mtmulch1 no need to apologize. Thanks for your feedback and showing there's interest in this feature. There were mostly intended as notes for myself.

gfs avatar Aug 08 '22 18:08 gfs