- Learning Linux Binary Analysis
- Ryan “elfmaster” O'Neill
- 234字
- 2021-07-16 12:56:54
Chapter 3. Linux Process Tracing
In the last chapter, we covered the internals of the ELF
format and explained its internal workings. In Linux and other Unix-flavored OSes that use ELF
, the ptrace
system call goes hand in glove with analyzing, debugging, reverse engineering, and modifying programs that use the ELF
format. The ptrace
system call is used to attach to a process and access the entire range of code, data, stack, heap, and registers.
Since an ELF
program is completely mapped in a process address space, you can attach to the process and parse or modify the ELF
image very similarly to how you would do this with the actual ELF
file on disk. The primary difference is that we use ptrace
to access the program instead of using the open/mmap/read/write
calls that would be used for the ELF
file.
With ptrace
, we can have full control over a program's execution flow, which means that we can do some very interesting things, ranging from memory virus infection and virus analysis/detection to userland memory rootkits, advanced debugging tasks, hotpatching, and reverse engineering. Since we have entire chapters in this book dedicated to some of these tasks, we will not cover each of these in depth just yet. Instead, I will provide a primer for you to learn about some of the basic functionality of ptrace
and how it is used by hackers.
- Mastering Entity Framework Core 2.0
- Mastering AWS Lambda
- 嵌入式軟件系統(tǒng)測試:基于形式化方法的自動化測試解決方案
- Beginning Java Data Structures and Algorithms
- Vue.js 2 and Bootstrap 4 Web Development
- Bootstrap 4:Responsive Web Design
- Building a Quadcopter with Arduino
- Learning Salesforce Einstein
- 單片機應用與調(diào)試項目教程(C語言版)
- 軟件測試技術(shù)指南
- OpenStack Networking Essentials
- Clojure for Java Developers
- C#程序設(shè)計基礎(chǔ)入門教程
- HTML5 WebSocket權(quán)威指南
- Web開發(fā)新體驗