After having found the source of the GDB anti-debug trick, I started modifying GDB to work around the problem and fix the number of sections on the fly (it’s simple to calculate the real number of sections). I was coding on a long train trip and everything was going great… My hack worked and GDB fixed and loaded the file without a problem. Next step was to run the program but when I tried I had this surprise:
Print
Share
Comment
Cite
Upload
Translate
APA
() » Anatomy of a GDB anti-debug trick part II: GDB isn’t alone!. Retrieved from https://www.truth.cx/2009/08/26/anatomy-of-a-gdb-anti-debug-trick-part-ii-gdb-isnt-alone/.
MLA" » Anatomy of a GDB anti-debug trick part II: GDB isn’t alone!." - , https://www.truth.cx/2009/08/26/anatomy-of-a-gdb-anti-debug-trick-part-ii-gdb-isnt-alone/
HARVARD » Anatomy of a GDB anti-debug trick part II: GDB isn’t alone!., viewed ,
VANCOUVER - » Anatomy of a GDB anti-debug trick part II: GDB isn’t alone!. [Internet]. [Accessed ]. Available from: https://www.truth.cx/2009/08/26/anatomy-of-a-gdb-anti-debug-trick-part-ii-gdb-isnt-alone/
CHICAGO" » Anatomy of a GDB anti-debug trick part II: GDB isn’t alone!." - Accessed . https://www.truth.cx/2009/08/26/anatomy-of-a-gdb-anti-debug-trick-part-ii-gdb-isnt-alone/
IEEE" » Anatomy of a GDB anti-debug trick part II: GDB isn’t alone!." [Online]. Available: https://www.truth.cx/2009/08/26/anatomy-of-a-gdb-anti-debug-trick-part-ii-gdb-isnt-alone/. [Accessed: ]