Parsing an image of a device?

Discussion in 'C' started by tootypegs, Nov 28, 2007.

  1. tootypegs

    tootypegs New Member

    Joined:
    Nov 25, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Hi i'm new to this forum.

    ..Basically i have a program that can create an image of a device (for example USB thumb drive). I would now like to take that image file and parse it so that i can see all of the files and the directory structure but i have to be honest, i have not a clue how to attemp this!!!

    ........does any one have any ideas- or is able to point me in the direction of research sources??

    thank you
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    If you have the program you can look into the code and see how it creates the image and you can get the image to content out. If you just have the application then you are at the mercy of the program creator to disclose that to you.
     
  3. tootypegs

    tootypegs New Member

    Joined:
    Nov 25, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    I made the program. I gets a handle on a device then using readFile() and WriteFile() it takes a copy of the device a 'bit' a a time.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Probably you should have the algo so that you can extract the image back to some folder and for that you may need some delimiter between the files / folders and then if you have such algo then you will be able to manipulate the content.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice