Skip to content

Commit

Permalink
Version 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ufrisk committed Jul 12, 2019
1 parent a5d4709 commit 91e1208
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 7 deletions.
Binary file modified files/agent/x64/leechagent.exe
Binary file not shown.
Binary file modified files/agent/x64/leechcore.dll
Binary file not shown.
Binary file modified files/agent/x64/leechcorepyc.pyd
Binary file not shown.
Binary file modified files/agent/x64/vmm.dll
Binary file not shown.
22 changes: 21 additions & 1 deletion files/agent/x64/vmmpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
# (c) Ulf Frisk, 2018-2019
# Author: Ulf Frisk, [email protected]
#
# Header Version: 2.6
# Header Version: 2.7
#

import atexit
from vmmpyc import *

#------------------------------------------------------------------------------
Expand Down Expand Up @@ -61,6 +62,7 @@ def VmmPy_Close():
Example:
VmmPy_Close()
"""
atexit.unregister(VmmPy_Close)
VMMPYC_Close()


Expand Down Expand Up @@ -107,6 +109,7 @@ def VmmPy_Initialize(args, is_printf = True, is_verbose = False, is_verbose_extr
if is_verbose_tlp:
args.append("-vvv")
VMMPYC_Initialize(args)
atexit.register(VmmPy_Close)



Expand Down Expand Up @@ -489,6 +492,23 @@ def VmmPy_WinReg_HiveWrite(va_hive, address, bytes_data):



#------------------------------------------------------------------------------
# VmmPy NETWORK FUNCTIONALITY BELOW:
#------------------------------------------------------------------------------

def VmmPy_WinNet_Get():
"""Retrieve networking information
Keyword arguments:
return -- dict with 'TcpE' list with dict for each TCP connection.
Example:
VmmPy_WinReg_HiveList() --> {'TcpE': [{'ver': 4, 'pid': 612, 'state': 4, 'va': 18446690201099026448, 'time': 131983383869225588, 'time-str': '2019-03-29 13:06:26 UTC', 'src-ip': '127.0.0.1', 'src-port': 51734, 'dst-ip': '127.0.0.1', 'dst-port': 51733}, ...]}
"""
return VMMPYC_WinNet_Get()



#------------------------------------------------------------------------------
# VmmPy VFS (Virtual File System) FUNCTIONALITY BELOW:
#------------------------------------------------------------------------------
Expand Down
Binary file modified files/agent/x64/vmmpyc.pyd
Binary file not shown.
Binary file modified files/agent/x86/leechagent.exe
Binary file not shown.
Binary file modified files/agent/x86/leechcore.dll
Binary file not shown.
Binary file modified files/leechcore.dll
Binary file not shown.
Binary file modified files/leechcorepyc.pyd
Binary file not shown.
Binary file modified files/x86/leechcore.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions leechagent/leechagent_procparent.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include "util.h"
#include <stdio.h>

#define PROCPARENT_STDOUT_SIZE 0x00100000 // 1MB
#define PROCPARENT_STDERR_SIZE 0x00020000 // 128kB
#define PROCPARENT_STDOUT_SIZE 0x00400000 // 4MB
#define PROCPARENT_STDERR_SIZE 0x00040000 // 256kB

typedef struct tdPROCPARENT_CONTEXT {
PROCESS_INFORMATION ChildProcessInfo;
Expand Down
2 changes: 1 addition & 1 deletion leechagent/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define VERSION_MAJOR 1
#define VERSION_MINOR 2
#define VERSION_REVISION 1
#define VERSION_REVISION 2
#define VERSION_BUILD 0

#define VER_FILE_DESCRIPTION_STR "LeechAgent Memory Acquisition Service"
Expand Down
4 changes: 2 additions & 2 deletions leechcore/leechrpcclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ BOOL LeechRPC_Open(_In_ BOOL fIsRpc)
memcpy(&ctxDeviceMain->cfg, &pMsgRsp->cfg, sizeof(LEECHCORE_CONFIG));
ctxDeviceMain->cfg.pfn_printf_opt = pfn_printf_opt_tmp;
ctxDeviceMain->cfg.fRemote = TRUE;
ctxDeviceMain->cfg.cbMaxSizeMemIo = 0x01000000; // 16MB
ctxDeviceMain->fDeviceMultiThread = TRUE;
ctxDeviceMain->cfg.cbMaxSizeMemIo = 0x01000000; // 16MB
ctxDeviceMain->fDeviceMultiThread = ctx->fIsRpc; // RPC = multi-thread, PIPE = single-thread access
if(pMsgRsp->flags & LEECHRPC_FLAG_FNEXIST_ReadScatterMEM) {
ctxDeviceMain->pfnReadScatterMEM = LeechRPC_ReadScatterMEM;
}
Expand Down
2 changes: 1 addition & 1 deletion leechcore/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define VERSION_MAJOR 1
#define VERSION_MINOR 2
#define VERSION_REVISION 1
#define VERSION_REVISION 2
#define VERSION_BUILD 0

#define VER_FILE_DESCRIPTION_STR "LeechCore Memory Acquisition Library"
Expand Down

0 comments on commit 91e1208

Please sign in to comment.