Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6531419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:52:34+00:00 2026-05-25T09:52:34+00:00

Do the first 512 bytes get executed whenever I insert the flash drive into

  • 0

Do the first 512 bytes get executed whenever I insert the flash drive into any computer? If yes (which should be the case), then I suppose if I extract and disassemble the MBR and put in a reference that points to a memory location of a stored executable (on the flash drive), even that executable will be executed whenever its plugged in a computer..?

How could I do that? I mean, only by doing a simple call <address> won’t do it.. I also wanna know more about MBRs of flash drives since they are different from those MBRs which bootstrap an Operating System. Googling for it doesn’t show up anything useful at all..So I thought of asking the community, if anybody has done something like this before.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:52:34+00:00Added an answer on May 25, 2026 at 9:52 am
    1. No
    2. There’s an “autorun” feature in some Operating Systems, which is deprecated.

    Flash drives are based on layers of legacy technology, to avoid the need for drivers.
    At the lowest level, there are USB packets (see the Mass Storage Device spec, as per Pascal Cuoq)
    Each of the USB transactions is a SCSI command/response pair.
    The OS treats the flash drive as a SCSI disk (you’ll see /dev/sdX in Linux, for example).

    Since the flash drive appears to be a normal SCSI disk, it usually has a MBR/partition table.
    However, most operating systems support a “superfloppy” mode, in which case the disk starts with the FAT bootsector. Some smaller flash drives, or those formatted with legacy utilities, might be in that configuration.

    You can example the flash drive MBR on windows with the DSKPROBE utility from Microsoft (Use the PhysicalDrive option), or with ‘dd.exe’ using .\PhysicalDriveX (where X is a number ..typically 2, based on how many hard drives you have)

    On properly configured computers, there is no way to execute code when a device is plugged in.
    Even when ‘autorun’ capability was default-on, you needed to use a device which appeared to be a CDROM.
    (The SCSI command-set allows a device to say whether it’s a CD or HD, and the flash-drive firmware can easily lie)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to disassemble the MBR (first 512 bytes) of a bootable x86 disk
First, let's get the security considerations out of the way. I'm using simple authentication
First off if you're unaware, samba or smb == Windows file sharing, \\computer\share etc.
I have a binary chunk of data 512 bytes long, I was wondering what
I can't seem to get my md4 implementation working. Any ideas as to what's
First off, I am using Windows XP. I have multiple hard drives and it
First off, I understand the reasons why an interface or abstract class (in the
First of all, I know how to build a Java application. But I have
First off, there's a bit of background to this issue available on my blog:
First off: I'm using a rather obscure implementation of javascript embedded as a scripting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.