How to read from boot sector of drive ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • draskoli
    New Member
    • Jan 2010
    • 4

    How to read from boot sector of drive ?

    Can anybody help or share vb.net to read boot sector of drive ? I want to check from boot sector of drive if grldr, ntldr or other named loader exist.

    Thanks in advance.
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    This sounds suspiciously like asking for help on how to build a boot sector virus.

    The DriveInfo class can tell you what drives are available and what kinds of drives they are without having to directly access the boot sector.

    Comment

    • draskoli
      New Member
      • Jan 2010
      • 4

      #3
      No, I want to read from MBR where it tells about your booting pattern, ie wheter if it chainload like grubloader or something else before going into bootmgr.

      Comment

      • draskoli
        New Member
        • Jan 2010
        • 4

        #4
        I could however detect same with HDhacker Click image for larger version

Name:	Capture.jpg
Views:	1
Size:	14.1 KB
ID:	5410120 or mbrwiz etc. I want to do it on my own using vb.net.

        Comment

        • draskoli
          New Member
          • Jan 2010
          • 4

          #5
          Ok, i found way out to get hexdump of boot sector in vb.net. Now, I want to read particular address using readallbyte from hexdump. How to do that.

          Comment

          Working...