c++ - try catch on reflective loaded dll -


i testing injection technique (reflective dll injection) , found try/catch on code rise unhandle windows error (kernelbase.dll, code error e06d7363) , host process dies.

i injecting test dll basic function. work flow is: print "starting..." , dies.

my dll.

bool winapi dllmain(hinstance hinstdll, dword dwreason, lpvoid lpreserved) {     bool breturnvalue = true;      switch (dwreason)     {            case dll_process_attach:             function();         break;     }      return breturnvalue; }  void function() {      cout << "starting..." << std::endl;      try     {         throw std::exception();     }     catch (...)     {         cout << " exception... " << std::endl;     } } 

any technical explanation?


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -