 |
 |
 |
 |
| | Forgot to mention, the NDIS Protocol Driver was built using the XP DDK, so it will work on XP and likely 2003. However, if you plan to use it on 2000, it might fail. It will have to be rebuilt using the 2000 DDK. |
|
 |
| I'd love to elaborate on this subject as I think its really interesting.
I did some work on a C# firewall which used a C++ NDIS driver just like you. Some of the stuff I was doing is in this article. I was using driver code I inherited from another project which was quite painful to work with. I was loading a list of ip's for which packets were to be dropped into the driver. The driver then notified the system when a packet was granted or dropped and the C# app was used to list the granted/dropped packets as they came flying past.
I keep meaning to resurect the project - as it was mainly finished just need a decent UI building and some tweaks with the driver.
One problem was a pain in the as regarding the installer for the driver. I tried installing it programmatically and using the DDK installutil and with both the driver never seemed to get installed right - it always required the user to manually do the steps you descrive above to add the driver.... if anyone has any tips on that i'd love to hear them. |
|
 |
| Not sure if it will help in your case but I developped a driver in asm and it's possible to register it using the windows API:
invoke OpenSCManager, NULL, NULL, SC_MANAGER_ALL_ACCESS
If the function doesn't return null:
invoke GetFullPathName, $CTA0("drivername.sys"), sizeof acModulePath, addr acModulePath, esp
The you can install the service
invoke CreateService, hSCManager, $CTA0("drivername"), $CTA0("OSIX challenge driver"), \
SERVICE_START + SERVICE_STOP + DELETE, SERVICE_KERNEL_DRIVER, SERVICE_DEMAND_START, \
SERVICE_ERROR_IGNORE, addr acModulePath, NULL, NULL, NULL, NULL, NULL
If the function doesn't return NULL
start the service
invoke StartService, hService, 0, NULL
if return value is not 0
; the driver can receive I/O request packet (IRP) of type IRP_MJ_CREATE
invoke CreateFile, $CTA0("\\\\.\\driver name"), GENERIC_READ + GENERIC_WRITE, \
0, NULL, OPEN_EXISTING, 0, NULL
oh well, it's too long to explain and the textbox here is to small ;)
|
|
 |
| | bb, I seem to remember a way to programatically install it, but I can't recall from the top of my head. I will look through my old stuff and see if I can find it for you... |
|
 |
| | I also tried to play with this protocol driver and I didn't find the way to do a properties dialog box. Do you have any idea where to look for ? |
|
 |
| |
 |
| I seem to remember a way to programatically install it, but I can't recall from the top of my head. I will look through my old stuff and see if I can find it for you...
http://www.sysexecutive.com/dynamic-data-entry.html |
|
 |
| Hi,
I just wanna read raw ethernets packet from my C program, and reached this article (which is excellent), can someone please direct me to the place where I can find the source code mentioned in this "RawEthernet Apllication" section? [The zip file turned to be empty] |
|
 |
| |
 |
| | I seem to remember a way to programatically install it, but I can't recall from the top of my head. I will look through my old stuff and see if I can find it for you. flash games |
|
 |
| | There is nothing in the zip file |
|
 |
| Hi,
I just wanna read raw ethernets packet from my C program, and reached this article (which is excellent), can someone please direct me to the place where I can find the source code mentioned in this "RawEthernet Apllication" section? [The zip file turned to be empty]
comic book reviews |
|
 |
| | looks like the zip with the article has been lost to the perilous OSIDrive, if all you want to do is read the packets floating around then you can use Wireshark |
|
 |
| | Amazing talent. I find her designs to be extraordinary!I agree this point. |
|
 |
| | Simply want to mention what a useful web page you’ve got in this article!<a href=http://www.truereligionjeansus.net title='true religion jeans discounted '>true religion jeans discounted </a> |
|
 |
| |
 |
| | Finally can copy!<a href="http://www.insanityworkoutdvdset.com">insanity workout dvd</a> |
|
 |
| |
 |
 |
 |
 |
Anonymously add a comment: (or register