13. • How to say hello world
• Need write something to stdout
• Write string into men
• Setup register
• Call syscall
• Need to exit normally
• Setup register
• Call syscall
13
14. • How to say hello world
• Need write something to stdout
• Write string into mem
• Setup register
• Call syscall
• Need to exit normally
• Setup register
• Call syscall
14
15. • How to say hello world
• Need write something to stdout
• Write string into mem
• Setup register
• Call syscall
• Need to exit normally
• Setup register
• Call syscall
15
23. • Buffer Overflow
• Stack Variable/Function are store as stack.
• Write something to variable === Write to mem
23
24. Conclusion
• SMC in ASM is the supported method, if
• Find out where can write to
• How many you can write to
• Then, just write the code into memory
24