Coder Social home page Coder Social logo

drcom4scut's People

Contributors

cq01 avatar sealoong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

drcom4scut's Issues

网线拔出后无法触发异常处理,因此无法自动重连

有时候需要离线操作因此需要短暂几秒拔出网线,但是程序并没有捕捉到相应错误(已拔出网线),重新插入网线后也无法自动重连。

但是好像主程序本身是有异常处理的,或许是没有判断网线是否拔出?....

“带网络的安全模式”下无法使用

系统:Windows10 LTSC(1809)

报错如下:

PS C:\Users\redapple\Desktop\drcom4scut-windows> .\drcom4scut.exe
[2021-10-17 20:26:08][INFO][main] Start to run...
thread 'main' panicked at 'Unable to get interface list despite increasing buffer size', C:\Users\SeaLoong\.cargo\registry\src\github.com-1ecc6299db9ec823\pnet_datalink-0.27.2\src\winpcap.rs:349:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Npcap Driver Nonpaged Pool Memory Leak

版本 Version

  • drcom4scut: 0.30
  • Npcap: 1.77

概述 Overview

drcom4scut 建立 EAP 会话后,Npcap 驱动程序缓存的报文不会被释放直至重启,Npcap 驱动程序占用的非分页池容量随网络传输数据量的增加而增加。

After drcom4scut established the EAP session, the frames stored by the Npcap driver will not not be released until reboot, and the nonpaged pool occupied by the Npcap driver increases with the increase of the amount of data transferred over the network.

细节 Detail

drcom4scut 建立 EAP 会话后,进行一些网络传输,随后使用 poolmon.exe -u -p -g pooltag.txt 分析驱动程序内存分配,发现具有 NpCDNpNLNpNBNpPD 标识的驱动程序使用了大量的非分页池。

After drcom4scut established the EAP session, make some network transfers, and then analyze the driver memory allocation using poolmon.exe -u -p -g pooltag.txt and finds that drivers with tags NpCD, NpNL, NpNB, NpPD use a large amount of nonpaged pools.

PoolMon

经查,该驱动程序是 Npcap。

The driver is Npcap.

https://github.com/nmap/npcap/blob/c7acb360ac1e5288379a746cf7691fa2b48e5684/packetWin7/npf/npf/memory_tags.h#L147-L148

测试 Test

应用程序
Application
驱动程序
Library
内存泄漏
Memory Leak
drcom4scut 0.3.0 WinPcap 4.1.3 No
drcom4scut 0.3.0 Npcap 1.71 No
drcom4scut 0.3.0 Npcap 1.72 No
drcom4scut 0.3.0 Npcap 1.73 No
drcom4scut 0.3.0 Npcap 1.74 No
drcom4scut 0.3.0 Npcap 1.75 No
drcom4scut 0.3.0 Npcap 1.76 Yes
drcom4scut 0.3.0 Npcap 1.77 Yes
Wireshark 2.5.1 Npcap 1.77 No
Wireshark 4.0.10 Npcap 1.77 No

这个报错是什么意思

thread 'main' panicked at 'Fail on getting ethernet device!: Os { code: 31, kind: Other, message: "连到系统上的设备没有
发挥作用。" }', src\main.rs:164:55
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

大概意思是没有检测到宽带信号接入?可是实际上宽带接入是正常的

2023/09/19 WSL/Ubuntu均编译不过

如题,出错信息如下:

error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /home/wsl/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.56/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

RustC的版本信息:

rustc 1.74.0-nightly (65ea825f4 2023-09-18)
binary: rustc
commit-hash: 65ea825f4021eaf77f1b25139969712d65b435a4
commit-date: 2023-09-18
host: x86_64-unknown-linux-gnu
release: 1.74.0-nightly
LLVM version: 17.0.0

切到stable和beta都不会卡在那里。但是,另外两个通道不能用#![feature],所以也编译不出来。
如何才能解决呢?

谢谢。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.