diff --git a/data/source/antiemulation/sirallocalot.c b/data/source/antiemulation/sirallocalot.c index dbd9449..e0822ff 100644 --- a/data/source/antiemulation/sirallocalot.c +++ b/data/source/antiemulation/sirallocalot.c @@ -1,8 +1,12 @@ -#define ALLOC_NUM 256 - -/* This will allocate ALLOC_NUM RW memory regions, +#define SIR_ITERATION_COUNT {{SIR_ITERATION_COUNT}} +#define SIR_ALLOC_COUNT {{SIR_ALLOC_COUNT}} + +#define SIR_SLEEP_TIME 200 // ms + + +/* This will allocate SIR_ALLOC_COUNT RW memory regions, set them to RX, and free them The idea is that the AV emulator will probably give up, either because @@ -14,24 +18,35 @@ */ void antiemulation() { - void* allocs[ALLOC_NUM]; + void* allocs[SIR_ALLOC_COUNT]; DWORD result; - for(int i=0; i<4; i++) { - - for(int n=0; n 256: + sir_alloc_count = 256 + logging.info(" AntiEmulation target: iterations: {} alloc: {}".format( + sir_iteration_count, sir_alloc_count) + ) + plugin_antiemualation = file.read() plugin_antiemualation = Template(plugin_antiemualation).render({ 'PAYLOAD_LEN': payload_len, + 'SIR_ALLOC_COUNT': sir_alloc_count, + 'SIR_ITERATION_COUNT': sir_iteration_count, }) # Plugin: Decoy diff --git a/supermega.py b/supermega.py index 67aad9f..d589968 100644 --- a/supermega.py +++ b/supermega.py @@ -109,7 +109,7 @@ def start(settings: Settings) -> int: prepare_project(settings.project_name, settings) # Do the thing and catch the errors - if True: + if False: start_real(settings) else: try: