diff --git a/c/meterpreter/source/extensions/stdapi/server/sys/process/memory.c b/c/meterpreter/source/extensions/stdapi/server/sys/process/memory.c index a710248b7..c0dd47153 100644 --- a/c/meterpreter/source/extensions/stdapi/server/sys/process/memory.c +++ b/c/meterpreter/source/extensions/stdapi/server/sys/process/memory.c @@ -643,6 +643,13 @@ DWORD request_sys_process_memory_search(Remote* remote, Packet* packet) dprintf("[MEM SEARCH] -- ! FOUND A REGEX MATCH ! --"); dprintf("[MEM SEARCH] Address: %p", match_address); + if (match_length < min_match_length) + { + dprintf("[MEM SEARCH] Match length was too short, skipping."); + current_buffer_offset += (result + match_length); + continue; + } + dprintf("[MEM SEARCH] Creating results group"); Packet* search_results = met_api->packet.create_group();