0

I have a U9 Telit modem which, at first, appears as a disk drive on USB bus. Then, the native software after autorun and install, sends a couple of IOCTLs to tell the device to reappear as other things. I can see them in procmon.

I want to better spy on these, to know exactly what they send and how, in order to do the same in proper way.

Pavel Radzivilovsky
  • 18,794
  • 5
  • 57
  • 67

2 Answers2

1

Try something like Systemtap. Attach a probe that dumps all ioctls and arguments from the kernel, grep through them.

user318904
  • 2,968
  • 4
  • 28
  • 37
0

You could use something like strace under linux. The windows equivalent is discussed here Systrace for Windows. This might show you the ioctl commands sent.

Some companies offer the linux kernels of their devices as direct download from their official webpage. There you might find more information on how it works. For some devices, it's easy to build and deploy your own kernel. This helps as you can add custom debug output.

Community
  • 1
  • 1
user3387542
  • 611
  • 1
  • 8
  • 28