{"id":5527,"date":"2014-03-30T23:40:56","date_gmt":"2014-03-30T23:40:56","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-ollydbg-collection-of-common-programming-errors\/"},"modified":"2014-03-30T23:40:56","modified_gmt":"2014-03-30T23:40:56","slug":"problem-about-ollydbg-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-ollydbg-collection-of-common-programming-errors\/","title":{"rendered":"problem about ollydbg-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/543aba69f8cc74c8b0a9c78417e19ecd?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBoris Gu\u00e9ry<br \/>\nc assembly x86 ollydbg<br \/>\nThe following codeint _main() {return 0;}Compiled using the command:gcc -s -nostdlib -nostartfiles 01-simple.c -o01-simple.exegcc version 4.4.1 (TDM-1 mingw32)OllyDbg produced this output:Can you explain what happens here? Analysis so far:\/\/ these two seems to be an idiom: PUSH EBP \/\/ places EBP on stack MOV EBP, ESP \/\/ overwrites EBP with ESPMOV EAX, 0 \/\/ EAX = 0LEAVE \/\/ == mov esp, ebp\/\/ pop ebp\/\/ according to \/\/ http:\/\/en.wikipedia.org\/wiki\/X86_instruction_listings<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/18299f2876fcea8ed27457070d012def?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDavid Kernin<br \/>\nc++ debugging assembly ollydbg seh<br \/>\nI&#8217;ve just created a new vc++ exe with this simple code:#include&lt;stdio.h&gt; #include&lt;string.h&gt; #include&lt;windows.h&gt;int ExceptionHandler(void); int main(int argc,char *argv[]){char temp[512];printf(&#8220;Application launched&#8221;);try {throw &#8220;error&#8221;;} catch (&#8230; ) {ExceptionHandler(); } return 0; } int ExceptionHandler(void) {printf(&#8220;Exception&#8221;);return 0; }The app is extremely simple, and an exe file depending on kernel32.dll and MSVCR100D.dll is created.When I try to import and debug it i<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5746d1dac26339e0a8b018e985d60cb7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRusty Horse<br \/>\nplugins ollydbg<br \/>\nI am having troubles finding any plugins for my newest Olly. Any ideas where to search? I need to solve some anti debugging techniques where the Olly crash.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/18299f2876fcea8ed27457070d012def?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDavid Kernin<br \/>\ndebugging x86 x86-64 ollydbg<br \/>\nI&#8217;m trying to follow the execution instructions of a simple program I compiled with C++ (it calculates some prime numbers then exits) in a debugger (ollydbg) but I have several questions:Why the first instruction isn&#8217;t the entry point of the &#8220;CODE&#8221; section? It is different As soon as I &#8220;step over&#8221; a few instructions the debugger crashes and writes &#8220;Single step event at ntdll.someaddress, press shift+F7\/F8\/F9 to pass the exception to the program&#8221; and crashes. If I run the program without stepping<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cc458e828b50a1f9329469ab1e5d98fd?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMuppet<br \/>\npython debugging hdf5 ollydbg h5py<br \/>\nI have a problem that I seriously spent months on now!Essentially I am running code that requires to read from and save to HD5 files. I am using h5py for this.It&#8217;s very hard to debug because the problem (whatever it is) only occurs in like 5% of the cases (each run takes several hours) and when it gets there it crashes python completely so debugging with python itself is impossible. Using simple logs it&#8217;s also impossible to pinpoint to the exact crashing situation &#8211; it appears to be very random,<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/84432a12912341ff38e157b3d2f4d145?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nTim Post<br \/>\nwindows debugging process cracking ollydbg<br \/>\nWindows 7 x64 &amp; OllyDbg 1.10I just start to learn debugging technology, and try to debug a demo programm called &#8216;crack_me.exe&#8217; using OllyDbg. But I meet with a problem as follows:I set a breakpoint in &#8216;crack_me.exe&#8217; and press F9 to run the program, but Windows alert a dialogue (My OS is in Chinese): http:\/\/farm8.staticflickr.com\/7235\/7271918964_b9562f0615.jpgGeneral meanning:crack_me.exe has stopped work.Windows can connect to Internet and find a solution to this problem.Connect to Internet<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Boris Gu\u00e9ry c assembly x86 ollydbg The following codeint _main() {return 0;}Compiled using the command:gcc -s -nostdlib -nostartfiles 01-simple.c -o01-simple.exegcc version 4.4.1 (TDM-1 mingw32)OllyDbg produced this output:Can you explain what happens here? Analysis so far:\/\/ these two seems to be an idiom: PUSH EBP \/\/ places EBP on stack MOV EBP, ESP \/\/ overwrites EBP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5527","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5527"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5527\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}