阅读:1196回复:8
怎么编写程序来实现对U盘容量的隐藏?
比如256M的U盘,通过运行你编写的程序,它的容量变成128M了,其他的128M被隐藏了。然后还可以恢复到256M。
要编写这样的程序,需要具备哪些只是呢?怎么才能实现呢?谢谢大家! |
|
最新喜欢:![]() |
沙发#
发布于:2003-11-14 02:14
这是由固件来完成的!需要分两个区!!
|
|
板凳#
发布于:2003-11-14 13:38
通过过滤0扇区的信息来实现!具体来说就是由固件更改0扇区中扇区数量部分。为了能在PC上动态实现,应另外添加一个ENDPOINT,PC通过这个添加ENDPOINT来与固件通讯决定屏蔽的扇区数。我买的一个U盘就是这样实现的!
|
|
|
地板#
发布于:2003-11-14 13:42
另外还要对SCSI协议的READ CAPACITY进行过滤
|
|
|
地下室#
发布于:2003-11-14 13:45
谢谢楼上两位!
请问有这方面的例子代码吗? 谢谢! |
|
5楼#
发布于:2003-11-18 10:01
你给我你的U盘的源代码,我帮你改改吧!
|
|
|
6楼#
发布于:2003-11-19 09:12
我没有做U盘,我只是想从市场买U盘,然后利用这个程序对它的容量进行隐藏。您的电话是多少?我们可以聊聊。
|
|
7楼#
发布于:2003-11-19 09:37
这样吧,我给你我的U盘的描述符,你先琢磨一下,我暂时没有电话
Device Descriptor: bcdUSB: 0x0110 bDeviceClass: 0x00 bDeviceSubClass: 0x00 bDeviceProtocol: 0x00 bMaxPacketSize0: 0x40 (64) idVendor: 0x0EA0 idProduct: 0x6803 bcdDevice: 0x0100 iManufacturer: 0x01 0x0409: \"USB\" iProduct: 0x02 0x0409: \"Solid state disk\" iSerialNumber: 0x03 0x0409: \"3B011B083E153AB0\" bNumConfigurations: 0x01 ConnectionStatus: DeviceConnected Current Config Value: 0x01 Device Bus Speed: Full Device Address: 0x01 Open Pipes: 3 Configuration Descriptor: bLength: 0x0009 bDescriptorType: 0x0002 wTotalLength: 0x0027 bNumInterfaces: 0x01 bConfigurationValue: 0x01 iConfiguration: 0x00 bmAttributes: 0x80 MaxPower: 0x32 bmAttributes: 0x80 (Bus Powered ) MaxPower: 0x32 (100 mA) Interface Descriptor: bLength: 0x09 bDescriptorType: 0x09 bInterfaceNumber: 0x00 bAlternateSetting: 0x00 bNumEndpoints: 0x03 bInterfaceClass: 0x08 bInterfaceSubClass: 0x06 bInterfaceProtocol: 0x50 iInterface: 0x00 bInterfaceSubClass: 0x06 bInterfaceProtocol: 0x50 iInterface: 0x00 Endpoint Descriptor: bLength: 0x07 bDescriptorType: 0x05 bEndpointAddress: 0x81 bmAttributes: 0x02 wMaxPacketSize: 0x40 bInterval: 0x00 >>Transfer Type: Bulk wMaxPacketSize: 0x0040 (64) bInterval: 0x00 Endpoint Descriptor: bLength: 0x07 bDescriptorType: 0x05 bEndpointAddress: 0x02 bmAttributes: 0x02 wMaxPacketSize: 0x40 bInterval: 0x00 >>Transfer Type: Bulk wMaxPacketSize: 0x0040 (64) bInterval: 0x00 Endpoint Descriptor: bLength: 0x07 bDescriptorType: 0x05 bEndpointAddress: 0x83 bmAttributes: 0x03 wMaxPacketSize: 0x02 bInterval: 0x01 >>Transfer Type: Interrupt wMaxPacketSize: 0x0002 (2) bInterval: 0x01 |
|
|
8楼#
发布于:2003-11-19 11:13
谢谢您。怎么得到一个U盘的描述符呢??
|
|