首页
社区
课程
招聘
[求助]ndis小端口驱动安装
2024-1-18 12:04 1425

[求助]ndis小端口驱动安装

2024-1-18 12:04
1425

图片描述
win7系统安装小端口驱动出现如上错误,显示系统找不到指定文件
inf文件信息如下

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
;-------------------------------------------------------------------------------
; NDISEDGE.INF
;
; Microsoft Sample NDIS-WDM Virtual Miniport Ethernet Adapter
;
; Copyright (c) Microsoft Corporation.  All rights reserved.
 
 
[version]
Signature   = "$Windows NT$"
Class       = Net
ClassGUID   = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider    = %Msft%
DriverVer   = 01/08/2003,1.0.0.0
CatalogFile = KmdfSamples.cat
 
[ControlFlags]
ExcludeFromSelect={b85b7c50-6a01-11d2-b841-00c04fad5171}\Ndisedge
 
[Manufacturer]
%Msft% = Msft,NT$ARCH$
 
; For Win2K
[Msft]
%Ndisedge.DeviceDesc%    = Ndisedge.ndi, root\Ndisedge ; Root enumerated
%Ndisedge.DeviceDesc%    = Ndisedge.ndi, {b85b7c50-6a01-11d2-b841-00c04fad5171}\Ndisedge ; Toaster Bus enumerated
 
; For WinXP and later
[Msft.NT$ARCH$]
%Ndisedge.DeviceDesc%    = Ndisedge.ndi, root\Ndisedge ; Root enumerated
%Ndisedge.DeviceDesc%    = Ndisedge.ndi, {b85b7c50-6a01-11d2-b841-00c04fad5171}\Ndisedge ; Toaster Bus enumerated
 
;-------------------------------------------------------------------------------
; Microsoft Virtual Ethernet Adapter
;
[Ndisedge.ndi]
Characteristics = 0x4 ; NCF_PHYSICAL
BusType         = 15 ; if you specify NCF_PHYSICAL, you must specify bustype
AddReg          = Ndisedge.Reg, ParamsPromiscuous
CopyFiles       = Ndisedge.CopyFiles
 
[Ndisedge.ndi.Services]
AddService      = Ndisedge, 2, Ndisedge.Service, Ndisedge.EventLog
 
;-----------------------------------------------------------------------------
; Microsoft Virtual Miniport Common
;
[Ndisedge.Reg]
HKR,    ,                         BusNumber,           0, "0"
HKR, Ndi,                         Service,             0, "Ndisedge"
HKR, Ndi\Interfaces,              UpperRange,          0, "ndis5"
HKR, Ndi\Interfaces,              LowerRange,          0, "ethernet"
 
[ParamsPromiscuous]
;
;    Should the physical NIC be set to Promiscuous mode
;
HKR, Ndi\Params\Promiscuous,     ParamDesc, , %Promiscuous%
HKR, Ndi\Params\Promiscuous,     Default,  ,"0"
HKR, Ndi\Params\Promiscuous,     type, ,      enum
HKR, Ndi\Params\Promiscuous\enum,"1",  ,     %Promiscuous_Enable%
HKR, Ndi\Params\Promiscuous\enum,"0",  ,     %Promiscuous_Disable%
 
 
;-----------------------------------------------------------------------------
; DestinationDirs
;
[DestinationDirs]
Ndisedge.CopyFiles = 12
 
[Ndisedge.CopyFiles]
Ndisedge.sys,,,2
 
;-----------------------------------------------------------------------------
; Driver and Service Section
;
 
[Ndisedge.Service]
DisplayName     = %Ndisedge.Service.DispName%
ServiceType     = 1 ;%SERVICE_KERNEL_DRIVER%
StartType       = 3 ;%SERVICE_DEMAND_START%
ErrorControl    = 1 ;%SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\ndisedge.sys
LoadOrderGroup  = NDIS
AddReg          = TextModeFlags.Reg
 
[Ndisedge.EventLog]
AddReg = Ndisedge.AddEventLog.Reg
 
[Ndisedge.AddEventLog.Reg]
HKR, , EventMessageFile, 0x00020000, "%%SystemRoot%%\System32\netevent.dll"
HKR, , TypesSupported,   0x00010001, 7
 
[TextModeFlags.Reg]
HKR, , TextModeFlags,    0x00010001, 0x0001
 
[SourceDisksNames]
1 = %DiskId1%,,,""
 
[SourceDisksFiles]
ndisedge.sys  = 1,,
 
;
;--- Ndisedge.ndi WDF Coinstaller installation ------
;
[DestinationDirs]
Ndisedge_CoInstaller_CopyFiles = 11
 
[Ndisedge.ndi.CoInstallers]
AddReg=Ndisedge_CoInstaller_AddReg
CopyFiles=Ndisedge_CoInstaller_CopyFiles
 
[Ndisedge_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller"
 
[Ndisedge_CoInstaller_CopyFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll
 
[SourceDisksFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1 ; make sure the number matches with SourceDisksNames
 
[Ndisedge.ndi.Wdf]
KmdfService = Ndisedge, Ndisedge_wdfsect
[Ndisedge_wdfsect]
KmdfLibraryVersion = $KMDFVERSION$
 
 
 
;-----------------------------------------------------------------------------
; Localizable Strings
;
[Strings]
Msft                       = "Microsoft"
Ndisedge.DeviceDesc        = "Microsoft Sample NDIS-WDM Virtual Miniport Ethernet Adapter"
Ndisedge.Service.DispName    = "Microsoft Sample NDIS-WDM Virtual Miniport Ethernet Adapter Service"
DiskId1 = "Microsoft Sample NDIS-WDM Virtual Miniport Ethernet Adapter Device Installation Disk #1"
Promiscuous        = "Set the physical NIC to promiscuous mode"
Promiscuous_Disable = "Disable"
Promiscuous_Enable  = "Enable"

不知道是哪里错了,求大佬告知


[培训]二进制漏洞攻防(第3期);满10人开班;模糊测试与工具使用二次开发;网络协议漏洞挖掘;Linux内核漏洞挖掘与利用;AOSP漏洞挖掘与利用;代码审计。

收藏
点赞0
打赏
分享
最新回复 (2)
雪    币: 10
活跃值: (1072)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
Whoami默 2024-1-18 12:06
2
0
是不是有可能我自己生成的目标系统不对?这样就导致win7安装不上?
雪    币: 10
活跃值: (1072)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
Whoami默 2024-1-18 12:09
3
0
我是通过source命令行生成的文件,也不知道有没有问题
# Copyright (c) Microsoft Corporation.  All rights reserved.
#
# sources
# Microsoft Virutal NDIS-WDM Miniport Driver
# BUILD command sources file
#

TARGETNAME=ndisedge
TARGETTYPE=DRIVER
TARGETPATH=obj
TARGETVERSION =Win7
TARGETPLATFORM =x86


TARGETLIBS=$(DDK_LIB_PATH)\ndis.lib \
        $(DDK_LIB_PATH)\ntstrsafe.lib

# System and NDIS wrapper definitions.
C_DEFINES=$(C_DEFINES) -DNDIS_MINIPORT_DRIVER=1 -DNDIS_WDM=1 
C_DEFINES=$(C_DEFINES) -DINTERFACE_WITH_NDISPROT=1 

!if !defined(DDK_TARGET_OS) || "$(DDK_TARGET_OS)"=="Win2K"
#
# The driver is built in the Win2K build environment
#
C_DEFINES=$(C_DEFINES) -DNDIS50_MINIPORT=1 
!else 
#
# The driver is built in the XP or .NET build environment
# So let us build NDIS 5.1 version.
#
C_DEFINES=$(C_DEFINES) -DNDIS51_MINIPORT=1 
!endif

KMDF_VERSION_MAJOR=1

INF_NAME=ndisedge

NTTARGETFILES=$(OBJ_PATH)\$(O)\$(INF_NAME).inf



MISCFILES=$(NTTARGETFILES)


C_DEFINES = $(C_DEFINES)  

NO_BINPLACE=1

SOURCES = \
        ndiswdm.c \
        init.c \
        request.c \
        send.c \
        receive.c \
        ExCallbk.c\
        ndiswdm.rc 




游客
登录 | 注册 方可回帖
返回