Hi all !
Where can I found a driver source code for an USB Blocker ?
I need make a tool for block USB devices… like memory cards, external
Harddisks, etc…
Any example source code are welcome…
Thank you
Hi all !
Where can I found a driver source code for an USB Blocker ?
I need make a tool for block USB devices… like memory cards, external
Harddisks, etc…
Any example source code are welcome…
Thank you
I find epoxy poured into the USB connector works quite well…
Alternatively, a quick google leads to several existing implementations (so
why build another one!) search for “protect usb port” for example…
/simgr
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Marcos Velasco - UOL
Sent: Wednesday, December 15, 2004 2:11 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] USB blocker…
Hi all !
Where can I found a driver source code for an USB Blocker ?
I need make a tool for block USB devices… like memory cards, external
Harddisks, etc…
Any example source code are welcome…
Thank you
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@stratus.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
There’s 99% of one in the DDK. Take the USB bus filter driver and fail
IRP_MN_QUERY_DEVICE_RELATIONS.
Works for me.
Regards
Don Ward
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
Marcos Velasco - UOL
Sent: 15 December 2004 19:11
To: Windows System Software Devs Interest List
Subject: [ntdev] USB blocker…Hi all !
Where can I found a driver source code for an USB Blocker ?I need make a tool for block USB devices… like memory
cards, external Harddisks, etc…Any example source code are welcome…
Thank you
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256You are
currently subscribed to ntdev as: xxxxx@careful.co.uk
To unsubscribe send a blank email to xxxxx@lists.osr.com
I hope you are dereferencing each PDEVICE_OBJECT that was reported
successfully in the list before you failed it, otherwise, there will be
a lot of leaked device objects out there.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Ward
Sent: Wednesday, December 15, 2004 3:52 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] USB blocker…
There’s 99% of one in the DDK. Take the USB bus filter driver and fail
IRP_MN_QUERY_DEVICE_RELATIONS.
Works for me.
Regards
Don Ward
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
Marcos Velasco - UOL
Sent: 15 December 2004 19:11
To: Windows System Software Devs Interest List
Subject: [ntdev] USB blocker…Hi all !
Where can I found a driver source code for an USB Blocker ?I need make a tool for block USB devices… like memory
cards, external Harddisks, etc…Any example source code are welcome…
Thank you
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256You are
currently subscribed to ntdev as: xxxxx@careful.co.uk
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Well, if you fail it on the way down, no devices will get reported at all.
Don
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: 16 December 2004 00:10
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] USB blocker…I hope you are dereferencing each PDEVICE_OBJECT that was
reported successfully in the list before you failed it,
otherwise, there will be a lot of leaked device objects out there.d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Ward
Sent: Wednesday, December 15, 2004 3:52 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] USB blocker…There’s 99% of one in the DDK. Take the USB bus filter driver
and fail IRP_MN_QUERY_DEVICE_RELATIONS.Works for me.
Regards
Don Ward> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> Marcos Velasco - UOL
> Sent: 15 December 2004 19:11
> To: Windows System Software Devs Interest List
> Subject: [ntdev] USB blocker…
>
>
> Hi all !
> Where can I found a driver source code for an USB Blocker ?
>
> I need make a tool for block USB devices… like memory
> cards, external Harddisks, etc…
>
> Any example source code are welcome…
>
> Thank you
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are
> currently subscribed to ntdev as: xxxxx@careful.co.uk
> To unsubscribe send a blank email to
xxxxx@lists.osr.com
>
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
That still doesn’t work. The rules for QDR is to process the irp on the
way down the stack. What if there was another filter on top of yours
which enumerated a child? You still need to see if there are any
devices in the relations that you need to deref if you fail the request.
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Ward
Sent: Wednesday, December 15, 2004 4:10 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] USB blocker…
Well, if you fail it on the way down, no devices will get reported at
all.
Don
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: 16 December 2004 00:10
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] USB blocker…I hope you are dereferencing each PDEVICE_OBJECT that was
reported successfully in the list before you failed it,
otherwise, there will be a lot of leaked device objects out there.d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Ward
Sent: Wednesday, December 15, 2004 3:52 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] USB blocker…There’s 99% of one in the DDK. Take the USB bus filter driver
and fail IRP_MN_QUERY_DEVICE_RELATIONS.Works for me.
Regards
Don Ward> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of
> Marcos Velasco - UOL
> Sent: 15 December 2004 19:11
> To: Windows System Software Devs Interest List
> Subject: [ntdev] USB blocker…
>
>
> Hi all !
> Where can I found a driver source code for an USB Blocker ?
>
> I need make a tool for block USB devices… like memory
> cards, external Harddisks, etc…
>
> Any example source code are welcome…
>
> Thank you
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are
> currently subscribed to ntdev as: xxxxx@careful.co.uk
> To unsubscribe send a blank email to
xxxxx@lists.osr.com
>
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Marcos Velasco - UOL wrote:
I need make a tool for block USB devices… like memory cards, external
Harddisks, etc…
You need to write a filter driver. Decide what device object resides at
the lowest common level for all the devices that you want to block, and
put a filter over it.
No, there’s no sample that I’m aware of,
Peter
OSR
Marcos Velasco - UOL wrote:
Hi all !
Where can I found a driver source code for an USB Blocker ?I need make a tool for block USB devices… like memory cards, external
Harddisks, etc…Any example source code are welcome…
Thank you
heya,
i’ve made the same tool long ago, its really easy. Unfortunately, i
can’t find the source anymore.
Anyway, i attached an upper filter to the USB controller via a properly
crafted .inf file (using the USB controller GUID), then in the
StartDevice path of the filter i just get the device description of the
device to be started, compare with the guids i want to block (mass
storage devices, printers, whatever you want), and if it matches i
simply complete the IRP with STATUS_UNSUCCESFUL.
Hope it helps…
valerio
This only works for devices which install under the usb device class
(the base of usb mass storage, printing support, hubs, generic parent,
controllers, etc). this won’t work for any device which installs under
its own device class. For instance, install a keyboard and view the
device tree in device manager by connection. The base device enumerated
is installed in the HID class, so you installing as a usb device class
filter will not work (in all cases at least)
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of valerino
Sent: Tuesday, December 21, 2004 5:26 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] USB blocker…
Marcos Velasco - UOL wrote:
Hi all !
Where can I found a driver source code for an USB Blocker ?I need make a tool for block USB devices… like memory cards,
external
Harddisks, etc…Any example source code are welcome…
Thank you
heya,
i’ve made the same tool long ago, its really easy. Unfortunately, i
can’t find the source anymore.
Anyway, i attached an upper filter to the USB controller via a properly
crafted .inf file (using the USB controller GUID), then in the
StartDevice path of the filter i just get the device description of the
device to be started, compare with the guids i want to block (mass
storage devices, printers, whatever you want), and if it matches i
simply complete the IRP with STATUS_UNSUCCESFUL.
Hope it helps…
valerio
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com