CN110275836A - Safety detecting method, device and the storage medium of illusory engine application - Google Patents

Safety detecting method, device and the storage medium of illusory engine application Download PDF

Info

Publication number
CN110275836A
CN110275836A CN201910569288.7A CN201910569288A CN110275836A CN 110275836 A CN110275836 A CN 110275836A CN 201910569288 A CN201910569288 A CN 201910569288A CN 110275836 A CN110275836 A CN 110275836A
Authority
CN
China
Prior art keywords
function
metadata
data
power function
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910569288.7A
Other languages
Chinese (zh)
Other versions
CN110275836B (en
Inventor
周江
严明
周洪斌
王枭
王建行
李建颖
邱学倩
胥培
罗德志
杨伟
蒋洪伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tencent Information Technology Co Ltd
Original Assignee
Shenzhen Tencent Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tencent Information Technology Co Ltd filed Critical Shenzhen Tencent Information Technology Co Ltd
Priority to CN201910569288.7A priority Critical patent/CN110275836B/en
Publication of CN110275836A publication Critical patent/CN110275836A/en
Application granted granted Critical
Publication of CN110275836B publication Critical patent/CN110275836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present application discloses safety detecting method, device and the storage medium of a kind of illusory engine application, belongs to field of computer technology.The described method includes:, according to the Element generation metadata chained list in the code of the application program with reflecrtive mark, the metadata in the metadata chained list is used to describe the information of the element in the application program that operation is developed based on illusory engine;The corresponding data of the element are obtained according to the metadata of the element;Safety test is carried out to the element according to the element and the element corresponding data.The embodiment of the present application can determine element and the corresponding data of element by metadata chained list, when solving through symbol table lookup element, search efficiency and accuracy rate are lower, and the problem of safety test can not being carried out to the element for not including in symbol table, to improve the testing efficiency and test scope of safety test.

Description

Safety detecting method, device and the storage medium of illusory engine application
Technical field
The invention relates to field of computer technology, in particular to a kind of safety test side of illusory engine application Method, device and storage medium.
Background technique
Programmer can be used illusory engine and carry out development and application program.Before being issued to the application program of exploitation, It needs first to carry out safety test to application program.
In the related technology, the symbol table of the available application program of programmer, comprising the application program in the symbol table The data of parameters in the function identification of each function and function involved in code;According to the function identification of each function There may be the functions of security risk for lookup;Safety test is carried out to the data of parameters in the function and the function.
When programmer searches the function there may be security risk according to function name in symbol table, larger workload and appearance It is error-prone, so that the search efficiency of function and accuracy rate are lower;In addition, some functions in code may be not contained in symbol In table, then, programmer can not find these functions from symbol table, also just can not carry out safety test to these functions.
Summary of the invention
The embodiment of the present application provides safety detecting method, device and the storage medium of a kind of illusory engine application, is used for When solving to search function by symbol table, the search efficiency and accuracy rate of function are lower, and can not include in symbol table Function carries out the problem of safety test.The technical solution is as follows:
On the one hand, a kind of safety detecting method of illusory engine application is provided, which comprises
In the application program that operation is developed based on illusory engine, according in the code of the application program there is reflection to mark The Element generation metadata chained list of note, the metadata in the metadata chained list are used to describe the information of the element;
The corresponding data of the element are obtained according to the metadata of the element;
Safety test is carried out to the element according to the element and the element corresponding data.
On the one hand, a kind of safety instrumentation of illusory engine application is provided, described device includes:
Generation module, when application program for being developed in operation based on illusory engine, according to the generation of the application program There is the Element generation metadata chained list of reflecrtive mark, the metadata in the metadata chained list is for describing the element in code Information;
Module is obtained, for obtaining the corresponding data of the element according to the metadata of the element;
Test module, for carrying out safety test to the element according to the element and the corresponding data of the element.
On the one hand, provide a kind of computer readable storage medium, be stored in the storage medium at least one instruction, At least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or refer to Collection is enabled to be loaded by processor and executed to realize the safety detecting method of illusory engine application as described above.
On the one hand, provide a kind of terminal, the terminal includes processor and memory, be stored in the memory to A few instruction, described instruction is loaded by the processor and executed to be surveyed with the safety for realizing illusory engine application as described above Method for testing.
The beneficial effect of technical solution provided by the embodiments of the present application includes at least:
Due to illusory engine supporting reflex mechanism, so, the element in the code of illusory engine application has reflecrtive mark, The metadata chained list that each element in code can be generated according to the reflecrtive mark, is obtained further according to the metadata of each element The corresponding data of the element are taken, so that the safety test to element data corresponding with the element is realized, in this way, can pass through Element both can be improved to obtain element data corresponding with the element without manually searching element in symbol table in metadata Search efficiency and accuracy rate, to improve the testing efficiency of safety test;It can also be to avoid due to not including certain in symbol table When one element, can not to the element carry out safety test the problem of, to expand the test scope of safety test.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the signal of the element with reflecrtive mark in the code for the application program that one embodiment of the application provides Figure;
Fig. 2 is the schematic diagram of the display interface for the safe test tool that one embodiment of the application provides;
Fig. 3 is the schematic diagram of the display interface for the webpage client that one embodiment of the application provides;
Fig. 4 is the structural schematic diagram for implementing a kind of Application testing system exemplified according to exemplary partial;
Fig. 5 is the method flow diagram of the safety detecting method for the illusory engine application that the application one embodiment provides;
Fig. 6 is that the interaction between Android system, VA frame and application program that one embodiment of the application provides is shown It is intended to;
Fig. 7 is the schematic diagram for the metadata that one embodiment of the application provides;
Fig. 8 is the method flow diagram of the safety detecting method for the illusory engine application that another embodiment of the application provides;
Fig. 9 be ProcessEvent, CallFunction that another embodiment of the application provides and three interface functions it Between call relation schematic diagram;
Figure 10 is the flow chart for mono- RPC function of Hook that another embodiment of the application provides;
Figure 11 is the interface schematic diagram for the local function function that the Hook that another embodiment of the application provides is arrived;
Figure 12 is the interface schematic diagram for the network function function that the Hook that another embodiment of the application provides is arrived;
Figure 13 is the schematic diagram of the display interface for editor's test script that another embodiment of the application provides;
Figure 14 is the method flow diagram of the safety detecting method for the illusory engine application that another embodiment of the application provides;
Figure 15 is the structural block diagram of the safety instrumentation for the illusory engine application that the application one embodiment provides;
Figure 16 is the structural block diagram for the terminal that the application another embodiment provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with attached drawing to the application Embodiment is described in further detail.
First the noun being related in the embodiment of the present application is explained below.
1, illusory engine: illusory engine is a kind of exploitation engine of application program, and application program here may include trip Play etc..Illusory engine in the embodiment of the present application refers to illusory engine 4, and full name in English is Unreal Engine 4, referred to as UE4。
2, reflection mechanism: reflection mechanism refers to that application program can be detected and be modified during operation oneself state Ability.Using before reflection mechanism, needing to add correct reflecrtive mark for type, below to wherein basic reflecrtive mark into Row explanation.
UCLASS informs that virtual engine generates class, and such needs to be derived from UObject.
USTRUCT informs that virtual engine generates structural body.
The class method of UFUNCTION, UCLASS or USTRUCT can be used as UFUNCTION.
The member variable of UPROPERTY, UCLASS or USTRUCT can be used as UPROPERTY.
Referring to FIG. 1, all anti-with UPROPERTY in the definition of parameters such as FireRate, MoveSpeed in Fig. 1 Penetrate label.
3, metadata: metadata is to describe the data of data, is mainly used for describing the information of data attribute.
4, metadata chained list: metadata chained list is the chained list of metadata composition, is used between described function and function, function In parameter between, between function and class example, the connection relationship between the variable in class example.
5, Lua:Lua is a kind of scripting language of exquisiteness, is write by standard C language, is almost in all operations It can compile and run on system and platform.
6, remote procedure call (Remote Procedure Call, RPC): RPC is that one kind passes through network from remote computation Service is requested in machine program, the agreement without understanding underlying network technology.In the present embodiment net will be provided with the technology The power function of network service is known as RPC function.
7, Hook: by the presumptive instruction of Modification growth function, to realize a kind of technology for carrying out " abduction " to function.
8, external code code injection: is added to the process in target process and executed.
The application scenarios of the embodiment of the present application are illustrated below.
Application program calls the power function in code in the process of running to realize a certain function.When these power functions When being exposed, user can random operating function function.For example, when application program is battle class game, if the people in game Object is under attack, then application program can call TakeDamage function to reduce the blood volume of the personage.Assuming that calling primary TakeDamage function default reduces the one of personage and bleeds, if user makes to call by the data of parameter in modification power function TakeDamage function reduces the ten of personage and bleeds, alternatively, call number of the user by modification power function, i.e., in people Call TakeDamage function repeatedly when object is by primary injury to reduce the blood volume of personage, then the fighting capacity that will lead to personage is big Big decline, to influence the fairness of game.
In addition, user can also directly modify the data of variable when the variable in the code of application program is exposed.Than Such as, when application program is battle class game, user can directly modify the data for indicating the variable HP of blood volume, for example, There are ten to bleed the data of HP to be revised as one and bleed, to influence the fairness of game.
For the normal operation of maintenance applications, programmer needs element (the function letter in the code to application program Several or variable) safety test is carried out, when detecting that the element is exposed, and operating the element and can change the result of game, It needs to report the element, to repair the element.
The embodiment of the present application can be applied in safe test tool, drawn using the safe test tool to based on illusory Hold up exploitation application program tested before, need first to access the application program in the safe test tool.Wherein, the peace Full testing tool supports the platforms such as android (Android), windows.
After application program to be tested is accessed safe test tool, user can star the safe test tool, And start application program to be tested in the safe test tool.In this way, safe test tool can be in application program launching When, code injection is carried out to the application program, i.e., injects external code to the application program, is realized by the external code to this The safety test of application program.If being named as XUE to the safe test tool, after user starts XUE, in the aobvious of the XUE Show the title 201 for each application program for showing access in interface and the starting entrance 202 of the application program, please refers to Fig. 2. When user wants to test some application program, the application program can be started by the starting entrance 202 of the application program.
In the present embodiment, the terminal of operational safety testing tool also needs to show the webpage client logged in equipment with one Binding relationship is established at end, in this way, after starting application program in safe test tool, the terminal operating application program, and will be outer The monitoring data that portion's code generates in the operational process of the application program is sent to the webpage client of binding, so that display is set The standby monitoring data received to the webpage client shows that user can be according to the monitoring number shown in the display equipment According to progress safety test.Wherein, terminal and webpage client are established there are many kinds of the modes of binding relationship, for example, terminal can be with Same user account number is logged in realize binding with webpage client, alternatively, terminal can scan the figure of webpage client offer Code come realize binding etc., the present embodiment does not limit binding mode.
Below by terminal scanning webpage client provide graphic code come realize binding for be illustrated, referring to FIG. 3, Multiple Shipping Options Pages are shown in Fig. 3 in the display interface of webpage client, are mobile phone connection Shipping Options Page 301, network call respectively Shipping Options Page 302, local calling Shipping Options Page 303, object test label page 304 and script extension tag page 305.Wherein, mobile phone connects It connects and shows a two dimensional code 306 in Shipping Options Page 301, it, can be with the net after terminal scans the two dimensional code 306 and authorized Page client is bound.Network call Shipping Options Page 302 is for showing in monitoring data for providing the function letter of network service Several relevant informations.It is local that Shipping Options Page 303 is called to be used to show the power function for being used to provide local service in monitoring data Relevant information.For showing the relevant information of variable in monitoring data in object test label page 304.Script extension tag page 305 for editing Lua script script.The description in seeing below is discussed in detail in these Shipping Options Pages.
Referring to FIG. 4, it illustrates a kind of structural schematic diagrams of Application testing system provided by the embodiments of the present application. The Application testing system includes terminal 410 and display equipment 420.Terminal 410 and display equipment 4200 pass through cable network Or wireless network establishes connection.
Terminal 410 is that have the equipment of data transmit-receive function, such as smart phone.Safety is installed in first terminal 410 Testing tool and application program to be tested, the application program are the application program developed based on illusory engine.
Show that equipment 420 is that have the equipment of data transmit-receive function, such as computer.Webpage is installed in display equipment 420 Client can communicate between the webpage client and the safe test tool in terminal 410.
It should be noted that multiple webpage clients can be run in a display equipment 420, in this way, a display is set Standby 420 can carry out safety test to the application program in multiple terminals 410 simultaneously, to improve testing efficiency.With one in Fig. 4 A display equipment 420 is illustrated with a terminal 410.
Referring to FIG. 5, it illustrates the safety detecting methods of the illusory engine application of the application one embodiment offer The safety detecting method of method flow diagram, the illusory engine application can be applied in terminal 410 shown in Fig. 4, comprising:
Step 501, anti-according to having in the code of application program in the application program that operation is developed based on illusory engine The Element generation metadata chained list of label is penetrated, the metadata in the metadata chained list is used to describe the information of element.
In application program operation, it is also necessary to dynamic link library is injected, to obtain the code of application program.Wherein, Dynamic link library in Android system can be the library so, and the dynamic link library in windows system can be DLL (library (Dynamic Link Library).The injection process of both dynamic link libraries is illustrated separately below.
In Android system, the safe test tool under Android system is equipped with Virtual App virtual framework (abbreviation VA), the VA frame can be used as the intermediate layer proxy of Android system and application program, can be in non-root Realize the injection in the library so.
Please refer to the interaction schematic diagram between Android system shown in fig. 6, VA frame and application program.Passing through peace After VA frame starting application program in full testing tool, VA frame starts the process of application program, which connects Mouthful, which calls other systems interface and load in Android system by the intermediate treatment layer in VA frame So bank interface.
In windows system, the library DLL can be injected in several ways.It, can in a kind of optional embodiment To inject the library DLL by RemoteDLL tool.
The description of metadata and metadata chained list defined in as detailed above, does not repeat herein.Under in order to make it easy to understand, Face with element for FuncA (int a=1, float b=2.0) for, the metadata of the element is illustrated.Please refer to Fig. 7 Shown in metadata, after being parsed to the element, the entitled UFunction of the function of the available element (FuncA), transmitting Parameter be void*Param, and according to .children field determine first parameter in the function be UProperty (a), A=* (int*) (Param+0), the .Class (type) of the parameter are UIntProperty, and .Offset (offset) is 0;According to .Next field determines that a parameter after parameter UProperty (a) is UProperty (b), b=* (float*) (Param+ 4), then the .Class (type) of the parameter is UFloatProperty, and .Offset (offset) is 4.
Step 502, the corresponding data of the element are obtained according to the metadata of element.
In one element of application call, a data flow can be transmitted to the element, then it can be according in metadata Indicated offset information reads the corresponding data of the element from the data flow.
Step 503, safety test is carried out to the element according to element data corresponding with the element.
In conclusion the safety detecting method of illusory engine application provided by the embodiments of the present application, due to illusory engine branch Reflection mechanism is held, so, the element in the code of illusory engine application has reflecrtive mark, can be according to the reflecrtive mark next life At the metadata chained list of element each in code, the corresponding data of the element are obtained further according to the metadata of each element, from And realize the safety test to element data corresponding with the element, in this way, element can be obtained by metadata and be somebody's turn to do The search efficiency and accuracy rate of element had both can be improved without manually searching element in symbol table in the corresponding data of element, from And improve the testing efficiency of safety test;It, can not be to the element when can also be to avoid due in symbol table not including a certain element The problem of carrying out safety test, to expand the test scope of safety test.
Since element is power function or variable, below by two embodiments respectively to the safety test of both elements It is introduced.Wherein, power function is the function for realizing a Xiang Gongneng (providing a service).
Referring to FIG. 8, it illustrates the safety detecting methods of the illusory engine application of another embodiment offer of the application The safety detecting method of method flow diagram, the illusory engine application can be applied in terminal 410 shown in Fig. 4, and this implementation Element in example is power function.The safety detecting method of the illusory engine application, comprising:
Step 801, it in the application program and the application program loading code that operation develop based on illusory engine, obtains and has There is the metadata of each power function of reflecrtive mark.
Illusory engine has reflection mechanism, the principle of the reflection mechanism are as follows: illusory engine definitions such as UClass, A series of data type of supporting reflex mechanism such as UFunction, UObject, for the encapsulation of illusory engine these with anti- The data types such as function, class, class members, the structural body of label are penetrated, in compiling duration, illusory engine generates extension by macro expansion Code carries out information extraction for the data type after capturing by spreading code, such as extracts the function name of function, function ginseng The metadata such as ordered series of numbers table, parameter type, parameter value form metadata chained list by these metadata links into affiliated object, from And by realizing the parsing to objects such as function and variables using reflection mechanism.
Step 802, the connection relationship between corresponding metadata is determined according to the field in each power function, obtains member Data link table, the metadata in the metadata chained list are used for the information of representation function function.
Field in power function is the field of the relationship in representation function function between each parameter, in Fig. 7 .Children field and .Next field.
By taking Fig. 7 as an example, all UProperty lists can be obtained by the pointer offset of UFunction, are then passed through Member can be obtained so as to obtain the name, type and offset of each parameter in each Uproperty of UProperty list traversal Data link table.
Step 803, the corresponding data of the power function are obtained according to the metadata of power function.
In application call power function, the corresponding data of the available power function.Below first to function letter Several call flows are introduced.
It include native layers and script layers in application program, the native layers is write with C language or C Plus Plus , i.e. power function in native layers is write by C language or C Plus Plus.Script layers are indigo plant with illusory engine Made of graph-based language is write, i.e. power function in script layers is made of being write with the blueprint language of illusory engine.Wherein, Power function in native layers can call the power function in native layers, can also call the function letter in script layers Number;Similarly, the power function in script layers can call the power function in native layers, can also call in script layers Power function.
Power function in the present embodiment includes three kinds, one is the power function in native layer local, one is Power function in ground script layers, one is RPC functions can be set three interface functions for these three power functions. These three interface functions are CallRemoteFunction, ProcessInternal and Invoke respectively.Wherein, all to be sent to The function that server executes passes through CallRemoteFunction, can simply be interpreted as agreement transmission interface, i.e., CallRemoteFunction is the interface function for calling RPC function.The power function of all pairs of script layers of locals It calls by ProcessInternal, i.e. ProcessInternal is for calling local script layers of power function Interface function.The calling of the power function of all pairs of native layers of locals passes through Invoke, i.e. Invoke is for calling this The interface function of ground native layers of power function.
When the power function in native layers needs to call other function function, i.e., from native layers of initiation function call When, which can be sent to ProcessEvent for recalls information, be determined by ProcessEvent according to the recalls information Called power function selects interface function according to the called power function, then the recalls information is sent to this Interface function, the power function for being called this called according to recalls information by the interface function.For example, when called function When function is RPC function, then ProcessEvent calls CallRemoteFunction come the power function that calls this called; When called power function is local native layers of power function, then ProcessEvent calls Invoke to call this Called power function;When called power function is local script layers of power function, then ProcessEvent The power function for calling ProcessInternal to call this called.
When the power function in script layers needs to call other function function, i.e., from script layers of initiation function call When, which can be sent to CallFunction for recalls information, be determined by CallFunction according to the recalls information Called power function selects interface function according to the called power function, then the recalls information is sent to this Interface function, the power function for being called this called according to recalls information by the interface function.For example, when called function When function is RPC function, then CallFunction calls CallRemoteFunction come the power function that calls this called; When called power function is local native layers of power function, then CallFunction calls Invoke to call this Called power function;When called power function is local script layers of power function, then CallFunction The power function for calling ProcessInternal to call this called.
Referring to FIG. 9, it illustrates the calling passes between ProcessEvent, CallFunction and three interface functions System.
Since the power function of script layers of local native layers of power function and local is all used to provide local service, So both power functions can be referred to as being used to provide the power function of local service.Below to for providing local The data acquisition process of service and two kinds of power functions for providing network service is illustrated.
If power function, in application call power function, is intercepted and captured to interface function for providing local service The function call information of transmission, the function call information are used to indicate interface function invoking performance function;To in predetermined amount of time The call number of power function is counted, and is knot at the time of receiving sign at the beginning of the predetermined amount of time The beam moment is at the time of receiving END instruction.
In an optional embodiment, local call that can be shown in Fig. 3 shows beginning control on Shipping Options Page 303 With end control, when starting control when the user clicks, the external code injected in the application program receives sign on, starts Monitoring;Later, user can operate application program, the operation need to trigger application call user think it is to be tested Power function passes through the Hook stroke analysis power function in the application call power function convenient for the external code Call number;User clicks end control again, which receives END instruction, terminates monitoring, and obtain receiving out Begin to instruct the calling with each power function and each power function that monitor (i.e. in predetermined amount of time) during END instruction Number.
Wherein, recalls information includes the function identification of a power function, function address, the number for passing to the power function According to stream etc., this embodiment is not limited.Wherein, data flow is used to determine the data of parameters in function.By taking Fig. 7 as an example, Assuming that data flow is 8 bytes, then it can be using the data of parameter a as the data of the first four byte in data flow, the data of parameter b For the data of 4 bytes rear in data flow.
For example, application program is battle class game, and user wants the reduction blood volume called when test personage comes to harm Power function, then user first can start control locally calling to click on Shipping Options Page 303, then control personage in game with Other personages or strange beast battle terminate control locally calling to click on Shipping Options Page 303 when the personage is by primary injury, The each power function and each function letter that game is called in the external code injected in the game available this period Several call numbers is 1 time including the call number including the power function and the power function that reduce blood volume.
If power function, in application call power function, is intercepted and captured to interface function for providing network service The function call information of transmission, the function call information are used to indicate interface function invoking performance function;Work as function call information In include power function function identification and the first data flow when, in metadata chained list search have function identification first number According to;From the first offset information of the parameter obtained in metadata in power function;According to the first offset information from the first data flow The middle data for reading parameter.
Believe referring to FIG. 10, the function call sent to CallRemoteFunction can be intercepted and captured using Hook technology It ceases, title FuncA and parameter Param (i.e. the first data flow) including called power function in the function call information, Metadata as shown in connection with fig. 7 is it is found that the FuncA includes parameter a and b, if parameter Param is the data flow of 8 bytes, root According to type and the offset of the parameter a and b indicated in metadata it is found that the data of parameter a are the first four byte in Param Data, the data of parameter b are the data of rear 4 bytes in Param.
Step 804, power function data corresponding with the power function display equipment is sent to show.
Optionally, power function data assembling corresponding with the power function can be sent at json formatted data aobvious Show the webpage client in equipment, by showing that equipment shows power function data corresponding with the power function.
When power function for local service is provided when, can locally call Shipping Options Page 303 in display function function and The call number of the power function.Figure 11 is please referred to, includes the letter of each power function captured in predetermined amount of time in Figure 11 The execution number 1102 of number mark 1101 and the power function.
When power function for provide network service when, can in network call Shipping Options Page 302 display function function and The corresponding data of the power function.Figure 12 is please referred to, includes 1201 He of function identification of each power function of capture in Figure 12 The corresponding data 1202 of one power function chosen.
Step 805, the test instruction that display equipment is sent is obtained, is instructed according to the test to power function and the function letter The corresponding data of number carry out safety test.
, can be by two ways come testing item testing function in the present embodiment, test content includes: to modify the number of parameter According to, the data for parameter of settling down, the calling of function of shielding function, at least one of re-call power function.It is right separately below Both test modes are illustrated.
In a kind of test mode, user can edit test script in script extension tag page 305, pass through the test Script carrys out testing item testing function.That is, obtaining the test script edited in the display device, read test refers to from the test script It enables, please refers to Figure 13.
It should be noted that when power function is for when providing local service, user can to screen according to call number Power function to be tested is needed out, then to power function editor's test script, which can be tested.Than Such as, user wants the power function for the reduction blood volume that test personage calls when coming to harm, and within a predetermined period of time personage by To primary injury, then user can search call number in interface shown in Figure 11 as 1 power function, further according to finding Power function in the function identification of each power function oneself think power function to be tested to determine, it is assumed that the function of finding Function is TakeDamage function, then can edit Lua test script to test the TakeDamage function.
In another test mode, when display equipment display interface in show power function and the power function pair When the data answered, user can instruct in input test in display interface.Refer to that is, obtaining the test inputted in display interface It enables.Figure 12 is please referred to, includes the corresponding data 1202 of power function in Figure 12, user can modify data directly to generate test Instruction, alternatively, can also show shielding control in Figure 12, user can click the shielding control to shield to the power function Test.
Referring to FIG. 10, the interface letter of intercepting and capturing can be passed through if being modified to the corresponding data of the power function Modified data are passed to the power function to continue invoking performance function by number, real by the power function internal logic It is existing.
In conclusion the safety detecting method of illusory engine application provided by the embodiments of the present application, due to illusory engine branch Reflection mechanism is held, so, the power function in the code of illusory engine application has reflecrtive mark, can be according to the reflecrtive mark The metadata chained list of each power function in code is generated, obtains the function letter further according to the metadata of each power function The corresponding data of number, so that the safety test to power function data corresponding with the power function is realized, in this way, can lead to Metadata is crossed to obtain power function data corresponding with the power function, is not necessarily to the manually locating function function in symbol table, Both the search efficiency and accuracy rate of power function can be improved, to improve the testing efficiency of safety test;Can also to avoid by In symbol table do not include a certain power function when, can not to the power function carry out safety test the problem of, to expand peace The test scope tested entirely.
Figure 14 is please referred to, it illustrates the safety detecting methods of the illusory engine application of another embodiment offer of the application The safety detecting method of method flow diagram, the illusory engine application can be applied in terminal 410 shown in Fig. 4, and this implementation Element in example is variable.The safety detecting method of the illusory engine application, comprising:
Step 1401, in the application program and the application program loading code that operation develop based on illusory engine, acquisition The metadata of each variable with reflecrtive mark.
Step 1402, the connection relationship between corresponding metadata is determined according to the field in each variable, obtains first number According to chained list, the metadata in the metadata chained list is used to describe the information of variable.
Wherein, the implementation process of step 1401-1402 is identical as the implementation process of step 801-802, is detailed in step 801- Description in 802, does not repeat herein.
Step 1403, the corresponding data of the variable are obtained according to the metadata of variable.
In the present embodiment, need to obtain the corresponding data of variable from class example, and class example can be from the overall situation It is obtained in table, can also obtain from the parameter of power function, both implementations are introduced separately below.
In one implementation, class example is obtained from the global table of application program;It is searched in metadata chained list The corresponding metadata of class example;From the variable in the first pointer and class example for obtaining class example in metadata Second offset information;The data of variable are read from the second data flow indicated by the first pointer according to the second offset information.
Wherein, class example all in application program is stored in global table.
The forward lookup and reverse search of variable may be implemented in the present embodiment.Wherein, forward lookup refers to search one All variables in class example, reverse search refer to specifying variable in one class example of search.When progress forward lookup When, the class example can be found from global table, then from obtaining each variable in the class example in the second data flow Data.When carrying out reverse search, the class example comprising specifying variable can be determined in global table, then from the second data The data of specifying variable in the class example are obtained in stream.
In another implementation, in application call power function, the function sent to interface function is intercepted and captured Recalls information, function call information are used to indicate interface function invoking performance function;When including called in function call information Power function function identification and third data flow when, in metadata chained list search have function identification metadata;From The 4th offset of the third offset information and the variable in class example of the class example in power function is obtained in metadata Information;The second pointer of class example is read from third data flow according to third offset information;According to the 4th offset information from The data of variable are read in 4th data flow indicated by second pointer.
Wherein, a parameter of the class example as power function, then can find from the parameter of power function and include The class example of specifying variable, then from the data for obtaining specifying variable in the class example in the 4th data flow.
In the present embodiment, the data of variable can be obtained based on reflection mechanism, compared to carrying out memory in the related technology Search, and determined for variable according to the transformation of data when multiple search, variable can be quickly navigated to, is become to improve search The accuracy and validity of amount.
Step 1404, variable data corresponding with the variable display equipment is sent to show.
Step 1405, the test instruction that display equipment is sent is obtained, it is corresponding to variable and the variable according to test instruction Data carry out safety test.
Wherein, the test instruction that display equipment is sent is obtained, comprising: the test script edited in the display device is obtained, Read test instructs from the test script;Alternatively, corresponding with the variable when showing variable in the display interface of display equipment Data when, obtain inputted in display interface test instruction.
Wherein, the implementation process of step 1404-1405 is identical as the implementation process of step 804-805, is detailed in step 804- Description in 805, does not repeat herein.
In conclusion the safety detecting method of illusory engine application provided by the embodiments of the present application, due to illusory engine branch Reflection mechanism is held, so, the variable in the code of illusory engine application has reflecrtive mark, can be according to the reflecrtive mark next life At the metadata chained list of variable each in code, the corresponding data of the variable are obtained further according to the metadata of each variable, from And realize the safety test to variable data corresponding with the variable, in this way, variable can be obtained by metadata and be somebody's turn to do The search efficiency and accuracy rate of variable had both can be improved without manually searching variable in symbol table in the corresponding data of variable, from And improve the testing efficiency of safety test;It, can not be to the variable when can also be to avoid due in symbol table not including a certain variable The problem of carrying out safety test, to expand the test scope of safety test.
By obtaining the data of variable based on reflection mechanism, compared to progress memory search in the related technology, and according to Repeatedly the transformation of data determines for variable when search, variable can be quickly navigated to, to improve the accuracy of search variables And validity.
Figure 15 is please referred to, it illustrates the safety instrumentations of the illusory engine application of the application one embodiment offer The safety instrumentation of structural block diagram, the illusory engine application can be applied in terminal 410 shown in Fig. 4.The illusory engine The safety instrumentation of application, comprising:
Generation module 1510, when application program for being developed in operation based on illusory engine, according to the generation of application program There is the Element generation metadata chained list of reflecrtive mark, the metadata in metadata chained list is used to describe the information of element in code;
Module 1520 is obtained, for obtaining the corresponding data of element according to the metadata of element;
Test module 1530, for carrying out safety test to element according to element and the corresponding data of element.
In an optional embodiment, when element is power function and the corresponding data of element are in power function When the data of parameter, which is also used to:
In application call power function, the function call information sent to interface function, function call letter are intercepted and captured Breath is used to indicate interface function invoking performance function;
When in function call information including the function identification and the first data flow of power function, looked into metadata chained list Look for the metadata with function identification;
From the first offset information of the parameter obtained in metadata in power function;
The data of parameter are read from the first data flow according to the first offset information.
In an optional embodiment, which is also used to:
If power function is for providing network service, after intercepting and capturing the function call information sent to interface function, Triggering, which executes to search in metadata chained list, has the step of metadata of function identification;
If power function unites to the call number of power function in predetermined amount of time for providing local service It counts, is at the time of receiving sign at the beginning of predetermined amount of time, finish time is at the time of receiving END instruction.
In an optional embodiment, when element is the variable in class example and the corresponding data of element are When the data of the variable in class example, which is also used to:
Class example is obtained from the global table of application program;
The corresponding metadata of class example is searched in metadata chained list;
From the second offset information of the variable in the first pointer and class example for obtaining class example in metadata;
The data of variable are read from the second data flow indicated by the first pointer according to the second offset information.
In an optional embodiment, when element is the variable in class example and the corresponding data of element are When the data of the variable in class example, which is also used to:
In application call power function, the function call information sent to interface function, function call letter are intercepted and captured Breath is used to indicate interface function invoking performance function;
When in function call information including the function identification and third data flow of called power function, in metadata The metadata with function identification is searched in chained list;
Variable from the third offset information and class example for obtaining the class example in power function in metadata The 4th offset information;
The second pointer of class example is read from third data flow according to third offset information;
The data of variable are read from the 4th data flow indicated by the second pointer according to the 4th offset information.
In an optional embodiment, which is also used to:
In application program loading code, the metadata with each element of reflecrtive mark is obtained;
The connection relationship between corresponding metadata is determined according to the field in each element, obtains metadata chained list.
In an optional embodiment, the device further include:
Sending module, for inciting somebody to action after obtaining module 1520 and obtaining the corresponding data of element according to the metadata of element Element and the corresponding data of element are sent to display equipment and are shown;
The test module 1530, is also used to: obtain the test instruction that display equipment is sent, according to test instruction to element and The corresponding data of element carry out safety test.
In an optional embodiment, which is also used to:
The test script edited in the display device is obtained, read test instructs from test script;Alternatively,
When showing element and the corresponding data of element in the display interface for showing equipment, obtain defeated in display interface The test instruction entered.
In conclusion the safety instrumentation of illusory engine application provided by the embodiments of the present application, due to illusory engine branch Reflection mechanism is held, so, the element in the code of illusory engine application has reflecrtive mark, can be according to the reflecrtive mark next life At the metadata chained list of element each in code, the corresponding data of the element are obtained further according to the metadata of each element, from And realize the safety test to element data corresponding with the element, in this way, element can be obtained by metadata and be somebody's turn to do The search efficiency and accuracy rate of element had both can be improved without manually searching element in symbol table in the corresponding data of element, from And improve the testing efficiency of safety test;It, can not be to the element when can also be to avoid due in symbol table not including a certain element The problem of carrying out safety test, to expand the test scope of safety test.
When element is variable, by obtaining the data of variable based on reflection mechanism, compared to carrying out in the related technology Memory search, and determined for variable according to the transformation of data when multiple search, variable can be quickly navigated to, is searched to improve The accuracy and validity of Suo Bianliang.
Figure 16 shows the structural block diagram of the terminal 1600 of one exemplary embodiment of the application offer.The terminal 1600 can To be portable mobile termianl, such as: smart phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, laptop Or desktop computer.Terminal 1600 be also possible to referred to as user equipment, portable terminal, laptop terminal, terminal console etc. other Title.
In general, terminal 1600 includes: processor 1601 and memory 1602.
Processor 1601 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place Reason device 1601 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 1601 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 1601 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1601 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 1602 may include one or more computer readable storage mediums, which can To be non-transient.Memory 1602 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 1602 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 1601 for realizing this Shen Please in embodiment of the method provide illusory engine application safety detecting method.
In some embodiments, terminal 1600 is also optional includes: peripheral device interface 1603 and at least one periphery are set It is standby.It can be connected by bus or signal wire between processor 1601, memory 1602 and peripheral device interface 1603.It is each outer Peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 1603.Specifically, peripheral equipment includes: In radio circuit 1604, touch display screen 1605, camera 1606, voicefrequency circuit 1607, positioning component 1608 and power supply 1609 At least one.
Peripheral device interface 1603 can be used for I/O (Input/Output, input/output) is relevant outside at least one Peripheral equipment is connected to processor 1601 and memory 1602.In some embodiments, processor 1601, memory 1602 and periphery Equipment interface 1603 is integrated on same chip or circuit board;In some other embodiments, processor 1601, memory 1602 and peripheral device interface 1603 in any one or two can be realized on individual chip or circuit board, this implementation Example is not limited this.
Radio circuit 1604 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal. Radio circuit 1604 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 1604 is by telecommunications Number being converted to electromagnetic signal is sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 1604 include: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, volume solution Code chipset, user identity module card etc..Radio circuit 1604 can by least one wireless communication protocol come with it is other Terminal is communicated.The wireless communication protocol includes but is not limited to: Metropolitan Area Network (MAN), each third generation mobile communication network (2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, radio frequency electrical Road 1604 can also include NFC (Near Field Communication, wireless near field communication) related circuit, the application This is not limited.
Display screen 1605 is for showing UI (User Interface, user interface).The UI may include figure, text, Icon, video and its their any combination.When display screen 1605 is touch display screen, display screen 1605 also there is acquisition to exist The ability of the touch signal on the surface or surface of display screen 1605.The touch signal can be used as control signal and be input to place Reason device 1601 is handled.At this point, display screen 1605 can be also used for providing virtual push button and/or dummy keyboard, it is also referred to as soft to press Button and/or soft keyboard.In some embodiments, display screen 1605 can be one, and the front panel of terminal 1600 is arranged;Another In a little embodiments, display screen 1605 can be at least two, be separately positioned on the different surfaces of terminal 1600 or in foldover design; In still other embodiments, display screen 1605 can be flexible display screen, is arranged on the curved surface of terminal 1600 or folds On face.Even, display screen 1605 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 1605 can be with Using LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. materials preparation.
CCD camera assembly 1606 is for acquiring image or video.Optionally, CCD camera assembly 1606 includes front camera And rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.? In some embodiments, rear camera at least two is that main camera, depth of field camera, wide-angle camera, focal length are taken the photograph respectively As any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide Pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are realized in camera fusion in angle Shooting function.In some embodiments, CCD camera assembly 1606 can also include flash lamp.Flash lamp can be monochromatic temperature flash of light Lamp is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for Light compensation under different-colour.
Voicefrequency circuit 1607 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and It converts sound waves into electric signal and is input to processor 1601 and handled, or be input to radio circuit 1604 to realize that voice is logical Letter.For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 1600 to be multiple. Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 1601 or radio frequency will to be come from The electric signal of circuit 1604 is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramics loudspeaking Device.When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, can also be incited somebody to action Electric signal is converted to the sound wave that the mankind do not hear to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 1607 may be used also To include earphone jack.
Positioning component 1608 is used for the current geographic position of positioning terminal 1600, to realize navigation or LBS (Location Based Service, location based service).Positioning component 1608 can be the GPS (Global based on the U.S. Positioning System, global positioning system), the dipper system of China, Russia Gray receive this system or European Union The positioning component of Galileo system.
Power supply 1609 is used to be powered for the various components in terminal 1600.Power supply 1609 can be alternating current, direct current Electricity, disposable battery or rechargeable battery.When power supply 1609 includes rechargeable battery, which can support wired Charging or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 1600 further includes having one or more sensors 1610.One or more sensing Device 1610 includes but is not limited to: acceleration transducer 1611, gyro sensor 1612, pressure sensor 1613, fingerprint sensing Device 1614, optical sensor 1615 and proximity sensor 1616.
Acceleration transducer 1611 can detecte the acceleration in three reference axis of the coordinate system established with terminal 1600 Size.For example, acceleration transducer 1611 can be used for detecting component of the acceleration of gravity in three reference axis.Processor The 1601 acceleration of gravity signals that can be acquired according to acceleration transducer 1611, control touch display screen 1605 with transverse views Or longitudinal view carries out the display of user interface.Acceleration transducer 1611 can be also used for game or the exercise data of user Acquisition.
Gyro sensor 1612 can detecte body direction and the rotational angle of terminal 1600, gyro sensor 1612 Acquisition user can be cooperateed with to act the 3D of terminal 1600 with acceleration transducer 1611.Processor 1601 is according to gyro sensors The data that device 1612 acquires, following function may be implemented: action induction (for example changing UI according to the tilt operation of user) is clapped Image stabilization, game control and inertial navigation when taking the photograph.
The lower layer of side frame and/or touch display screen 1605 in terminal 1600 can be set in pressure sensor 1613.When When the side frame of terminal 1600 is arranged in pressure sensor 1613, user can detecte to the gripping signal of terminal 1600, by Reason device 1601 carries out right-hand man's identification or prompt operation according to the gripping signal that pressure sensor 1613 acquires.Work as pressure sensor 1613 when being arranged in the lower layer of touch display screen 1605, is grasped by processor 1601 according to pressure of the user to touch display screen 1605 Make, realization controls the operability control on the interface UI.Operability control include button control, scroll bar control, At least one of icon control, menu control.
Fingerprint sensor 1614 is used to acquire the fingerprint of user, is collected by processor 1601 according to fingerprint sensor 1614 Fingerprint recognition user identity, alternatively, by fingerprint sensor 1614 according to the identity of collected fingerprint recognition user.Knowing Not Chu the identity of user when being trusted identity, authorize the user to execute relevant sensitive operation by processor 1601, which grasps Make to include solving lock screen, checking encryption information, downloading software, payment and change setting etc..Fingerprint sensor 1614 can be set Set the front, the back side or side of terminal 1600.When being provided with physical button or manufacturer Logo in terminal 1600, fingerprint sensor 1614 can integrate with physical button or manufacturer Logo.
Optical sensor 1615 is for acquiring ambient light intensity.In one embodiment, processor 1601 can be according to light The ambient light intensity that sensor 1615 acquires is learned, the display brightness of touch display screen 1605 is controlled.Specifically, work as ambient light intensity When higher, the display brightness of touch display screen 1605 is turned up;When ambient light intensity is lower, the aobvious of touch display screen 1605 is turned down Show brightness.In another embodiment, the ambient light intensity that processor 1601 can also be acquired according to optical sensor 1615, is moved The acquisition parameters of state adjustment CCD camera assembly 1606.
Proximity sensor 1616, also referred to as range sensor are generally arranged at the front panel of terminal 1600.Proximity sensor 1616 for acquiring the distance between the front of user Yu terminal 1600.In one embodiment, when proximity sensor 1616 is examined When measuring the distance between the front of user and terminal 1600 and gradually becoming smaller, by processor 1601 control touch display screen 1605 from Bright screen state is switched to breath screen state;When proximity sensor 1616 detect the distance between front of user and terminal 1600 by When gradual change is big, touch display screen 1605 is controlled by processor 1601 and is switched to bright screen state from breath screen state.
It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal 1600 of structure shown in Figure 16 Including than illustrating more or fewer components, perhaps combining certain components or being arranged using different components.
The application one embodiment provides a kind of computer readable storage medium, is stored at least in the storage medium One instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the generation Code collection or instruction set are loaded by processor and are executed the safety detecting method to realize illusory engine application as described above.
The application one embodiment provides a kind of terminal, and the terminal includes processor and memory, the memory In be stored at least one instruction, described instruction is loaded by the processor and is executed to realize that illusory engine as described above is answered Safety detecting method.
It should be understood that the safety instrumentation of illusory engine application provided by the above embodiment is carrying out illusory engine When the safety test of application, only the example of the division of the above functional modules, in practical application, it can according to need And above-mentioned function distribution is completed by different functional modules, i.e., the internal structure for the safety instrumentation applied illusory engine It is divided into different functional modules, to complete all or part of the functions described above.In addition, void provided by the above embodiment The safety instrumentation of unreal engine application and the safety detecting method embodiment of illusory engine application belong to same design, specific Realization process is detailed in embodiment of the method, and which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The above is not to limit the embodiment of the present application, all within the spirit and principle of the embodiment of the present application, institute Any modification, equivalent substitution, improvement and etc. of work, should be included within the protection scope of the embodiment of the present application.

Claims (10)

1. a kind of safety detecting method of illusory engine application, which is characterized in that the described method includes:
In the application program that operation develop based on illusory engine, according to having reflecrtive mark in the code of the application program Element generation metadata chained list, the metadata in the metadata chained list are used to describe the information of the element;
The corresponding data of the element are obtained according to the metadata of the element;
Safety test is carried out to the element according to the element and the element corresponding data.
2. the method according to claim 1, wherein working as, the element is power function and the element is corresponding It is described corresponding according to the metadata of the element acquisition element when data are the data of the parameter in the power function Data, comprising:
In the application call power function, the function call information sent to interface function, the function tune are intercepted and captured The interface function, which is used to indicate, with information calls the power function;
When in the function call information including the function identification and the first data flow of the power function, in the metadata The metadata with the function identification is searched in chained list;
From the first offset information of the parameter obtained in the metadata in the power function;
The data of the parameter are read from first data flow according to first offset information.
3. according to the method described in claim 2, it is characterized in that, in the function call letter intercepted and captured and sent to interface function After breath, the method also includes:
When the power function is for providing network service, triggering, which executes described search in the metadata chained list, has institute The step of stating the metadata of function identification;
When the power function is for carrying out the call number of power function described in predetermined amount of time when providing local service It counts, is at the time of receiving sign at the beginning of the predetermined amount of time, finish time is to receive END instruction At the time of.
4. the method according to claim 1, wherein when the element is the variable and described in class example It is described that institute is obtained according to the metadata of the element when the corresponding data of element are the data of the variable in the class example State the corresponding data of element, comprising:
Class example is obtained from the global table of the application program;
The corresponding metadata of the class example is searched in the metadata chained list;
Second from the variable in the first pointer and the class example for obtaining the class example in the metadata is inclined Move information;
The data of the variable are read from the second data flow indicated by first pointer according to second offset information.
5. the method according to claim 1, wherein when the element is the variable and described in class example It is described that institute is obtained according to the metadata of the element when the corresponding data of element are the data of the variable in the class example State the corresponding data of element, comprising:
In the application call power function, the function call information sent to interface function, the function tune are intercepted and captured The interface function, which is used to indicate, with information calls the power function;
When in the function call information including the function identification and third data flow of called power function, in the member The metadata with the function identification is searched in data link table;
Third offset information and the class example from the class example obtained in the metadata in the power function In variable the 4th offset information;
The second pointer of the class example is read from the third data flow according to the third offset information;
The data of the variable are read from the 4th data flow indicated by second pointer according to the 4th offset information.
6. method according to any one of claims 1 to 5, which is characterized in that in the code according to the application program Element generation metadata chained list with reflecrtive mark, comprising:
When the application program loads the code, the metadata with each element of reflecrtive mark is obtained;
The connection relationship between corresponding metadata is determined according to the field in each element, obtains the metadata chained list.
7. method according to any one of claims 1 to 5, which is characterized in that
After the corresponding data according to the metadata of the element acquisition element, the method also includes: by institute It states element and the corresponding data of the element is sent to display equipment and is shown;
It is described that safety test is carried out to the element according to the element and the corresponding data of the element, comprising: described in acquisition It shows the test instruction that equipment is sent, safety is carried out to the element and the corresponding data of the element according to test instruction Test.
8. the method according to the description of claim 7 is characterized in that it is described obtain it is described display equipment send test instruction, Include:
The test script edited in the display equipment is obtained, the test instruction is read from the test script;Alternatively,
When showing the element and the corresponding data of the element in the display interface of the display equipment, obtain described The test instruction inputted in display interface.
9. a kind of safety instrumentation of illusory engine application, which is characterized in that described device includes:
Generation module, when application program for being developed in operation based on illusory engine, according in the code of the application program Element generation metadata chained list with reflecrtive mark, the metadata in the metadata chained list are used to describe the letter of the element Breath;
Module is obtained, for obtaining the corresponding data of the element according to the metadata of the element;
Test module, for carrying out safety test to the element according to the element and the corresponding data of the element.
10. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction Collection is loaded by processor and is executed the safety detecting method to realize illusory engine application as described in any of the claims 1 to 8.
CN201910569288.7A 2019-06-27 2019-06-27 Security test method, device and storage medium for illusion engine application Active CN110275836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910569288.7A CN110275836B (en) 2019-06-27 2019-06-27 Security test method, device and storage medium for illusion engine application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910569288.7A CN110275836B (en) 2019-06-27 2019-06-27 Security test method, device and storage medium for illusion engine application

Publications (2)

Publication Number Publication Date
CN110275836A true CN110275836A (en) 2019-09-24
CN110275836B CN110275836B (en) 2024-04-19

Family

ID=67963574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910569288.7A Active CN110275836B (en) 2019-06-27 2019-06-27 Security test method, device and storage medium for illusion engine application

Country Status (1)

Country Link
CN (1) CN110275836B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111563035A (en) * 2020-04-22 2020-08-21 腾讯科技(成都)有限公司 Test result display method, device, equipment and storage medium
CN112417328A (en) * 2020-12-03 2021-02-26 杭州海量存储技术有限公司 Webpage monitoring method and device
CN114006894A (en) * 2020-12-30 2022-02-01 万翼科技有限公司 Data processing system, method, electronic device, and computer storage medium
CN117234935A (en) * 2023-09-28 2023-12-15 重庆赛力斯新能源汽车设计院有限公司 Test method and device based on illusion engine, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164325A (en) * 2011-12-09 2013-06-19 北京新媒传信科技有限公司 Control coding method and control coding device
CN105204980A (en) * 2014-05-26 2015-12-30 腾讯科技(深圳)有限公司 Method for testing virtual engine software and testing equipment
CN107203535A (en) * 2016-03-16 2017-09-26 阿里巴巴集团控股有限公司 Information query method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103164325A (en) * 2011-12-09 2013-06-19 北京新媒传信科技有限公司 Control coding method and control coding device
CN105204980A (en) * 2014-05-26 2015-12-30 腾讯科技(深圳)有限公司 Method for testing virtual engine software and testing equipment
CN107203535A (en) * 2016-03-16 2017-09-26 阿里巴巴集团控股有限公司 Information query method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111563035A (en) * 2020-04-22 2020-08-21 腾讯科技(成都)有限公司 Test result display method, device, equipment and storage medium
CN112417328A (en) * 2020-12-03 2021-02-26 杭州海量存储技术有限公司 Webpage monitoring method and device
CN112417328B (en) * 2020-12-03 2024-05-31 杭州海量存储技术有限公司 Webpage monitoring method and device
CN114006894A (en) * 2020-12-30 2022-02-01 万翼科技有限公司 Data processing system, method, electronic device, and computer storage medium
CN114006894B (en) * 2020-12-30 2023-11-14 深圳市万翼数字技术有限公司 Data processing system, method, electronic device, and computer storage medium
CN117234935A (en) * 2023-09-28 2023-12-15 重庆赛力斯新能源汽车设计院有限公司 Test method and device based on illusion engine, electronic equipment and storage medium
CN117234935B (en) * 2023-09-28 2024-05-14 重庆赛力斯新能源汽车设计院有限公司 Test method and device based on illusion engine, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110275836B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
CN110275836A (en) Safety detecting method, device and the storage medium of illusory engine application
CN109582579B (en) Application program testing method and device, electronic equipment and storage medium
CN109977333A (en) Webpage display process, device, computer equipment and storage medium
CN110502308A (en) Style sheet switching method, device, computer equipment and storage medium
CN110059686B (en) Character recognition method, device, equipment and readable storage medium
CN111340482B (en) Conflict detection method, device, node equipment and storage medium
CN110837473A (en) Application program debugging method, device, terminal and storage medium
CN110225048B (en) Data transmission method and device, first terminal and storage medium
CN109491924A (en) Code detection method, device, terminal and storage medium
CN111177013A (en) Log data acquisition method and device, computer equipment and storage medium
CN109522146A (en) The method, apparatus and storage medium of abnormality test are carried out to client
CN111897525A (en) Big data processing method and system
CN108829488A (en) Generate Web can interaction page method, apparatus and storage medium
CN109413098A (en) Method, apparatus, terminal and the storage medium that web page element is shown
CN110032702A (en) Webpage display process, device, equipment and storage medium
CN110288689A (en) The method and apparatus that electronic map is rendered
CN109726064A (en) Method, apparatus, system and the storage medium of simulant-client misoperation
CN111265885B (en) Resource display method, resource sending method, device, equipment and storage medium
CN114064450A (en) Application program testing method and device, electronic equipment and storage medium
CN111125602B (en) Page construction method, device, equipment and storage medium
CN111191227B (en) Method and device for preventing malicious code from executing
CN111459466A (en) Code generation method, device, equipment and storage medium
CN110290191A (en) Resource transfers result processing method, device, server, terminal and storage medium
CN109189290A (en) Click on area recognition methods, device and computer readable storage medium
CN108984259A (en) interface display method, device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant