Sign in to follow this  
Followers 0
code

help with enum and dllstructcreate

1 post in this topic

hi, im having a problem translating this code to autoit, is it possible to translate it?

enum eTargetType
{
    TARGET_PROCESS,
    TARGET_FILE
};

enum eSourceType
{
    SOURCE_FILE,
    SOURCE_RESOURCE,
};
enum eInjectFlags
{
    INJECT_RANDOMPOSITION   = 0x00000001,
    INJECT_RANDOMHEAD       = 0x00000002,
    INJECT_RANDOMTAIL       = 0x00000004,
    INJECT_DESTROYHEADERS   = 0x00000008,

};
enum eISErrors
{
    SIERR_OK,
    SIERR_TFILENOTFOUND,
    SIERR_SFILENOTFOUND,
    SIERR_PROCNOTFOUND,
    SIERR_RESCNOTFOUND,
    SIERR_NOMEMORY,
    SIERR_PROCESSCREATE,
};
typedef struct 
{

    eTargetType TargetType;
    char *Target; 

    eSourceType SourceType;
    union
    {
        char *Source;
        HRSRC hResource;
    };

    DWORD Options;
    DWORD RandomMax;

}INJECTINFO,*PINJECTINFO;

typedef struct 
{
    HANDLE hProcess;
    DWORD ProcMemoryAddress;
    DWORD ProcMemoryAllocatedSize;

    DWORD DLLMainAddress;
    DWORD DLLImageSize;
    DWORD PEHeaderAddress;
    DWORD DataAddress;

    DWORD HeadSize;
    DWORD TailSize;

}INJECTSTATS,*PINJECTSTATS;

int StealthInject(INJECTINFO *Info,INJECTSTATS *Stats,void* Data,DWORD Length);
char* GetErrorMessage(int Err);

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0