i wanna write a program that deletes mbr. where do i start :3

i wanna write a program that deletes mbr

where do i start :3

Beware Cat Shirt $21.68

Rise, Grind, Banana Find Shirt $21.68

Beware Cat Shirt $21.68

  1. 2 years ago
    Anonymous

    (or grub for that case i don't really mind teehee)

  2. 2 years ago
    Anonymous

    >where do i start :3
    at Sector 0

    • 2 years ago
      Anonymous

      wasn't even a joke, just dd the first 512 bytes or write a program that does the same

      • 2 years ago
        Anonymous

        what's dd

        • 2 years ago
          Anonymous

          dragon dildo

        • 2 years ago
          Anonymous

          disk destroyer

          • 2 years ago
            Anonymous

            thanks, thought he meant breasts.. i knew i was off

    • 2 years ago
      Anonymous

      i am so moronic i barely made it to day 2, can you explain in further detail.. i barely know how to open google

      • 2 years ago
        Anonymous

        see that box where the cables from your monitor run? take a hammer and start hitting it until it's dust
        simplest way to delete mbr in your case

        • 2 years ago
          Anonymous

          i am not computer expert but i have a feeling you are misleading me

  3. 2 years ago
    Anonymous

    aww man )": somebody has already thought of a virus like that before me )':
    there's a virus for everything nowdays )":

  4. 2 years ago
    Anonymous

    >i wanna write a program that deletes mbr
    you can write a easy shell script

    echo '00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' > /dev/sda

    • 2 years ago
      Anonymous

      Says permission denied

      • 2 years ago
        Anonymous

        You'd need to run it as sudo of course.

        • 2 years ago
          Anonymous

          It doesn't do anything, just goes back to the terminal line

          • 2 years ago
            Anonymous

            maybe the pc has some kind of self protection mechanism or something

          • 2 years ago
            Anonymous

            Please don't tell me you actually ran it on your PC?

            maybe the pc has some kind of self protection mechanism or something

            That would be the expected behaviour, there's no feedback

    • 2 years ago
      Anonymous

      is that for real? in the past i already fell to the trap of a guy who knows linux shit and deleted my whole soft drive

      • 2 years ago
        Anonymous

        that just overwrites the first 512 bytes of the disk (where mbr is) with 0

    • 2 years ago
      Anonymous

      so can i technically write a program in batch that does that (or whatever the linux equivalent is)?

      • 2 years ago
        Anonymous

        That would work in Linux, yes

        On Windows you don't even need admin privileges (amazingly). You can use WriteFile but I can't remember how I did it exactly.
        >https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-writefile
        >A write on a volume handle will succeed if the volume does not have a mounted file system, or if one of the following conditions is true:
        >The sectors to be written to are boot sectors.
        ...

        Yeah, drives without mounted system partitions are user editable, makes sense if you want to be able to format any drive without admin privileges

        • 2 years ago
          Anonymous

          so if i put

          >i wanna write a program that deletes mbr
          you can write a easy shell script

          echo '00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' > /dev/sda

          in terminal under root will my pc not boot after i restart?

          • 2 years ago
            Anonymous

            if you use MBR and put in the right /dev/[drive], it won't

        • 2 years ago
          Anonymous

          You can erase the boot sector of a mounted drive with WriteFile too, if my memory serves me right.

          • 2 years ago
            Anonymous

            That would work in Linux, yes

            [...]
            Yeah, drives without mounted system partitions are user editable, makes sense if you want to be able to format any drive without admin privileges

            Although actually, you may have to have admin privilages now I look it up, sorry to mislead.

  5. 2 years ago
    Anonymous

    #include <stdio.h>
    printf("LOL");
    system("sudo dd if=/dev/urandom of=/dev/sda1 bs=512M");
    or something similar

  6. 2 years ago
    Anonymous

    On Windows you don't even need admin privileges (amazingly). You can use WriteFile but I can't remember how I did it exactly.
    >https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-writefile
    >A write on a volume handle will succeed if the volume does not have a mounted file system, or if one of the following conditions is true:
    >The sectors to be written to are boot sectors.
    ...

  7. 2 years ago
    Anonymous

    is mbr deletion permanent damage, if not is it just a pain in the ass that takes a long time to fix?

    • 2 years ago
      Anonymous

      Just a pain in the ass for a experienced user, it's easy to fix and there's no loss of data
      Slightly more evil would be deleting the partition table

      • 2 years ago
        Anonymous

        is deleting the part table worse than deleting the mbr or is the mbr under the part table?

        • 2 years ago
          Anonymous

          it's slightly worse, partition table is after the mbr
          most of the time it can still be recovered though without data loss

          next would be deleting the MFT, which would not cause any actual data loss either but all your files would be without names and not in folders anymore, if you try to recover them

          • 2 years ago
            Anonymous

            so, can you delete all of those three things, or is one under the other, what would be more efficient for the most chaos and in general what each one does?

          • 2 years ago
            Anonymous

            the worst would be formatting the entire drive

            so can i technically write a program that deletes whatever thingy does the most damage (i got pretty confused lol but one of them would be good) and than restarts the computer :flushed:

            you can write a program that just deletes everything on the drive and then restarts it

          • 2 years ago
            Anonymous

            i think i am a little confused, what would be the result of deleting mbr part compared to outright formatting the drive

          • 2 years ago
            Anonymous

            first ones will produce little to no data loss if you try to recover it
            deleting the whole drive will destroy most files

          • 2 years ago
            Anonymous

            i meant as what would happen to the computer after deleting the mbr part, after it restarts for the first time

          • 2 years ago
            Anonymous

            if the computer uses mbr, a black screen asking for a bootable media
            most computers these days will use uefi and efi booting though

          • 2 years ago
            Anonymous

            huh, that sounds lame as frick.. how most actual mbr viruses work?

          • 2 years ago
            Anonymous

            exactly like described above

          • 2 years ago
            Anonymous

            wait so that's it?, gawd damn i went for the wrong thing.. what is some cool chaos causing shit that i can do

          • 2 years ago
            Anonymous

            oh, i think i'm a little confused, what would be the result of deleting the mbr part compared to formatting the whole drive?.

  8. 2 years ago
    Anonymous

    # wipefs -a /dev/sda

    Jesus frick, noobs.

  9. 2 years ago
    Anonymous

    damn everyone here is so smart and shit, i still can't figure out why the system theme on firefox doesn't match the system's one

  10. 2 years ago
    Anonymous

    so can i technically write a program that deletes whatever thingy does the most damage (i got pretty confused lol but one of them would be good) and than restarts the computer :flushed:

  11. 2 years ago
    Anonymous
  12. 2 years ago
    Anonymous

    frick man the original one didn't post until the second one posted very embarrassing

  13. 2 years ago
    Anonymous

    dd if=/dev/zero of=/dev/sda bs=512 count=1

    • 2 years ago
      Anonymous

      i am no big on commands and such, what does that do lol

Your email address will not be published. Required fields are marked *