Class RopChainGenerator32
Attempts to create Rop chains from 64 bit processes.
Inheritance
System.Object
RopChainGenerator32
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ERC.Utilities
Assembly: ERC.Net.dll
Syntax
public class RopChainGenerator32
Constructors
RopChainGenerator32(ProcessInfo)
Constructor.
Declaration
public RopChainGenerator32(ProcessInfo _info)
Parameters
Type | Name | Description |
---|---|---|
ProcessInfo | _info | The ProcessInfo object. |
Fields
VirtualAllocChain
Contains a ROP chain which calls the VirtualAlloc method.
Declaration
public List<Tuple<byte[], string>> VirtualAllocChain
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Tuple<System.Byte[], System.String>> |
Methods
GenerateRopChain32(Byte[], Byte[], List<String>)
Creates a RopChain for a specific process.
Declaration
public ErcResult<string> GenerateRopChain32(byte[] ptrsToExclude, byte[] startAddress = null, List<string> excludes = null)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | ptrsToExclude | Takes a byte array of values used to disqualify ROP gadgets |
System.Byte[] | startAddress | A Address to be used as the start location for which memory will be made executable |
System.Collections.Generic.List<System.String> | excludes | A list of modules to be excluded from the search for ROP gadgets |
Returns
Type | Description |
---|---|
ErcResult<System.String> | Returns an ErcResult string containing |
GenerateRopChain32(Byte[], List<String>)
Creates a RopChain for a specific process.
Declaration
public ErcResult<string> GenerateRopChain32(byte[] startAddress = null, List<string> excludes = null)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | startAddress | A Address to be used as the start location for which memory will be made executable |
System.Collections.Generic.List<System.String> | excludes | A list of modules to be excluded from the search for ROP gadgets |
Returns
Type | Description |
---|---|
ErcResult<System.String> | Returns an ErcResult string containing |