A Study of Shellcode Execution and Its Implementation
- Author
- WeiZhiQiang
- Advisor
- NiuXiaMu
- School
- Harbin Institute of Technology
- Major
- Computer Science and Technology
- Classification
- TP309 Security and confidentiality
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 5
- Citations
- 0
Abstract
With the development of computer technology, computer technology hasbecome a key technology in various industry to improve its production efficiency.While people enjoy the convenience brought by the new technology, they alsoconfront severe situation day by day.As the Von Neumann structure computer successfully loads data andinstructions in memory, and the computer doesn’t check the EIP real-timely, somedata could obtain the execution authority. This technology could be called Shellcodeexecution. There are two kinds of methods to realize Shellcode execution, usingsystem exploit is one way, the other way is using PE file packer. Shellcode doesn’thave the PE file structure. This paper studies core technology after induction andsummarization by using different ways to realize Shellcode execution.StudyingShellcode execution has important significance for studying and designing securitysoftware system. This paper designs and makes a Shellcode execution system. Themain work is shown as below:Firstly, this paper studies deeply into PE file format and packing PE file indifferent way, and uses the insert-new-section method to realize packding PE file.This paper presents a new method to execute Shellcode more safely by usingpacking PE files and using disguised PE file.Secondly, this paper studies Windows heap overflows technology and realizesShellcode execution by using JPEG heap overflow exploitation. While generatingShellcode, this paper presents two methods to decode Shellcode to avoid specialcharacter appearing in the final Shellcode which makes Shellcode execute normally.Finally,on analyzing the common characteristics of Shellcode triggered byvarious trigger mode, this paper summarizes the same technical issues existed in thedesign of Shellcode not having PE structures, which are locating variable、locatingAPI and decoding Shellcode before execution. Basically,this paper presents severalways to locate API. While locating variable, this paper presents a new metod tolocate variable that is construting data section in Shellcode which will generateshorter Shellcode and makes Shellcode needs less memory space by contrastexperiment indicating.
Table of contents
Summary 4-5
Abstract 5-8
Chapter 1 Introduction 8-13
1.1 research background , purpose and meaning object and research development status 1.2 8-9
9-11
1.3 This article contents and structure 11-13
Chapter 2 Research nbsp trigger code ; 13-27
2.1 Introduction 13
2.2 code based on PE file packers trigger 13-20
2.2.1 PE file format 14-18
2.2.2 PE files packed in different ways 18-19
2.2.3 PE file disguised 19-20
2.3 based on JPEG buffer overflow code to trigger 20-26
2.3.1 heap buffer overflow 20-23
2.3.2 JPEG buffer overflow causes 23-24 <br / > use 2.3.3 JPEG buffer vulnerabilities 24-26
2.4 Summary 26-27
Shellcode Chapter 3 key technologies designed 27 - 37
3.1 Introduction 27
Location 3.2 Shellcode in variable 27-32
3.2.1 Shellcode generation methods and common variable positioning 27 optimization -30
3.2.2 memory constrained situation variable positioning 30-32
3.3 Shellcode positioning functions in 32-34
3.4 Shellcode encryption and decryption 34-36
3.5 Summary 36-37
Chapter 4 system Design and Analysis of Results 37-49
4.1 PE file packers trigger Shellcode design and Implementation 37-40
4.1.1 system functional requirements and the input and output 37
4.1.2 system design and module 37 -40
4.2 JPEG vulnerability based design and implementation of the code triggers 40-41
4.3 system validation and analysis of experimental results 41-48
4.4 Summary 48-49
conclusion 49-50
References published during 50-53
master's degree thesis 53-55
Thanks 55