Shellcode coding and decoding deformation method
A codec and encryption algorithm technology, applied in the field of shellcode codec deformation, can solve the problems of traffic hijacking analysis, easy to be reversed or static analysis, unfavorable information hiding, etc., to prevent hijacking analysis, efficient vulnerability detection and utilization, execution vulnerability detection The effect of using
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0018] A shellcode encoding and decoding deformation method, such as figure 1 shown, including the following steps:
[0019] Step 1. Use a C language compiler or other compilation tools to write a shellcode program and extract the shellcode.
[0020] Step 2: Use the random number generator to generate a 2-byte short random integer G.
[0021] Because in step three, the random integer needs to be transformed to obtain the encryption key. There are many ways to generate random integers, as long as the random numbers generated each time meet the length requirements.
[0022] Another way to calculate a random number is to use the current timestamp to calculate its hash value, and take the ASCII code value of some specific bits to generate a new random number G. The pseudocode for computing G is shown below.
[0023] String strTimeStampHash = Calc_SHA1((int)time(0));
[0024] String strGenRandNum = strTimeStampHash[0:1]+strTimeStampHash[7:8];
[0025] Int intGenRand = StringT...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


