CN107659425A - A kind of control method and server, terminal - Google Patents

A kind of control method and server, terminal Download PDF

Info

Publication number
CN107659425A
CN107659425A CN201610596021.3A CN201610596021A CN107659425A CN 107659425 A CN107659425 A CN 107659425A CN 201610596021 A CN201610596021 A CN 201610596021A CN 107659425 A CN107659425 A CN 107659425A
Authority
CN
China
Prior art keywords
terminal
intended application
service data
information
running
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.)
Pending
Application number
CN201610596021.3A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610596021.3A priority Critical patent/CN107659425A/en
Publication of CN107659425A publication Critical patent/CN107659425A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of control method, including:Server determines to treat service data;It is described to treat that service data characterizes the data that injected in the intended application of terminal;Obtain the operation characteristic information that terminal is directed to the intended application;The operation characteristic information includes at least one of following information:Terminal causes the abnormal information generated in abnormality by least part data in service data is treated described in intended application operation, and obstruction is run into during intended application described in terminal operating makes the running of the intended application be in the status information of wait-for-response;Treat that service data is adjusted to described according to the abnormal information and/or status information, will treat that service data is sent to terminal described in after adjustment so that terminal described in after by the intended application combustion adjustment when service data when avoid being in abnormality.The embodiment of the invention also discloses a kind of server and terminal.

Description

A kind of control method and server, terminal
Technical field
The present invention relates to control technology, more particularly to a kind of control method and server, terminal.
Background technology
In the prior art, increase a certain specific function for ease of application program, will often have a certain specific function Executable code be injected into third party's process that terminal is currently running and perform, and then make third party's process The intended application of operation possesses function corresponding to executable code, and realize increases specific function in intended application Purpose;But the process of existing code injection, the relevant information of terminal not feedback code injection process, Lead to not the data for collecting injection success rate, and then cause the process of existing code injection to be not suitable for commercialization; Moreover, for server side, because server can not know the relevant information of code injection process, institute To lead to not carry out adaptation adjustment to injecting codes, therefore, prior art necessarily can not be lifted fundamentally The success rate of code injection.
The content of the invention
To solve existing technical problem, the embodiments of the invention provide a kind of control method and server, Terminal, can at least solve the above-mentioned problems in the prior art.
What the technical scheme of the embodiment of the present invention was realized in:
First aspect of the embodiment of the present invention provides a kind of control method, including:
Server determines to treat service data;It is described to treat that service data sign be noted in the intended application of terminal The data entered;
Obtain the operation characteristic information that terminal is directed to the intended application;The operation characteristic information includes following At least one of information:Terminal passes through at least portion in service data is treated described in intended application operation Divided data and cause the abnormal information generated in abnormality, the process of intended application described in terminal operating In run into obstruction the running of the intended application is in the status information of wait-for-response;
Treat that service data is adjusted to described according to the abnormal information and/or status information, after adjustment It is described to treat that service data is sent to terminal, so that terminal is described in after by the intended application combustion adjustment Avoid being in abnormality when service data.
Second aspect of the embodiment of the present invention provides a kind of control method, including:
Terminal obtains and treats service data, treats that service data is injected into the intended application that the terminal is chosen by described In;
Detect whether the operation characteristic information for having for the intended application;The operation characteristic information includes At least one of following information:Terminal described in intended application operation by treating in service data extremely Small part data and cause the abnormal information generated in abnormality, intended application described in terminal operating During run into obstruction the running of the intended application is in the status information of wait-for-response;
When it is determined that the abnormal information and/or status information be present, by the abnormal information and/or status information Send to server, so that server is based on the abnormal information and/or status information treats service data to described It is adjusted, and makes terminal avoid when service data being in abnormality described in after combustion adjustment.
The third aspect of the embodiment of the present invention provides a kind of server, including:
Determining unit, for determining to treat service data;It is described to treat that service data sign be in the target of terminal The data injected in;
First acquisition unit, the operation characteristic information of the intended application is directed to for obtaining terminal;The fortune Row characteristic information includes at least one of following information:Terminal described in intended application operation by treating At least part data in service data and cause the abnormal information generated in abnormality, terminal operating Obstruction is run into during the intended application makes the running of the intended application be in the shape of wait-for-response State information;
Processing unit, for treating that service data is adjusted to described according to the abnormal information and/or status information It is whole;
First transmitting element, for will treat that service data is sent to terminal described in after adjustment, so that terminal exists By avoiding described in after the intended application combustion adjustment being in abnormality when service data.
Fourth aspect of the embodiment of the present invention provides a kind of terminal, including:
Second acquisition unit, service data is treated for obtaining, treats that service data is injected into the terminal by described In the intended application chosen;
Detection unit, for detecting whether the operation characteristic information for the intended application be present;The fortune Row characteristic information includes at least one of following information:Terminal described in intended application operation by treating At least part data in service data and cause the abnormal information generated in abnormality, terminal operating Obstruction is run into during the intended application makes the running of the intended application be in the shape of wait-for-response State information;
Second transmitting element, will be described different for when it is determined that the abnormal information and/or status information be present Normal information and/or status information are sent to server, so that server is based on the abnormal information and/or state is believed Breath treats that service data is adjusted to described, and terminal is kept away described in after combustion adjustment when service data Exempt to be in abnormality.
Control method and server, terminal described in the embodiment of the present invention, go acquisition terminal anti-by server The operation characteristic information for intended application of feedback, and the abnormal information characterized based on the operation characteristic information And/or status information treats that service data is adjusted to described, will treat described in after adjustment service data send to Terminal, and then make terminal be avoided as much as when service data being in abnormal shape described in after combustion adjustment State.Here, due to server be based on terminal feedback abnormal information and/or status information treat service data It is adjusted, so, the adjustment process more reasonability of server is also more targeted;Moreover, The fitting percentage for treating service data and terminal after adjustment can be fundamentally lifted, and then is lifted and treats service data Injection success rate.
Moreover, in the embodiment of the present invention, the adjustment that server treats service data can be based on the big of collection Amount terminal feedback abnormal information and/or status information and carry out, that is to say, that in the present embodiment, service The adjustment that device treats service data is to be analyzed and realized based on big data, and therefore, the embodiment of the present invention can Significantly lift the success rate of code injection.
Brief description of the drawings
Fig. 1 is the implementation process schematic diagram of the control method of the embodiment of the present invention one;
Fig. 2 is the schematic diagram one that terminal of the embodiment of the present invention determines intended application;
Fig. 3 is the schematic diagram two that terminal of the embodiment of the present invention determines intended application;
Fig. 4 is the Ad blocking effect diagram that terminal of the embodiment of the present invention is presented;
Fig. 5 is the security protection effect diagram that terminal of the embodiment of the present invention is presented;
Fig. 6 is that server of the embodiment of the present invention goes to obtain the schematic diagram of abnormal information from multiple terminals;
Fig. 7 is that server cluster of the embodiment of the present invention goes to obtain the schematic diagram of abnormal information from multiple terminals;
Fig. 8 is the interaction figure that the server of the embodiment of the present invention one interacts with end message;
Fig. 9 is the interaction figure that the server of the embodiment of the present invention two interacts with end message;
Figure 10 is the interaction figure one that the server of the embodiment of the present invention three interacts with end message;
Figure 11 is the interaction figure two that the server of the embodiment of the present invention three interacts with end message;
Figure 12 is the structural representation of the logic unit of server of the embodiment of the present invention;
Figure 13 is the hardware architecture diagram of server of the embodiment of the present invention;
Figure 14 is the structural representation of the logic unit of terminal of the embodiment of the present invention;
Figure 15 is the hardware architecture diagram of terminal of the embodiment of the present invention.
Embodiment
In order to more fully hereinafter understand the features of the present invention and technology contents, below in conjunction with the accompanying drawings to this hair Bright realization is described in detail, appended accompanying drawing purposes of discussion only for reference, is not used for limiting the present invention.
Embodiment one
Fig. 1 is the implementation process schematic diagram of the control method of the embodiment of the present invention one;As shown in figure 1, the side Method includes:
Step 101:Server determines to treat service data;It is described to treat that service data sign be in the mesh of terminal The data injected in mark application;
So, make terminal described to be shipped to possess by treating service data described in the operation in the intended application Objective function corresponding to row data;
It is described to treat that service data be specially injecting program in the present embodiment, such as injecting codes etc.;This In, the executable code with specific function that the injecting codes refer to writing out is injected into target should The code performed in process.
In actual applications, end side can be entered by dynamic load so files to what current operational objective was applied Cheng Zhong, and then the injecting codes in the process of the intended application in execution so (shared object) file, So that the intended application has the function of the injecting codes.So files are the dynamic under linux system Link library file.
Specifically, so that terminal is provided with android system as an example, under android system, so files note Enter is realized based on ptrace functions;Here, so files include the injection generation containing specific function Code;Specific implementation process is as follows:
By the Process identifier (pid) of remote process, remote process is arrived in attachment (ATTACH);Here, The remote process is the process corresponding to the intended application that terminal is currently run;The intended application is should Injecting codes to be injected into application program;The register value of the remote process is obtained, and preserves the deposit Device value, so as to the original state of recovering process after the completion of being injected when injecting codes;Remote process system is obtained to call Function mmap, dlopen, dlsym call address;Remote process mmap is called by call address, With in the remote process distribute one section of memory space, and in the space that this is distributed write so files road Footpath and function call parameter;Remote process dlopen is performed, loads so files;Remote process dlsym is performed, The function address for needing to perform in so files is obtained, and then performs the function in remote process, after being finished, Recover original state of remote process, DETACH remote process, end code using the register value of preservation Injection process.
Step 102:Obtain the operation characteristic information that terminal is directed to the intended application;The operation characteristic letter Breath includes at least one of following information:Terminal described in intended application operation by treating service data In at least part data and cause the abnormal information generated in abnormality, target described in terminal operating Obstruction is run into during makes the running of the intended application be in the status information of wait-for-response;
In one embodiment, the relevant information of client code injection process, institute are known for ease of server Stating terminal needs to go the operation characteristic information for detecting code injection process, and then by operation characteristic feedback of the information extremely Server;Specifically, the terminal goes acquisition to treat service data to the server first, and then by described in Treat that service data is injected into the intended application of the terminal, so that terminal in the intended application by transporting Service data is treated described in row and possesses objective function, further, the terminal, which detects whether to exist, is directed to institute State the operation characteristic information of intended application;Here, the operation characteristic information is included in following information at least It is a kind of:Terminal is caused by least part data in service data is treated described in intended application operation The abnormal information generated in abnormality, running into obstruction during intended application described in terminal operating makes The running of the intended application is in the status information of wait-for-response;And then when determination has the exception When information and/or status information, the abnormal information and/or status information are sent to server, so that service Device is based on the abnormal information and/or status information treats that service data is adjusted to described, so, works as terminal Obtained again to the server when service data, the server will can be waited to run described in after adjustment Data are sent to the terminal, terminal is avoided described in after combustion adjustment when service data in abnormal State;In this way, by the operation characteristic information of terminal to server feedback code, make server at least Injecting codes can targetedly be adjusted based on the analysis to operation characteristic information, for lifting code injection Success rate is laid a good foundation.
Step 103:Treat that service data is adjusted to described according to the abnormal information and/or status information, It will treat that service data is sent to terminal described in after adjustment, so that terminal is adjusted passing through intended application operation Avoid being in abnormality when service data described in after whole.
In actual applications, the terminal can be operated at least one application of itself installation based on user Intended application is selected, here, it can also be multiple that the intended application, which can be one,;As shown in Fig. 2 Terminal is operated based on user, is selected into application four in the application one of terminal installation and is made using two and application three For intended application, and then target program is injected in three each self-corresponding processes of application two and application, so that should With two and using three objective functions for possessing target program.
Further, the User Interface of the application for the selection injection target program that terminal is presented can also be Interface as shown in Figure 3, so that intended application is Ad blocking program as an example, terminal can select according to user, Determine which application needs to inject Ad blocking program, determine to apply two for example, terminal is based on user's operation Ad blocking program is injected with application three, and then in the running of application two and application three, and respective In corresponding process inject Ad blocking program so that it is described application two and application three each self-operating process It is middle to realize the purpose for intercepting advertisement;And other application, such as it is not injected into Ad blocking program using one and using two. Certainly, in actual applications, terminal can also in all applications of itself installation equal Ad blocking programs, For example, injecting Ad blocking program in all application processes, the purpose of the interior interception advertisement of application is realized.
Here, in actual applications, terminal can also show Ad blocking effect, as shown in figure 4, when eventually End is chosen using after two and the injection Ad blocking program of application three, can also be shown in the display interface of terminal Interception result, such as using two before 1 minute, accumulation Ad blocking 1 time;And using three, before 8 minutes, Ad blocking 2 times are accumulated, and then are easy to user to go to know interception result, improve Consumer's Experience.
In another example so that intended application is Root security protection programs as an example, now, terminal is based on shown in Fig. 2 Interface receive user's operation, and two will be applied and be used as intended application using three;And then applying two Hes During being run using three, and Root security protection programs are injected in each self-corresponding application process, with Other programs are avoided to be distorted to application two or using three.Certainly, the terminal can also will have protection The code of function, as Root security protection process priorities are injected into all application processes, so that all apply Safeguard function is realized inside its process, so as to prevent the secondary injection monitoring behavior of Malware.
Here, after injecting successfully, interface as shown in Figure 5 can be presented in the terminal, to inform user Effect;Specifically, user can be observed by the interface shown in Fig. 5 (a) successfully prevents peace using two Full great master distorts the behavior of software, moreover, also successfully preventing safe great master to distort the behavior of software using three; Or user can be observed by the interface described in the interface shown in Fig. 5 (b) at time 1, success Safe great master is prevented to distort the behavior of software;Also safe great master is successfully prevented to distort software at time 2 Behavior.Further, in actual applications, the result that terminal is shown can be away from current recent Result is prevented, one is applied as the time 1 is corresponding, the time 2 is corresponding to apply 2, and then can be with by Fig. 5 (b) Learn, successfully prevent at time 1 safe great master to distort the behavior of software using one, using two in the time Safe great master is successfully prevented to distort the behavior of software when 2.Or terminal can be by the prevention result of whole All show.
In the present embodiment, server can obtain the operation characteristic information for intended application of multiple terminals, And then the operation characteristic information for intended application of multiple terminals to getting carries out big data processing, with Analysis obtains abnormal cause, and then targetedly treats service data and be adjusted.For example, such as Fig. 6 institutes Show, server goes to obtain the operation characteristic for intended application to terminal 1 ..., terminal i ..., terminal N Information, and then the operation characteristic information for intended application based on different terminals feedback goes to carry out big data point Analysis.Certainly, in actual applications, for the analysis ability of lifting server, the server described in the present embodiment Can also be specially server cluster, as shown in fig. 7, server cluster is to terminal 1 ..., terminal i ..., Terminal N goes to obtain the operation characteristic information for intended application, and then is directed to mesh based on different terminals feedback The operation characteristic information of mark application goes to carry out big data analysis.Here, the i and N are more than or equal to 1 Positive integer;The i is less than or equal to N
Fig. 8 is the interaction figure that the server of the embodiment of the present invention one interacts with end message;With operation characteristic information Only including exemplified by abnormal information;The embodiment of the present invention is described in further details with reference to Fig. 8, specifically:
Server obtains the injecting codes that programmer edits first, for example, server passes through Code Edit interface Obtain the multiple injecting codes for possessing difference in functionality;When terminal determines target injecting codes, and determine to need After injecting the intended application of the target injecting codes, sent to the server and obtain target injecting codes Request, the server determines target injecting codes based on the request, and the target injecting codes are sent out Deliver to terminal;The target injecting codes are injected into process corresponding to intended application by the terminal;Enter one Step ground, the terminal detects whether the abnormal information for being directed to the target injecting codes be present, for example, target Corresponding to injecting codes injection intended application after process, terminal detects whether the operation of target injecting codes occur different Normal phenomenon, when present, terminal generate the abnormal information for being directed to the target injecting codes, or, mesh After marking process corresponding to code injection to intended application, it is different that terminal detects whether to occur intended application operation Normal phenomenon, when present, terminal can also generate the abnormal information for being directed to the target injecting codes;And then After terminal detects the presence of the abnormal information for being directed to the target injecting codes, the abnormal information is reported Server, so that server is analyzed abnormal information, and target injecting codes are entered based on analysis result The corresponding adjustment of row, and then, when terminal obtains target injecting codes again, the server is by after adjustment Target injecting codes are sent to terminal, and now, target injecting codes of the terminal after by adjustment are injected into When in the process of intended application, abnormal problem corresponding to the abnormal information can be at least avoided, and then lifted The injection success rate of code injection process.Here, because injection success rate is the execution system under high authority Management and the important indicator intercepted, so, method described in the present embodiment can also lifting system management pipe Efficiency is managed, and lifting intercepts success rate.
So, the method described in the embodiment of the present invention, by server go obtain terminal feed back be directed to target The operation characteristic information of application, and the abnormal information and/or status information characterized based on the operation characteristic information Treat that service data is adjusted to described, will treat that service data is sent to terminal described in after adjustment, and then make Terminal is avoided as much as when service data being in abnormality described in after combustion adjustment.Here, by In server be based on terminal feedback abnormal information and/or status information treat what service data was adjusted, So the adjustment process more reasonability of server, also more targeted;Moreover, can be fundamentally The fitting percentage for treating service data and terminal after lifting adjustment, and then lift the injection success rate for treating service data.
Moreover, in the embodiment of the present invention, the adjustment that server treats service data can be based on the big of collection Amount terminal feedback abnormal information and/or status information and carry out, that is to say, that in the present embodiment, service The adjustment that device treats service data is to be analyzed and realized based on big data, and therefore, the embodiment of the present invention can Significantly lift the success rate of code injection.
Embodiment two
Based on the method described in embodiment one, in the present embodiment, as shown in Figure 9, there is provided terminal obtains different Two kinds of concrete modes of normal information, namely the abnormal information that terminal is got can be following two abnormalities Under abnormal information;Specifically,
Mode one:Terminal detection operation described in when at least part data in service data the intended application Abnormality whether is in, and then when detecting that the intended application is in abnormality, generates abnormal letter Breath;
Further, terminal sends the abnormal information generated by mode one to server, so that server obtains Take and at least part data in service data are treated described in terminal operating and cause the intended application to be in abnormal shape The abnormal information of state, in order to which server is analyzed the abnormal information, and then service data is treated to described It is adjusted.
Mode two:Terminal detection operation described in when at least part data in service data the line number to be shipped According to running whether be in abnormality, when detecting that the running for treating service data is in different During normal state, abnormal information is generated;
Further, terminal sends the abnormal information generated by mode two to server, so that server obtains Cause the line number to be shipped when at least part data in service data described in the operation for getting terminal feedback According to running be in the abnormal information of abnormality.
In actual applications, the terminal only pass-through mode one (or mode two) can go to generate abnormal letter Breath, now, the abnormal information that the server is got also are only the abnormal information under a type;Certainly, Abnormal information is analyzed from multiple dimensions for ease of server, the terminal can also be based on mode simultaneously One and mode two generate abnormal information, enable the server to go to analyze abnormal information from multiple dimensions, And then the injection success rate for lifting injecting codes is laid a good foundation.
Specifically, as shown in figure 9, when terminal determines the service data for the treatment of with objective function, and determine Go out to need to inject this after the intended application of service data, send to obtain to the server and treat service data Request, the server determine to treat service data based on the request, and by it is described treat service data send to Terminal;The terminal treats that service data is injected into process corresponding to intended application by described;Further, The terminal detects whether to exist and is directed to this and treats the abnormal information of service data, for example, treating that service data is noted Entering to after process corresponding to intended application, terminal detects whether the phenomenon for treating service data operation exception occur, When present, terminal generation is directed to the abnormal information for treating service data, or, treat that service data is injected To after process corresponding to intended application, terminal detects whether the phenomenon for intended application operation exception occur, when going out Now, terminal, which can also generate, is directed to the abnormal information for treating service data;And then when terminal detects the presence of This is directed to after the abnormal information of service data, the abnormal information is reported into server, so that server Abnormal information is analyzed, and service data is treated based on analysis result and adjusted accordingly, and then, when Terminal obtains when service data again, and the server will treat that service data is sent to terminal after adjustment, Now, the terminal after by adjustment when service data is injected into the process of intended application, Neng Gouzhi Abnormal problem corresponding to the abnormal information is avoided less, and then improves the injection success rate of code injection process.
Embodiment three
Based on the method described in embodiment one or embodiment two, in the present embodiment, the server is to be shipped When row data are adjusted, following parameter can also be referred to;Specifically,
For example, it may be referred to terminal characteristic information;Specifically, terminal obtains terminal feature letter corresponding to itself Breath;The terminal feature comprises at least the hardware characteristics and software features of terminal;And then by the terminal feature Information is sent to the server, so that the server gets the terminal characteristic information of terminal feedback, and Service data is treated to described according to the terminal characteristic information of terminal and the abnormal information and/or status information It is adjusted.
Specifically, as shown in Figure 10, wait to run to described according to abnormal information and terminal characteristic information with terminal Exemplified by data are adjusted, the present embodiment is described further;Specifically, when terminal is determined with mesh Mark function treats service data, and determines to need to inject this after the intended application of service data, to described Server sends the request for obtaining and treating service data, and the server is determined to treat service data based on the request, And treat that service data is sent to terminal by described;The terminal treats that service data is injected into intended application by described In corresponding process;Further, the terminal, which detects whether to exist, is directed to the exception for treating service data Information, for example, after process corresponding to service data is injected into intended application, terminal detects whether to treat The phenomenon of service data operation exception, when present, terminal generation are directed to the abnormal letter for treating service data Breath, or, after process corresponding to service data is injected into intended application, terminal detects whether target occur Using the phenomenon of operation exception, when present, terminal, which can also generate, is directed to the abnormal letter for treating service data Breath;And then after terminal detects the presence of and is directed to this after the abnormal information of service data, by the abnormal information Report server;Moreover, the terminal also obtains terminal characteristic information corresponding to itself, and will get Terminal characteristic information report server so that the server is to the terminal characteristic information and described different Normal information is analyzed, and then is treated service data based on analysis result and adjusted accordingly, and so, works as end End is obtained when service data again, and the server will treat that service data is sent to terminal after adjustment, this When, the terminal after by adjustment when service data is injected into the process of intended application, can be at least Abnormal problem corresponding to the abnormal information is avoided, and then improves the injection success rate of code injection process.
Certainly, in actual applications, terminal can also be according only to the status information and terminal described in embodiment one Characteristic information treats that service data is adjusted to described, or, according to the status information described in embodiment one, Abnormal information and terminal characteristic information described in embodiment two treat that service data is adjusted to described, specifically Process repeats no more.
Example IV
Based on the method described in embodiment one to any one of example IV, present embodiments provide and obtain the shape The detailed process of state information;Specifically,
Terminal directly sends the status information to server, so that the server can be directly obtained The status information, in order to which the server treats that service data is adjusted based on the status information to described; Specifically,
The running status of the intended application of the terminal detection self-operating, judges that the running status is No to match with target operation state, the target operation state characterizes operation of the terminal in the intended application During run into obstruction the running of the intended application is in the state of wait-for-response;And then according to The status information for the intended application is determined whether there is with result;For example, upon a match, I.e. described terminal is in the target operation state, and now, the terminal is determined to exist and answered for the target The status information, and status information corresponding to the target operation state is obtained, the state is believed Breath is sent to server, so that the intended application that the server gets terminal feedback is in target fortune Corresponding status information during row state, and then make object run of the server based on the intended application The status information of state treats that service data is adjusted to described.Here, the target operation state characterizes eventually End runs into obstruction in the running of the intended application makes the running of the intended application be in wait The state of response, e.g., it is injected into process and is in and block and the state of waiting system signal.
Specifically, as shown in figure 11, when terminal determines the service data for the treatment of with objective function, and determine Go out to need to inject this after the intended application of service data, send to obtain to the server and treat service data Ask, the server is determined to treat service data based on the request, now, being capable of base for ease of server Treat that service data is adjusted to described in the running status of the intended application of terminal, the terminal also needs to The running status of the intended application of self-operating is detected, and determines the current running status and institute When stating target operation state and matching, using the running status of the intended application as target operation state, and The status information of the target operation state is sent to server, so that the server is based on the target The status information of running status is treated service data and is adjusted, and then, it will treat that service data is sent out after adjustment Terminal is delivered to, so that the terminal is treating that service data is injected into the process of intended application after by adjustment, And then avoid making terminal receive error signal due to the injection process of injecting program, and carry out errored response The problem of.For example, when the application process of program to be injected into is in obstruction waiting system signal, now, clothes Business device can add the corresponding program of waiting system signal in service data is treated, and then avoid working as line number to be shipped After the application process is injected into, intended application is mistakenly considered to receive system signal and carry out asking for errored response Topic;In this way, by said process, the server can treat operation based on the various types of signal being collected into Data are adapted to, and then the success rate for lifting injection is laid a good foundation.
Certainly, in actual applications, the server can go the detection terminal operation target should with oneself Whether running status matches with target operation state;Specifically, the server goes to obtain to terminal The running status of the intended application, and judge the running status that itself gets whether with the target Running status matches, when the running status and the target operation state phase of currently running the intended application During matching, namely when determining that the terminal is in the target operation state, acquisition currently runs the mesh The corresponding status information of mark application, and then treat that service data is adjusted to described based on the status information.
Here, in actual applications, the server can also segment the result that each step of injection performs, Once terminal detect it is a certain walk out of existing exception, then testing result is fed back into server.The server leads to Cross and collect this kind of error code, coordinate backstage to manufacture corresponding form, and then point of multi dimensional analysis failure type Cloth, then it is adapted to, to improve the success rate of injection.The server can also be injected into by monitoring The collapse storehouse of process, and reporting system backstage, and then multi dimensional analysis abnormal cause, it is preferential to solve exception The larger part of accounting, and then improve injection success rate.
Embodiment five
A kind of server is present embodiments provided, as shown in figure 12, the server includes:
Determining unit 1201, for determining to treat service data;It is described to treat that service data sign be in terminal The data injected in intended application;
First acquisition unit 1202, the operation characteristic information of the intended application is directed to for obtaining terminal;Institute Stating operation characteristic information includes at least one of following information:Terminal in the intended application by running institute State and treat at least part data in service data and cause the abnormal information generated in abnormality, terminal Obstruction is run into during running the intended application makes the running of the intended application be in wait-for-response Status information;
Processing unit 1203, for treating that service data is entered to described according to the abnormal information and/or status information Row adjustment;
First transmitting element 1204, for will treat that service data is sent to terminal described in after adjustment, so that eventually End described in after by the intended application combustion adjustment when service data when avoid being in abnormality.
In one embodiment, the first acquisition unit 1202, it is additionally operable to obtain and waits to run described in terminal operating At least part data in data and cause the intended application to be in the abnormal information of abnormality;And/or Obtain and at least part data in service data are treated described in terminal operating and cause the operation for treating service data Process is in the abnormal information of abnormality.
In another embodiment, the first acquisition unit 1202, it is additionally operable to obtain the mesh of terminal feedback Mark application is in status information corresponding during target operation state, and the target operation state characterizes terminal and existed Obstruction is run into the running of the intended application makes the running of the intended application be in wait-for-response State.
In one embodiment, the first acquisition unit 1202, it is additionally operable to acquisition terminal and currently runs the mesh Mark the running status of application;Judge whether the running status matches with the target operation state, it is described Target operation state sign terminal runs into obstruction in the running of the intended application makes the intended application Running be in the state of wait-for-response;When currently run the running status of the intended application with it is described When target operation state matches, the status information currently run corresponding to the intended application is obtained.
In another embodiment, the first acquisition unit 1202, it is additionally operable to obtain the terminal feature letter of terminal Breath;The terminal feature comprises at least the hardware characteristics and software features of terminal;
Accordingly, the processing unit 1203, is additionally operable to the terminal characteristic information according to terminal, and described Abnormal information and/or status information treat that service data is adjusted to described.
It need to be noted that be:The description of above server implementation item, it is similar with above method description , have with embodiment of the method identical beneficial effect, therefore do not repeat.It is real for server of the present invention The ins and outs not disclosed in example are applied, those skilled in the art refer to the description of the inventive method embodiment And understand, to save length, repeat no more here.
The present embodiment additionally provides the hardware architecture diagram of server;As shown in figure 13, the server bag Include processor 1301, memory 1302, transmitter 1303 and receiver 1304;Wherein, the processing Device 1301 can be that microprocessor, central processing unit, digital signal processor or programmable logic array etc. have The electronic component of processing function.The memory includes storage medium, is stored with the storage medium Computer-executable code, the computer-executable code are able to carry out the present embodiment one to any one of implementation three Method described in server side.Here, in actual applications, the determining unit, first acquisition unit and Processing unit can be realized by the processor 1301 in the server;First transmitting element can pass through Transmitter in the server is realized.
Embodiment six
A kind of terminal is present embodiments provided, as shown in figure 14, the terminal includes:
Second acquisition unit 1401, service data is treated for obtaining, to treat that service data is injected into described by described In the intended application that terminal is chosen;
Detection unit 1402, for detecting whether the operation characteristic information for the intended application be present;Institute Stating operation characteristic information includes at least one of following information:Terminal in the intended application by running institute State and treat at least part data in service data and cause the abnormal information generated in abnormality, terminal Obstruction is run into during running the intended application makes the running of the intended application be in wait-for-response Status information;
Second transmitting element 1403, for when it is determined that the abnormal information and/or status information be present, by institute State abnormal information and/or status information is sent to server, so that server is based on the abnormal information and/or shape State information treats that service data is adjusted to described, and terminal is treated service data described in after combustion adjustment When avoid being in abnormality.
In one embodiment, the detection unit 1402, it is additionally operable to treat in service data described in detection operation Whether the intended application is in abnormality during at least part data, when detecting that the intended application is in During abnormality, abnormal information is generated;Or detect at least part number treated described in operation in service data According to when described in treat whether the running of service data is in abnormality, described treat service data when detecting Running when being in abnormality, generate abnormal information.
In another embodiment, the detection unit 1402, it is additionally operable to detection terminal and runs the intended application Running status;Judge whether the running status matches with target operation state, the object run shape State characterizes terminal and the running for blocking and making the intended application is run into the running of the intended application State in wait-for-response;The shape for the intended application is determined whether there is according to matching result State information.
In another embodiment, the second acquisition unit, it is additionally operable to obtain terminal feature letter corresponding to itself Breath;The terminal feature comprises at least the hardware characteristics and software features of terminal;
Accordingly, second transmitting element 1403, it is additionally operable to send the terminal characteristic information to described Server, so that the server is based on the terminal characteristic information, and the abnormal information and/or state Information treats that service data is adjusted to described.
It need to be noted that be:The description of above terminal embodiment item, with the above method description be it is similar, With same embodiment of the method identical beneficial effect, therefore do not repeat.For in terminal embodiment of the present invention The ins and outs not disclosed, those skilled in the art refer to the description of the inventive method embodiment and understand, To save length, repeat no more here.
The present embodiment additionally provides the hardware architecture diagram of terminal;As shown in figure 15, the terminal includes place Manage device 1501, memory 1502, transmitter 1503 and receiver 1504;Wherein, the processor 1501 Can be that microprocessor, central processing unit, digital signal processor or programmable logic array etc. have processing work( The electronic component of energy.The memory includes storage medium, and computer is stored with the storage medium Executable code, the computer-executable code are able to carry out the present embodiment one to any one of implementation three end sides Described method.Here, in actual applications, the second acquisition unit and detection unit can pass through institute The processor 1501 stated in terminal is realized;Second transmitting element can be real by the transmitter in the terminal It is existing.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can To realize by another way.Apparatus embodiments described above are only schematical, for example, institute The division of unit is stated, only a kind of division of logic function, there can be other dividing mode when actually realizing, Such as:Multiple units or component can combine, or be desirably integrated into another system, or some features can neglect Slightly, or do not perform.In addition, the mutual coupling of shown or discussed each part or direct coupling Close or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of equipment or unit, can To be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be it is physically separate, as The part that unit is shown can be or may not be physical location, you can positioned at a place, also may be used To be distributed on multiple NEs;Partly or entirely unit therein can be selected according to the actual needs Realize the purpose of this embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, Can also be each unit individually as a unit, can also two or more units be integrated in one In individual unit;Above-mentioned integrated unit can both be realized in the form of hardware, can also be added using hardware soft The form of part functional unit is realized.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can To be completed by the related hardware of programmed instruction, foregoing program can be stored in one and computer-readable deposit In storage media, the program upon execution, execution the step of including above method embodiment;And foregoing storage Medium includes:Movable storage device, read-only storage (ROM, Read Only Memory), deposit at random Access to memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can to store journey The medium of sequence code.
Or if the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independently Production marketing or in use, can also be stored in a computer read/write memory medium.Based on so Understanding, the part that the technical scheme of the embodiment of the present invention substantially contributes to prior art in other words can To be embodied in the form of software product, the computer software product is stored in a storage medium, bag Some instructions are included to so that a computer equipment (can be personal computer, server or network Equipment etc.) perform all or part of each embodiment methods described of the present invention.And foregoing storage medium bag Include:Movable storage device, read-only storage (ROM, Read Only Memory), random access memory Device (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with store program codes Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited to This, any one skilled in the art the invention discloses technical scope in, can readily occur in Change or replacement, it should all be included within the scope of the present invention.Therefore, protection scope of the present invention should It is defined by the scope of the claims.

Claims (18)

1. a kind of control method, it is characterised in that methods described includes:
Server determines to treat service data;It is described to treat that service data sign be noted in the intended application of terminal The data entered;
Obtain the operation characteristic information that terminal is directed to the intended application;The operation characteristic information includes following At least one of information:Terminal passes through at least portion in service data is treated described in intended application operation Divided data and cause the abnormal information generated in abnormality, the process of intended application described in terminal operating In run into obstruction the running of the intended application is in the status information of wait-for-response;
Treat that service data is adjusted to described according to the abnormal information and/or status information, after adjustment It is described to treat that service data is sent to terminal, so that terminal is described in after by the intended application combustion adjustment Avoid being in abnormality when service data.
2. according to the method for claim 1, it is characterised in that obtain terminal and be directed to the intended application Abnormal information, including:
Obtain and treat at least part data in service data described in terminal operating and cause the intended application to be in The abnormal information of abnormality;And/or
Obtain and treat at least part data in service data described in terminal operating and cause described to treat service data Running is in the abnormal information of abnormality.
3. method according to claim 1 or 2, it is characterised in that obtain terminal and be directed to the target The status information of application, including:
The intended application for obtaining terminal feedback is in status information corresponding during target operation state, institute State target operation state characterize terminal run into the running of the intended application obstruction make the target should Running is in the state of wait-for-response.
4. method according to claim 1 or 2, it is characterised in that obtain terminal and be directed to the target The status information of application, including:
Obtain the running status that terminal currently runs the intended application;
Judge whether the running status matches with the target operation state, the target operation state table Sign terminal runs into obstruction in the running of the intended application is in the running of the intended application The state of wait-for-response;
When the running status for currently running the intended application matches with the target operation state, obtain Currently run the status information corresponding to the intended application.
5. according to the method for claim 1, it is characterised in that methods described also includes:
Obtain the terminal characteristic information of terminal;The terminal feature comprises at least the hardware characteristics and software of terminal Feature;
Accordingly, it is described to treat that service data is adjusted to described according to the abnormal information and/or status information It is whole, including:
Wait to run to described according to the terminal characteristic information of terminal, and the abnormal information and/or status information Data are adjusted.
6. a kind of control method, it is characterised in that methods described includes:
Terminal obtains and treats service data, treats that service data is injected into the intended application that the terminal is chosen by described In;
Detect whether the operation characteristic information for having for the intended application;The operation characteristic information includes At least one of following information:Terminal described in intended application operation by treating in service data extremely Small part data and cause the abnormal information generated in abnormality, intended application described in terminal operating During run into obstruction the running of the intended application is in the status information of wait-for-response;
When it is determined that the abnormal information and/or status information be present, by the abnormal information and/or status information Send to server, so that server is based on the abnormal information and/or status information treats service data to described It is adjusted, and makes terminal avoid when service data being in abnormality described in after combustion adjustment.
7. according to the method for claim 6, it is characterised in that detect whether exist be directed to the target The abnormal information of application, including:
Whether the intended application is in abnormal when at least part data in service data described in detection operation State, when detecting that the intended application is in abnormality, generate abnormal information;Or
The running of service data is treated described in detection operation described in when at least part data in service data Whether abnormality is in, it is described when the running of service data is in abnormality when detecting, it is raw Into abnormal information.
8. the method according to claim 6 or 7, it is characterised in that detect whether exist for described The status information of intended application, including:
Detection terminal runs the running status of the intended application;
Judge whether the running status matches with target operation state, the target operation state characterizes eventually End runs into obstruction in the running of the intended application makes the running of the intended application be in wait The state of response;
The status information for the intended application is determined whether there is according to matching result.
9. according to the method for claim 6, it is characterised in that methods described also includes:
Obtain terminal characteristic information corresponding to itself;The terminal feature comprise at least terminal hardware characteristics and Software features;
The terminal characteristic information is sent to the server, so that the server is based on terminal spy Reference ceases, and the abnormal information and/or status information treat that service data is adjusted to described.
10. a kind of server, it is characterised in that the server includes:
Determining unit, for determining to treat service data;It is described to treat that service data sign be in the target of terminal The data injected in;
First acquisition unit, the operation characteristic information of the intended application is directed to for obtaining terminal;The fortune Row characteristic information includes at least one of following information:Terminal described in intended application operation by treating At least part data in service data and cause the abnormal information generated in abnormality, terminal operating Obstruction is run into during the intended application makes the running of the intended application be in the shape of wait-for-response State information;
Processing unit, for treating that service data is adjusted to described according to the abnormal information and/or status information It is whole;
First transmitting element, for will treat that service data is sent to terminal described in after adjustment, so that terminal exists By avoiding described in after the intended application combustion adjustment being in abnormality when service data.
11. server according to claim 10, it is characterised in that the first acquisition unit, also At least part data in service data are treated described in terminal operating and cause the intended application to be in for obtaining The abnormal information of abnormality;And/or obtain at least part data treated described in terminal operating in service data And treat that the running of service data is in the abnormal information of abnormality described in causing.
12. the server according to claim 10 or 11, it is characterised in that described first obtains list Member, the intended application for being additionally operable to obtain terminal feedback are in state letter corresponding during target operation state Breath, the target operation state characterize terminal run into the running of the intended application obstruction make it is described The running of intended application is in the state of wait-for-response.
13. the server according to claim 10 or 11, it is characterised in that described first obtains list Member, it is additionally operable to obtain the running status that terminal currently runs the intended application;Judging the running status is No to match with the target operation state, the target operation state characterizes terminal in the intended application Obstruction is run into running makes the running of the intended application be in the state of wait-for-response;When current Run the running status of the intended application and when the target operation state matches, obtain current operation institute State the status information corresponding to intended application.
14. server according to claim 10, it is characterised in that the first acquisition unit, also For obtaining the terminal characteristic information of terminal;The terminal feature comprises at least the hardware characteristics and software of terminal Feature;
Accordingly, the processing unit, the terminal characteristic information according to terminal, and the exception are additionally operable to Information and/or status information treat that service data is adjusted to described.
15. a kind of terminal, it is characterised in that the terminal includes:
Second acquisition unit, service data is treated for obtaining, treats that service data is injected into the terminal by described In the intended application chosen;
Detection unit, for detecting whether the operation characteristic information for the intended application be present;The fortune Row characteristic information includes at least one of following information:Terminal described in intended application operation by treating At least part data in service data and cause the abnormal information generated in abnormality, terminal operating Obstruction is run into during the intended application makes the running of the intended application be in the shape of wait-for-response State information;
Second transmitting element, will be described different for when it is determined that the abnormal information and/or status information be present Normal information and/or status information are sent to server, so that server is based on the abnormal information and/or state is believed Breath treats that service data is adjusted to described, and terminal is kept away described in after combustion adjustment when service data Exempt to be in abnormality.
16. terminal according to claim 15, it is characterised in that the detection unit, be additionally operable to examine Survey described in operation whether the intended application is in abnormality when at least part data in service data, When detecting that the intended application is in abnormality, abnormal information is generated;Or described in detection operation Treat whether the running of service data is in abnormal shape described in when at least part data in service data State, it is described when the running of service data is in abnormality when detecting, generate abnormal information.
17. the terminal according to claim 15 or 16, it is characterised in that the detection unit, also The running status of the intended application is run for detection terminal;Judge whether the running status transports with target Row state matches, and the target operation state characterizes terminal and run into the running of the intended application Obstruction makes the running of the intended application be in the state of wait-for-response;Determined whether according to matching result In the presence of the status information for the intended application.
18. terminal according to claim 15, it is characterised in that the second acquisition unit, also use In terminal characteristic information corresponding to acquisition itself;The terminal feature comprises at least the hardware characteristics of terminal and soft Part feature;
Accordingly, second transmitting element, it is additionally operable to send the terminal characteristic information to the service Device, so that the server is based on the terminal characteristic information, and the abnormal information and/or status information Treat that service data is adjusted to described.
CN201610596021.3A 2016-07-26 2016-07-26 A kind of control method and server, terminal Pending CN107659425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610596021.3A CN107659425A (en) 2016-07-26 2016-07-26 A kind of control method and server, terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610596021.3A CN107659425A (en) 2016-07-26 2016-07-26 A kind of control method and server, terminal

Publications (1)

Publication Number Publication Date
CN107659425A true CN107659425A (en) 2018-02-02

Family

ID=61127532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610596021.3A Pending CN107659425A (en) 2016-07-26 2016-07-26 A kind of control method and server, terminal

Country Status (1)

Country Link
CN (1) CN107659425A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117240A (en) * 2009-12-31 2011-07-06 腾讯科技(深圳)有限公司 Method and device for acquiring progress blocking information
CN102236587A (en) * 2010-04-28 2011-11-09 上海中标软件有限公司 Recovery method for abnormal firefox browser
CN104216738A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Operation method and operation device of application program
CN104468938A (en) * 2013-09-12 2015-03-25 ***通信集团浙江有限公司 Information acquisition and processing methods and related devices as well as mobile terminal and server
CN104717301A (en) * 2015-03-27 2015-06-17 北京奇虎科技有限公司 Plug-in download method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102117240A (en) * 2009-12-31 2011-07-06 腾讯科技(深圳)有限公司 Method and device for acquiring progress blocking information
CN102236587A (en) * 2010-04-28 2011-11-09 上海中标软件有限公司 Recovery method for abnormal firefox browser
CN104468938A (en) * 2013-09-12 2015-03-25 ***通信集团浙江有限公司 Information acquisition and processing methods and related devices as well as mobile terminal and server
CN104216738A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Operation method and operation device of application program
CN104717301A (en) * 2015-03-27 2015-06-17 北京奇虎科技有限公司 Plug-in download method and device

Similar Documents

Publication Publication Date Title
JP3701303B2 (en) Computer system monitoring method and apparatus
CN106326219B (en) Method, device and system for checking business system data
CN103207969B (en) The device of detection Android malware and method
CN103294950B (en) A kind of high-power secret information stealing malicious code detecting method based on backward tracing and system
CN107402880A (en) A kind of method of testing and electronic equipment
US20140215618A1 (en) Method and apparatus for computer intrusion detection
CN106936793A (en) A kind of information intercepting processing method and terminal
CN106462702A (en) Method and system for obtaining and analysing forensic data in a distributed computer infrastructure
CN103268183A (en) Processing method and device for information report
JP2012150805A (en) Systems and methods for detecting fraud associated with systems application processing
US20140201762A1 (en) Event handling system and method
CN107315952A (en) Method and apparatus for determining application program suspicious actions
CN108021485A (en) The monitoring method and device of application program running state
US11960378B2 (en) Automated runbook operation recommendations
CN105653322A (en) Operation and maintenance server and server event processing method
CN110442502A (en) A kind of method, apparatus buried a little, equipment and storage medium
CN108520043A (en) Data object acquisition method, apparatus and system, computer readable storage medium
CN113419935B (en) Mobile terminal performance monitoring method, device, equipment and storage medium
CN102469098B (en) Information safety protection host machine
CN108763062A (en) Bury the filter method and terminal device of a title
CN105843675B (en) Thread exit method and device
CN102541674B (en) Control system and method of autonomic element model and server invasion protection and detection system
CN109743339A (en) The network security monitoring method and device of electric power plant stand, computer equipment
CN106953874B (en) Website falsification-proof method and device
CN107193600A (en) A kind of patch management method, the first equipment, the first plug-in unit, system and fire wall

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180202

RJ01 Rejection of invention patent application after publication