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
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.
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.
...
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?.
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:
(or grub for that case i don't really mind teehee)
>where do i start :3
at Sector 0
wasn't even a joke, just dd the first 512 bytes or write a program that does the same
what's dd
dragon dildo
disk destroyer
thanks, thought he meant breasts.. i knew i was off
i am so moronic i barely made it to day 2, can you explain in further detail.. i barely know how to open google
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
i am not computer expert but i have a feeling you are misleading me
aww man )": somebody has already thought of a virus like that before me )':
there's a virus for everything nowdays )":
>i wanna write a program that deletes mbr
you can write a easy shell script
echo '00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' > /dev/sda
Says permission denied
You'd need to run it as sudo of course.
It doesn't do anything, just goes back to the terminal line
maybe the pc has some kind of self protection mechanism or something
Please don't tell me you actually ran it on your PC?
That would be the expected behaviour, there's no feedback
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
that just overwrites the first 512 bytes of the disk (where mbr is) with 0
so can i technically write a program in batch that does that (or whatever the linux equivalent is)?
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
so if i put
in terminal under root will my pc not boot after i restart?
if you use MBR and put in the right /dev/[drive], it won't
You can erase the boot sector of a mounted drive with WriteFile too, if my memory serves me right.
Although actually, you may have to have admin privilages now I look it up, sorry to mislead.
#include <stdio.h>
printf("LOL");
system("sudo dd if=/dev/urandom of=/dev/sda1 bs=512M");
or something similar
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.
...
is mbr deletion permanent damage, if not is it just a pain in the ass that takes a long time to fix?
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
is deleting the part table worse than deleting the mbr or is the mbr under the part table?
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
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?
the worst would be formatting the entire drive
you can write a program that just deletes everything on the drive and then restarts it
i think i am a little confused, what would be the result of deleting mbr part compared to outright formatting the drive
first ones will produce little to no data loss if you try to recover it
deleting the whole drive will destroy most files
i meant as what would happen to the computer after deleting the mbr part, after it restarts for the first time
if the computer uses mbr, a black screen asking for a bootable media
most computers these days will use uefi and efi booting though
huh, that sounds lame as frick.. how most actual mbr viruses work?
exactly like described above
wait so that's it?, gawd damn i went for the wrong thing.. what is some cool chaos causing shit that i can do
oh, i think i'm a little confused, what would be the result of deleting the mbr part compared to formatting the whole drive?.
# wipefs -a /dev/sda
Jesus frick, noobs.
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
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:
frick man the original one didn't post until the second one posted very embarrassing
dd if=/dev/zero of=/dev/sda bs=512 count=1
i am no big on commands and such, what does that do lol