开发者

How do I read/write (program) the MBR/VBR of a flash drive?

开发者 https://www.devze.com 2023-03-13 05:10 出处:网络
I\'m looking for a method of reading/writing (actually programming) the Master Boot Record (or maybe VBR) of a usb mass storage device. Actually its a flash drive whose MBR I want to program, so that

I'm looking for a method of reading/writing (actually programming) the Master Boot Record (or maybe VBR) of a usb mass storage device. Actually its a flash drive whose MBR I want to program, so that whenever I plug it into any computer, a program (stored on my flash drive in a file) gets executed.

I know quite a bit of assembly but I don't know h开发者_开发百科ow to go about programming MBRs.. Please help

Thanks


If you're using linux, you can simple open the device file /dev/sdXY and write to it, the MBR will be the first 512 bytes.

0

精彩评论

暂无评论...
验证码 换一张
取 消