Script monitoring method and device
A technology for scripting and monitoring information, applied in hardware monitoring, computer security devices, instruments, etc., can solve problems such as being susceptible to interference and poor script monitoring effect, and achieve the effect of strengthening monitoring
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] In the dynamic analysis platform, when the VBS script is running, use the API hooking technology to hook the decryption function used for script decryption in the memory, which is located in the vbscript.dll module. When Wscript.exe executes VBS scripts, it will load vbscript.dll as the execution engine. For encrypted or unencrypted functions (that is, functions in the script), the code of the script must be compiled by vbscript.dll before the code of the script can be executed by the machine.
[0053] Figure 6 It is a flow chart of VBS script monitoring according to a preferred embodiment of the present application, such as Figure 6 As shown, the process includes the following steps:
[0054] Step S602, locate the function responsible for compiling by the VBS engine, and the function is located in COleScript::Compile.
[0055] Step S604, when the normal execution of the VBS script proceeds to the compiling function, the content pointed to by a field in the compili...
Embodiment 2
[0060] In this preferred embodiment, another script file: batch file is taken as an example for description.
[0061] Batch file: it is a file with the suffix .bat under the Windows series operating system (Windows) platform. Batch files are interpreted and executed by the system process cmd.exe.
[0062] Figure 7 It is a flow chart of BAT script monitoring according to a preferred embodiment of the present application, such as Figure 7 As shown, the process includes the following steps:
[0063] Step S702, the cmd.exe process performs syntax analysis on the BAT file (that is, the batch file) to be executed.
[0064] Step S704, the cmd.exe process divides each instruction.
[0065] Step S706, when the cmd.exe process dispatches and executes, obtain the execution right, and print out a log (log).
[0066] In step S708, the cmd.exe process distributes the divided instructions.
[0067] Through the above steps, the execution command of the entire BAT script can be obtaine...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


