Results 1 to 3 of 3

Thread: How to set breakpoint for reading USB in linux?

  1. #1

    Question How to set breakpoint for reading USB in linux?

    Hi, all,

    I'm debugging a program which uses flex1m 8.1 and gets the hostid from a USB dongle. I can find the seeds now and the daemon can start with the hostid of mac address. But the application wants to read the USB so the license can't be checked out. I tried to set a break before the app reading the USB, but I can't find out the right place.

    Can anyone tell me how to set the breakpoint when the app reading the USB just like the bpio in Olly?

    Many thanks,

    I promise that I have read the FAQ and tried to use the Search to answer my question.

  2. #2
    I'd think it would really depend on how they're reading it. If it's a "normal" USB device, they could be just talking to the normal drivers, in which case it would be just an open, or an fopen, in which case you could search through your IDA listing for instances of those 2 functions, and set breakpoints on them. If they are doing their own access to the ports, through INs and OUTs, those would be a little harder, but I would avoid that bridge until I had to cross it. So, check for the opens, and let us know if those don't work.

  3. #3
    A USB interface is completely different from a parallel port.

    Communication with the host controller is via memory-mapped-I/O. In addition, it is done through a U/OHCI controller interface layer.

    The USB specifications are open, so I recommend you give them a good read.
    Last edited by LLXX; August 6th, 2007 at 02:57.

Similar Threads

  1. Analyzing and debugging not linux binaries on linux
    By Xgrzyb90 in forum The Newbie Forum
    Replies: 2
    Last Post: June 13th, 2010, 12:50
  2. Catch a program reading a Registry Key.
    By Kayaker in forum The Newbie Forum
    Replies: 1
    Last Post: December 6th, 2006, 22:00
  3. Interesting reading
    By WaxfordSqueers in forum Tools of Our Trade (TOT) Messageboard
    Replies: 28
    Last Post: May 17th, 2005, 11:55
  4. reading register contents
    By Blox in forum OllyDbg Support Forums
    Replies: 7
    Last Post: September 15th, 2004, 13:17
  5. Visual Basic 5.0/6.0 File reading
    By peterg70 in forum The Newbie Forum
    Replies: 7
    Last Post: September 14th, 2004, 12:51


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts