Script engine parser and wrapper functions.  
More...
#include "pch.h"
Script engine parser and wrapper functions. 
- Author
- Sina Karvandi (sina@.nosp@m.hype.nosp@m.rdbg..nosp@m.org) 
- 
M.H. Gholamrezaei (mh@hy.nosp@m.perd.nosp@m.bg.or.nosp@m.g)
- Version
- 0.1 
- Date
- 2020-10-22
- Copyright
- This project is released under the GNU Public License v3. 
◆ ScriptEngineGetTargetCoreDate()
      
        
          | UINT64 ScriptEngineGetTargetCoreDate | ( |  | ) |  | 
      
 
Update core's date time and return date. 
- Returns
- UINT64 
  110{
  111    ULONG                       CurrentCore = KeGetCurrentProcessorNumberEx(NULL);
 
  113 
  114    
  115    
  116    
  118 
  119    
  120    
  121    
  123}
unsigned __int64 UINT64
Definition BasicTypes.h:21
unsigned long ULONG
Definition BasicTypes.h:37
VOID ScriptEngineUpdateTargetCoreDateTime(PROCESSOR_DEBUGGING_STATE *DbgState)
Create and update the target core date and time.
Definition ScriptEngine.c:58
CHAR DateBuffer[12]
Definition State.h:154
Saves the debugger state.
Definition State.h:165
DATE_TIME_HOLDER DateTimeHolder
Definition State.h:173
 
 
◆ ScriptEngineGetTargetCoreTime()
      
        
          | UINT64 ScriptEngineGetTargetCoreTime | ( |  | ) |  | 
      
 
Update core's date time and return time. 
- Returns
- UINT64 
   88{
   89    ULONG                       CurrentCore = KeGetCurrentProcessorNumberEx(NULL);
 
   91 
   92    
   93    
   94    
   96 
   97    
   98    
   99    
  101}
CHAR TimeBuffer[14]
Definition State.h:153
 
 
◆ ScriptEngineUpdateTargetCoreDateTime()
Create and update the target core date and time. 
- Parameters
- 
  
    | DbgState | The processor debugging state |  
 
- Returns
- VOID 
   59{
   60    LARGE_INTEGER SystemTime, LocalTime;
   61    KeQuerySystemTime(&SystemTime);
   62    ExSystemTimeToLocalTime(&SystemTime, &LocalTime);
   64 
   67              "%02hd:%02hd:%02hd.%03hd",
   72 
   75              "%04hd-%02hd-%02hd",
   79}
TIME_FIELDS TimeFields
Definition State.h:152
 
 
◆ ScriptEngineWrapperGetAddressOfReservedBuffer()
Get the address of reserved buffer. 
- Parameters
- 
  
    | Action | Corresponding action |  
 
- Returns
- UINT64 returns the requested buffer address from user 
   47{
   49}
DEBUGGER_EVENT_REQUEST_BUFFER RequestedBuffer
Definition Debugger.h:92
UINT64 RequstBufferAddress
Definition RequestStructures.h:842
 
 
◆ ScriptEngineWrapperGetInstructionPointer()
      
        
          | UINT64 ScriptEngineWrapperGetInstructionPointer | ( |  | ) |  | 
      
 
Get current ip from the debugger frame. 
- Returns
- UINT64 returns the rip of the current debuggee state frame 
   22{
   23    
   24    
   25    
   27    {
   29    }
   30    else
   31    {
   32        
   33        
   34        
   36    }
   37}
#define TRUE
Definition BasicTypes.h:55
BOOLEAN VmFuncVmxGetCurrentExecutionMode()
Get the current VMX operation state.
Definition Export.c:552
UINT64 VmFuncGetRip()
Read guest's RIP.
Definition Export.c:375
NULL()
Definition test-case-generator.py:530