妆绵鼎 ROP Basic skill How we use sequences(gadgets)in crafting an attack? In this section,we describe gadgets that perform load/store,arithmetic and logic,control flow,and system call operations. 2023/2/7 11
2023/2/7 11 ROP Basic Skill ⚫ How we use sequences(gadgets) in crafting an attack? In this section, we describe gadgets that perform load/store, arithmetic and logic, control flow, and system call operations
效绵县 ROP Basic skill Loading a Constant. Oxdeadbeef %esp pop %edx ret 2023/217 12
2023/2/7 12 ROP Basic Skill ⚫ Loading a Constant
效绵县 ROP Basic Skill Loading from memory.Load a word in memory into %oeax. movl 64(%eax),%eax ret pop %eax %esp ret 0xdeadbeef +64 2023/2/7 13
2023/2/7 13 ROP Basic Skill ⚫ Loading from memory. Load a word in memory into %eax
效绵县 ROP Basic skill Storing to memory.Store %eax to a word in memory. movl %eax,24(%edx) ret pop %edx %esp ret +24 2023/2/7 14
2023/2/7 14 ROP Basic Skill ⚫ Storing to memory. Store %eax to a word in memory
效绵县 ROP Basic Skill Simple add into %eax. -addl (%edx),%eax push %edi ret pop %edx ret ret ·pop%edi %esp ret Oxdeadbeef 2023/2/7 15
2023/2/7 15 ROP Basic Skill ⚫ Simple add into %eax