C# Class GrayStorm.CToAsmAttackChain

显示文件 Open project: GrayKernel/GrayStorm Class Usage Examples

Public Methods

Method Description
newPrelude ( IntPtr payloadAddress ) : byte[]

Create the new method prelude that will be plotted over the target method.

newPrelude64 ( IntPtr payloadAddress ) : byte[]

Create the new method prelude that will be plotted over the target method.

payloadCleaner ( int containedIndex, IntPtr methodPointer, int indexToStartCleaning ) : void

Cleanup for the payload to restore the origional method. Requires 12 bytes for 32bit.

payloadCleaner64 ( int containedIndex, IntPtr methodPointer, int indexToStartCleaning ) : void

Method Details

newPrelude() public static method

Create the new method prelude that will be plotted over the target method.
public static newPrelude ( IntPtr payloadAddress ) : byte[]
payloadAddress System.IntPtr The address of the payload. Will be converted into a 7 byte preleude.
return byte[]

newPrelude64() public static method

Create the new method prelude that will be plotted over the target method.
public static newPrelude64 ( IntPtr payloadAddress ) : byte[]
payloadAddress System.IntPtr The address of the payload. Will be converted into a 7 byte preleude.
return byte[]

payloadCleaner() public static method

Cleanup for the payload to restore the origional method. Requires 12 bytes for 32bit.
public static payloadCleaner ( int containedIndex, IntPtr methodPointer, int indexToStartCleaning ) : void
containedIndex int The index in StorageInformation of the Method that will be changed
methodPointer System.IntPtr The pure IntPtr of the Method that is changing
indexToStartCleaning int The index in the payload of where 12 bytes can be written.
return void

payloadCleaner64() public static method

public static payloadCleaner64 ( int containedIndex, IntPtr methodPointer, int indexToStartCleaning ) : void
containedIndex int The index in StorageInformation of the Method that will be changed
methodPointer System.IntPtr The pure IntPtr of the Method that is changing
indexToStartCleaning int The index in the payload of where 12 bytes can be written.
return void