/// <summary> /// Informs objects using this technique whether or not it supports the type of a particular payload. /// </summary> /// <author>The Wover (@TheRealWover)</author> /// <param name="Payload">A payload.</param> /// <returns>Whether or not the payload is of a supported type for this strategy.</returns> public abstract bool IsSupportedPayloadType(PayloadType Payload);
/// <summary> /// States whether the payload is supported. /// </summary> /// <author>The Wover (@TheRealWover)</author> /// <param name="Payload">Payload that will be allocated.</param> /// <returns></returns> public override bool IsSupportedPayloadType(PayloadType Payload) { return(supportedPayloads.Contains(Payload.GetType())); }
/// <summary> /// Inject a payload into the current process using a specified allocation and execution technique. /// </summary> /// <param name="Payload"></param> /// <param name="AllocationTechnique"></param> /// <param name="ExecutionTechnique"></param> /// <returns></returns> public static bool Inject(PayloadType Payload, AllocationTechnique AllocationTechnique, ExecutionTechnique ExecutionTechnique) { return(ExecutionTechnique.Inject(Payload, AllocationTechnique)); }