我尝试在windows上手动安装winPcap for GNS3-gui:
- 7zip解压winPcap4.1.3.exe
2。尝试regSrv32.exe的3x dll(例如%systemRoot%sysWow64packet.dll),但错误
- 创建服务(npf.sys) (%systemRoot%system32drivers),但当我检查我的sc查询npf输出:win32_exit_code 1275
所以我的服务NPF停止了&当我试图启动它时出现错误
- 这是正常的,如果我有exitCode 1275当我安装winPcap与GUI,我有0 &所有的工作,但我不想要gui只有cli
所以,有人可以帮助我,请我是新的创建文件*。是啊,也许我忘了什么?
感谢
<#
solution Extract winPcap4.1.3 with 7zip installed
after: put dll 32 bits & 64 bits + npf.sys (64bits)
demo: https://github.com/pc-aide/Windows/blob/master/PowerShell/ARM/gns3_&_loopback/05-06-2022.ps1
#>
$pth_srcX32 = "d:winPcapx32"
$pth_dllX32 = "C:WindowsSysWOW64"
$pth_srcX64 = "d:winPcapx64"
$pth_dllX64 = "C:WindowsSystem32"
$pth_sys = "C:WindowsSystem32drivers"
copy $pth_srcX64packet.dll $pth_dllX64Packet.dll
copy $pth_srcX64npf.sys $pth_sysnpf.sys
copy $pth_srcX32wpcap.dll $pth_dllX32wpcap.dll
copy $pth_srcX32pthreadVC.dll $pth_dllX32pthreadVC.dll
copy $pth_srcX32Packet.dll $pth_dllX32Packet.dll
if (!(Test-Path "C:Program Files (x86)WinPcap")){new-item "C:Program Files (x86)" -Name WinPCap -ItemType Directory}
copy $pth_srcX32rpcapd.exe "C:Program Files (x86)WinPCaprpcapd.exe"
# app & 1st service
sc.exe create rpcapd type= own start= demand binPath= "C:Program Files (x86)WinPCaprpcad.exe" DisplayName= "Remote Package Capture Protocol..."
# driver (*.sys - 2e service)
sc.exe create npf binPath= "system32driversnpf.sys" type= kernel start= auto error= normal tag= no DisplayName= "NetGroup Packet Filter Driver"
sc.exe start npf