HyperDbg Debugger
Loading...
Searching...
No Matches
x.cpp File Reference

parse symbols More...

#include "pch.h"

Functions

VOID CommandXHelp ()
 help of the x command
 
VOID CommandX (vector< string > SplitCommand, string Command)
 x command handler
 

Detailed Description

parse symbols

Author
Sina Karvandi (sina@.nosp@m.hype.nosp@m.rdbg..nosp@m.org)
Version
0.1
Date
2021-05-31

Function Documentation

◆ CommandX()

VOID CommandX ( vector< string > SplitCommand,
string Command )

x command handler

Parameters
SplitCommand
Command
Returns
VOID
41{
42 if (SplitCommand.size() == 1)
43 {
44 ShowMessages("incorrect use of the 'x'\n\n");
46 return;
47 }
48
49 //
50 // Trim the command
51 //
52 Trim(Command);
53
54 //
55 // Remove x from it
56 //
57 Command.erase(0, SplitCommand.at(0).size());
58
59 //
60 // Trim it again
61 //
62 Trim(Command);
63
64 //
65 // Search for mask
66 //
68}
void Trim(std::string &s)
trim from both ends and start of a string (in place)
Definition common.cpp:594
VOID ShowMessages(const char *Fmt,...)
Show messages.
Definition libhyperdbg.cpp:96
UINT32 ScriptEngineSearchSymbolForMaskWrapper(const char *SearchMask)
ScriptEngineSearchSymbolForMask wrapper.
Definition script-engine-wrapper.cpp:116
VOID CommandXHelp()
help of the x command
Definition x.cpp:20

◆ CommandXHelp()

VOID CommandXHelp ( )

help of the x command

Returns
VOID
21{
22 ShowMessages("x : searches and shows symbols (wildcard) and corresponding addresses.\n\n");
23
24 ShowMessages("syntax : \tx [Module!Name (wildcard string)]\n");
25
26 ShowMessages("\n");
27 ShowMessages("\t\te.g : x nt!ExAllocatePoolWithTag \n");
28 ShowMessages("\t\te.g : x nt!ExAllocatePool* \n");
29 ShowMessages("\t\te.g : x nt!* \n");
30}