[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108519883A - Parameter amending method, device, terminal device and storage medium - Google Patents

Parameter amending method, device, terminal device and storage medium Download PDF

Info

Publication number
CN108519883A
CN108519883A CN201810250159.7A CN201810250159A CN108519883A CN 108519883 A CN108519883 A CN 108519883A CN 201810250159 A CN201810250159 A CN 201810250159A CN 108519883 A CN108519883 A CN 108519883A
Authority
CN
China
Prior art keywords
parameter value
original
modification
function
echo server
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
CN201810250159.7A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201810250159.7A priority Critical patent/CN108519883A/en
Publication of CN108519883A publication Critical patent/CN108519883A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/53Decompilation; Disassembly
    • 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
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of parameter amending method, device, terminal device and storage mediums.The parameter amending method, including:Obtain the original parameter value for the goal approach function output that Hook Function hooks up;The original parameter value is sent to echo server in a manner of synchronization request;During the original parameter value is sent to echo server in a manner of synchronization request, the original parameter value is changed by network packet catcher, modification parameter value is obtained, the modification parameter value is sent to echo server;Receive the modification parameter value that the echo server is passed back.The parameter amending method can improve the efficiency of parameter modification, and flexibility and the convenience of enhancing parameter modification when changing parameter.

Description

Parameter amending method, device, terminal device and storage medium
Technical field
The present invention relates to computer realms more particularly to a kind of parameter amending method, device, terminal device and storage to be situated between Matter.
Background technology
During hooking up method function using Hook Function to application program, such as need in dynamic modification method function The parameter value of transmission generally realizes parameter modification by the way that related logical code of replacing is written in Hook Function at present.It is this to do Method often replaces primary new value (parameter modification) and is required for rewriteeing Hook Function, and parameter is caused to change process underaction.Such as In certain software tests for relying on Hook Function, it is required for the write-in correlation in Hook Function to replace due to carrying out parameter modification every time Logical code is changed, leads to that test process is dumb, testing efficiency is low, and it also requires tester has certain code water It puts down related replacement logical code is written, gives calibration tape greatly inconvenient.
Invention content
A kind of parameter amending method of offer of the embodiment of the present invention, device, terminal device and storage medium, to solve current ginseng Number changes inflexible problem.
In a first aspect, the embodiment of the present invention provides a kind of parameter amending method, including:
Obtain the original parameter value for the goal approach function output that Hook Function hooks up;
The original parameter value is sent to echo server in a manner of synchronization request;
During the original parameter value is sent to echo server in a manner of synchronization request, pass through network packet capturing work Tool changes the original parameter value, obtains modification parameter value, the modification parameter value is sent to echo server;
Receive the modification parameter value that the echo server is passed back.
Second aspect, the embodiment of the present invention provide a kind of parameter modification device, including:
Original parameter value acquisition module, the initial parameter for obtaining the goal approach function output that Hook Function hooks up Value;
Original parameter value sending module, for the original parameter value to be sent to echo service in a manner of synchronization request Device;
Parameter value acquisition module is changed, for being sent to echo server in a manner of synchronization request in the original parameter value During, the original parameter value is changed by network packet catcher, modification parameter value is obtained, the modification parameter value is sent out It send to echo server;
Parameter value receiving module is changed, the modification parameter value passed back for receiving the echo server.
The third aspect, the embodiment of the present invention provide a kind of terminal device, including memory, processor and are stored in described In memory and the computer program that can run on the processor, the processor are realized when executing the computer program The step of parameter amending method.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium The step of matter is stored with computer program, and the computer program realizes the parameter amending method when being executed by processor.
In parameter amending method, device, terminal device and storage medium that the embodiment of the present invention is provided, hook can be passed through The mode that subfunction hooks up goal approach function obtains the original parameter value, is provided subsequently to modify to the original parameter value Basis.Original parameter value is then sent to echo server in a manner of synchronization request, is provided for modification original parameter value Advantageous condition and the possibility of modification, and ensure the validity of modification process.Then by network packet catcher original During parameter value is sent to echo server in a manner of synchronization request, the mesh for intercepting and changing original parameter value is successfully realized , the mode for changing original parameter value was not only convenient but also flexible.The modification parameter value that echo server is passed back is finally received, by returning Aobvious server receives the characteristics of what content just passes what content back, can accurately obtain modification parameter value.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is a flow chart of parameter amending method in the embodiment of the present invention 1.
Fig. 2 is the particular flow sheet before step S10 in Fig. 1.
Fig. 3 is a particular flow sheet of step S30 in Fig. 1.
Fig. 4 is a functional block diagram of parameter modification device in the embodiment of the present invention 2.
Fig. 5 is a schematic diagram of terminal device in the embodiment of the present invention 4.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Embodiment 1
Fig. 1 shows a flow chart of parameter amending method in the present embodiment.The parameter amending method can be applicable to using journey In sequence, the original parameter value for being exported to goal approach function in application program is modified, and specifically be can be applicable to and is mounted on In application program on terminal device.Wherein, which is the equipment that can carry out human-computer interaction with user, including but unlimited In equipment such as computer, smart mobile phone and tablets.As shown in Figure 1, the parameter amending method includes the following steps:
S10:Obtain the original parameter value for the goal approach function output that Hook Function hooks up.
Wherein, Hook Function (also known as Hook) refers to the specific function function for hooking method function, that is, is being run Before the process of method function, it is necessary to first carry out Hook Function.It is to be appreciated that Hook Function is exactly a kind of special monitoring method The specific function function of function.Goal approach function refers to the tool for needing to hook up using Hook Function in destination application Body function, Hook Function can hook up any means function, but in specific destination application, it can according to actual needs Method function is hooked up, the function finally hooked up should be selected in destination application is goal approach function.Intended application journey Sequence, it is possible to understand that ground as uses the application program of Hook Function.
In the present embodiment, the parameter value that goal approach function exports is known as original parameter value, and (i.e. goal approach function is defeated The parameter that do not modify also gone out), it hooks up goal approach function in advance by Hook Function, is arrived in operational objective application program Before goal approach function, because the goal approach function is hooked up by Hook Function, the Hook Function must be first carried out.Then When goal approach function exports original parameter value, since Hook Function is monitoring always, as long as original parameter value one occurs, Back is just carried when original parameter value also has not enough time to be transmitted to next method function first obtains the original parameter value.It may be noted that , in a destination application, goal approach function can have multiple, can be written in destination application as needed Multiple Hook Functions, to achieve the purpose that obtain the original parameter value of multiple goal approach functions.It is to be appreciated that in any mesh It marks in application program, sequence is executed with preset between multiple goal approach functions, it is defeated in any goal approach function When the original parameter value gone out, monitored by Hook Function, can goal approach function original parameter value is sent to it is corresponding under Before one method function, the original parameter value is obtained.
In the present embodiment, if destination application is the program of record user's step number, it is intended that note step can be changed Mode, wherein the destination application have a method function realize function be often to detect that user has walked a step, then export Original parameter value 1, the corresponding next method function of this method function will obtain original parameter value 1 and correspondingly add 1 in step number. It should be evident that this method function is the method function of destination application key, then it can determine that this method function is needs The function hooked up using Hook Function, i.e. goal approach function.Every time when the destination application records the goal approach of step number When function exports original parameter value (herein referring to 1), Hook Function all can be when the original parameter value (herein referring to 1) be added in step number The original parameter value is obtained in advance, subsequently to provide the foundation as further modification to the original parameter value.
In the present embodiment, if destination application is a program for being still in test phase, need by repeatedly changing survey It tries whether the original parameter value that goal approach function exports in the destination application meets expected setting, then can pass through hook Subfunction monitors the output of the goal approach function when destination application goes to goal approach function, to obtain original ginseng Numerical value, the parameter testing subsequently to be modified based on the original parameter value are provided the foundation.
In a specific embodiment, as shown in Fig. 2, before step S10, that is, the target that hooks up of Hook Function is being obtained Before the original parameter value of method function output, which further includes following steps:
S11:The destination application of goal approach function is analyzed using decompiling instrument, obtains analysis result.
Wherein, decompiling instrument refers to having reversely in computer software reverse engineering (Reverse engineering) The tool of compilation facility.Computer software reverse engineering is also referred to as computer software reduction engineering, refers to by other people softwares Destination application (such as application program, executable program) carry out conversed analysis, research work, to derive that other people are soft The design elements such as thinking, principle, structure, algorithm, processing procedure and operation method used in part product.Decompiling instrument has very It is more, as the relevant decompilers of Android have SMALI/BAKSMAL;The relevant decompilers of C++ have eXeScope; The relevant decompilers of JAVA have JD (Java Decompiler) etc..
In the present embodiment, it is first determined which the destination application to be hooked up is, then by using decompiling Tool analyzes the destination application, and obtains corresponding analysis result.The analysis result includes being analyzed from decompiling In know that the original parameter value of output is exported by which corresponding method function, to determine goal approach function.Such as it is right Remember that the destination application of step number carries out decompiling, then can be known according to analysis result and often detect that user has walked a step, then Export the corresponding method function of function of original parameter value 1, i.e., what above-mentioned function was realized particular by which method function. Similarly, for different destination applications, destination application can be analyzed by decompiling instrument, what analysis wherein exported Correspondence between original parameter value and method function.
S12:Goal approach function is determined according to analysis result, and goal approach function is hooked up using Hook Function.
In the present embodiment, the analysis result obtained by decompiling instrument analyzes the original parameter value and method letter of output Correspondence between number, the final goal approach function determined in destination application.And determining goal approach function Later, goal approach function is hooked up by Hook Function.Goal approach function is determined according to analysis result, and in operational objective Before application program, goal approach function is hooked up by Hook Function in advance, to reach the output to goal approach function (i.e. Original parameter value) monitoring effect.
S20:Original parameter value is sent to echo server in a manner of synchronization request.
Wherein, synchronization request mode refers to just sending out next after waiting recipients to beam back response after sender sends out data The communication modes of data packet.Echo server (echo server) refers to that any content that client is sent echoes To the server of itself (i.e. client).
In the present embodiment, original parameter value is sent to by echo server by synchronization request mode, is referred specifically to, After obtaining original parameter value, and before original parameter value is sent to next method function, by echo server receive with The original parameter value that synchronization request mode sends over.The process for subsequent modification original parameter value provide advantageous condition and The possibility of modification.
In a specific embodiment, in step S20, original parameter value is sent to echo service in a manner of synchronization request Device specifically comprises the following steps:Based on the access address of echo server, network connection is established, by original parameter value with synchronization Request method is sent to echo server.
Wherein, the Hook Function referred in step S10 includes the access address for echoing server, the visit of the echo server Ask the original parameter value echo server address to be accessed when address refers to for establishing network connection.In the present embodiment, build Vertical network connection specifically refers to the synchronization request mode of access address initiation, foundation of the Hook Function according to echo server Network connection, based on the network connection can original parameter value in a manner of synchronization request according to echo server access address It is sent to echo server.
In the present embodiment, based on the access address of echo server, established in destination application in a manner of synchronization request Connection between Hook Function and echo server, the original parameter value that Hook Function is obtained basis in a manner of synchronization request are returned The access address of aobvious server is sent to echo server.
S30:During original parameter value is sent to echo server in a manner of synchronization request, pass through network packet capturing work Tool modification original parameter value, obtains modification parameter value, and modification parameter value is sent to echo server.
Wherein, network packet catcher refers to the tool for intercepting and checking content of network data packet.It refers to original to change parameter value Parameter value after beginning parameter value is modified.Since the characteristics of synchronization request mode is intended application after original parameter value is sent out The recipients such as program need can just continue to run with after beaming back response, then the feature provides possibility for modification original parameter value. On the contrary, if (after sender sends out data, not equal recipients beam back response, then send using Asynchronous Request mode The communication modes of next data packet), it will be unable to the modification for realizing original parameter value.Because under synchronization request mode, to complete One modification process, destination application, which must wait original parameter values to change and return, to be come, and destination application could continue past Lower operation.If using Asynchronous Request mode, program will continue directly to run, will be unable to realize repairing for original parameter value Change.The process that network connection is established using synchronization request mode and based on echo server provides modification original parameter value Possibility modifies to original parameter value by network packet catcher during the network connection of the synchronization request mode.
In the present embodiment, during original parameter value is sent to echo server in a manner of synchronization request, due to adopting It is synchronization request mode, then can be in the way of synchronization request the characteristics of changes original parameter value, can be specifically to pass through Network packet catcher changes original parameter value, obtains modification parameter value, and continue the modification parameter value of acquisition to be sent to echo Server.Wherein, network packet catcher can be the packet catchers such as burp and fiddler, and net can be intercepted by packet catcher The original parameter value that network is sent when connecting, and modify to the original parameter value.It is to be appreciated that using network packet catcher The reason of be existing many maturations on the market network packet catcher, network packet catcher has test expanded function, convenient It uses, it is more practical to carry out reception replacement compared to exploitation client again.
In the present embodiment, if destination application is a program for being still in test phase, need by repeatedly changing survey Try whether the original parameter value that goal approach function exports in the destination application meets expected setting, then in initial parameter During value is sent to echo server in a manner of synchronization request, it need to only be grabbed using network every time in the network connection Job contract tool modifies to original parameter value.Wherein, such as this acquisition modification parameter value and do not meet expected setting, Then during modification next time, which just becomes the initial parameter during modification next time Value, so, the concept for changing parameter value and original parameter value is opposite.It should be evident that establishing synchronization request by this The network connection of mode, and the mode for changing parameter value is received by echo server, it may be implemented flexibly, easily to change former Beginning parameter value realizes parameter modification without related logical code of replacing is written in Hook Function every time.This way by It is required for rewriteeing Hook Function in every newly value (parameter modification) of replacing once, parameter is caused to change process underaction.And at this In parameter amending method, Hook Function major function is to initiate the request of network connection, establishes and connects with the network of echo server It connects, original parameter value is sent to echo server in a manner of synchronization request, and receive the content of echo server return (here Specifically refer to modification parameter value).Modification original parameter value is executed by network packet catcher, without being executed in Hook Function.It should Parameter amending method substantially increases the efficiency of parameter modification, especially prominent for certain special scenes (such as software test), no Hook Function must be rewritten again every time, substantially increase flexibility and the convenient degree of parameter modification.
In a specific embodiment, in step S30, as shown in figure 3, being sent in a manner of synchronization request in original parameter value To echo server, original parameter value is changed by network packet catcher, modification parameter value is obtained, parameter will be changed Value is sent to echo server, specifically comprises the following steps:
S31:During original parameter value is sent to echo server in a manner of synchronization request, pass through network packet capturing work Tool intercepts original parameter value.
In the present embodiment, network packet catcher is that have the work for intercepting, checking and change the functions such as content of network data packet Tool.Specifically, what which referred to transmission in the present embodiment includes the data packet of original parameter value.Pass through network Packet catcher (such as fiddler) realize to this include original parameter value data packet interception, and obtain original ginseng therein Numerical value.It is to be appreciated that since original parameter value is to be sent to echo server in a manner of synchronization request, so being grabbed in network During job contract tool intercepts original parameter value, the process where goal approach function will block, and destination application will It can not continue to run with down.
S32:During interception, network packet catcher modifies to original parameter value, obtains modification parameter value.
In the present embodiment, during realizing interception by network packet catcher, the process where goal approach function It will block, destination application will be unable to continue to run with down, at this point, network packet catcher is then to original parameter value according to need It modifies, obtains modification parameter value.
In a specific embodiment, it after step S32, i.e., modifies to original parameter value in network packet catcher, After obtaining modification parameter value, which includes the following steps:Continuation sends modification parameter in a manner of synchronization request Value to echo server, echo server receives modification parameter value.
In the present embodiment, modify to original parameter value in network packet catcher, after obtaining modification parameter value, network Packet catcher will stop intercepting, and discharge the process where goal approach function, will continue to send in a manner of synchronization request at this time to repair Change parameter value to echoing server.Echo server receives modification parameter value.
S40:Receive the modification parameter value that echo server is passed back.
In the present embodiment, echo server refers to one and any content that client is sent is echoed to itself, so The server of connection is closed afterwards.After echo server receives modification parameter value, it will modification parameter value is untouched not Pass destination application back dynamicly.Destination application receives the modification parameter value that echo server is passed back.And it is changed receiving After parameter value, using modification parameter value as the incoming value of next method function, so that destination application continues to run with.Specifically Ground, if destination application is the program of record user's step number, original parameter value was 1 (adding 1 step when remembering step number), modification Parameter value was 0.5 (adding 0.5 step when remembering step number), then echo server receive modification parameter value after, parameter will be changed Value passes destination application back, at this point, user often makes a move, practical step number only adds 0.5 step.Server is echoed by reception to pass back Modification parameter value, completely realize the process of modification original parameter value, embody the parameter amending method and changing original ginseng Flexibility when numerical value and convenience.
It should be noted that in a destination application, goal approach function can have multiple.In destination application Operation during changing original parameter value, has the corresponding multiple process that network request is established with echo server.And phase Network packet catcher should be used to change parameter value in multiple times, the value that finally gets parms simultaneously will change parameter value by echoing server Pass destination application back.
In the parameter amending method that the present embodiment is provided, the goal approach function output that Hook Function hooks up is obtained first Original parameter value so that it is original original parameter value in such a way that Hook Function hooks up goal approach function can be obtained this Parameter value provides the foundation subsequently to modify to the original parameter value.Then by original parameter value in a manner of synchronization request It is sent to echo server, original parameter value is sent by synchronization request mode, can be in the way of synchronization request the characteristics of makes Process blocking where goal approach function during original parameter value must be changed, has been provided for subsequent modification original parameter value The condition of profit and the possibility of modification, and ensure the validity of modification process.Then in original parameter value with synchronization request side During formula is sent to echo server, original parameter value is changed by network packet catcher, modification parameter value is obtained, will repair Change parameter value and be sent to echo server, echo is sent in a manner of synchronization request in original parameter value by network packet catcher During server, successfully realize that the purpose for intercepting and changing original parameter value, the mode for changing original parameter value both facilitated Again flexibly.Finally receive the modification parameter value passed back of echo server, by echo server receive what content just pass back it is assorted The characteristics of content, can accurately obtain modification parameter value.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Embodiment 2
Fig. 4 shows to change the functional block diagram of device with the one-to-one parameter of parameter amending method in embodiment 1.Such as Fig. 4 It is shown, the parameter modification device include original parameter value acquisition module 10, original parameter value sending module 20, modification parameter value obtain Modulus block 30 and modification parameter value receiving module 40.Wherein, original parameter value acquisition module 10, original parameter value sending module 20, parameter modification side in the realization function and embodiment 1 of modification parameter value acquisition module 30 and modification parameter value receiving module 40 The corresponding step of method corresponds, and to avoid repeating, the present embodiment is not described in detail one by one.
Original parameter value acquisition module 10, the initial parameter for obtaining the goal approach function output that Hook Function hooks up Value;
Original parameter value sending module 20, for original parameter value to be sent to echo server in a manner of synchronization request;
Parameter value acquisition module 30 is changed, for being sent to echo server in a manner of synchronization request in original parameter value In the process, original parameter value is changed by network packet catcher, obtains modification parameter value, modification parameter value is sent to echo clothes Business device;
Parameter value receiving module 40 is changed, the modification parameter value passed back for receiving echo server.
Preferably, parameter modification device further includes goal approach function determination module 50, goal approach function determination module 50 include that analysis result acquiring unit 51 and goal approach function hook up unit 52.
Analysis result acquiring unit 51, for being carried out to the destination application of goal approach function using decompiling instrument Analysis obtains analysis result.
Goal approach function hooks up unit 52, for determining goal approach function according to analysis result, using Hook Function Hook up goal approach function.
Preferably, Hook Function includes the access address for echoing server.
Original parameter value sending module 20 establishes network connection for the access address based on echo server, will be original Parameter value is sent to echo server in a manner of synchronization request.
Preferably, modification parameter value acquisition module 30 includes that original parameter value interception unit 31 and modification parameter value acquisition are single Member 32.
Original parameter value interception unit 31, for being sent to echo server in a manner of synchronization request in original parameter value In the process, original parameter value is intercepted by network packet catcher.
Parameter value acquiring unit 32 is changed, for during interception, network packet catcher to repair original parameter value Change, obtains modification parameter value.
Preferably, parameter modification device further includes that modification parameter value continues sending module 60, for continuing with synchronization request Mode sends modification parameter value and receives modification parameter value to server, echo server is echoed.
In the parameter modification device that the present embodiment is provided, original parameter value acquisition module 10, for obtaining Hook Function The original parameter value of the goal approach function output hooked up so that original parameter value can be hooked up target side by Hook Function The mode of method function obtains the original parameter value, provides the foundation subsequently to modify to the original parameter value.Initial parameter It is worth sending module 20, for original parameter value to be sent to echo server in a manner of synchronization request, in the way of synchronization request The characteristics of to change process blocking where goal approach function during original parameter value, be subsequent modification original parameter value Advantageous condition and the possibility of modification are provided, and ensures the validity of modification process.Parameter value acquisition module 30 is changed, For during original parameter value is sent to echo server in a manner of synchronization request, being changed by network packet catcher former Beginning parameter value obtains modification parameter value, and modification parameter value is sent to echo server, is successfully realized and is intercepted and change original ginseng The purpose of numerical value, the mode for changing original parameter value were not only convenient but also flexible.Parameter value receiving module 40 is changed, for receiving echo The modification parameter value that server is passed back receives the characteristics of what content just passes what content back, Ke Yizhun by echoing server Really obtain modification parameter value.
Embodiment 3
The present embodiment provides a computer readable storage medium, computer journey is stored on the computer readable storage medium Sequence realizes parameter amending method in embodiment 1 when the computer program is executed by processor, no longer superfluous here to avoid repeating It states.Alternatively, realizing the work(of each module/unit in parameter modification device in embodiment 2 when the computer program is executed by processor Can, to avoid repeating, which is not described herein again.
Embodiment 4
Fig. 5 is the schematic diagram of terminal device in the present embodiment.As shown in figure 5, terminal device 70 includes processor 71, storage Device 72 and it is stored in the computer program 73 that can be run in memory 72 and on processor 71.Processor 71 executes computer When program 73 realize embodiment 1 in parameter amending method each step, such as step S10, S20, S30 shown in FIG. 1 and S40.Alternatively, processor 71 realizes the work(of parameter modification each module/unit of device in embodiment 2 when executing computer program 73 Can, original parameter value acquisition module 10 as shown in Figure 4, original parameter value sending module 20,30 and of modification parameter value acquisition module Change the function of parameter value receiving module 40.
Illustratively, computer program 73 can be divided into one or more module/units, one or more mould Block/unit is stored in memory 72, and is executed by processor 71, to complete the present invention.One or more module/units can To be the series of computation machine program instruction section that can complete specific function, the instruction segment is for describing computer program 73 at end Implementation procedure in end equipment 70.For example, computer program 70 can be divided into the original parameter value acquisition module in embodiment 2 10, original parameter value sending module 20, modification parameter value acquisition module 30 and modification parameter value receiving module 40, the tool of each module Body function is as described in Example 2, to avoid repeating, does not repeat one by one herein.
Terminal device 70 can be the computing devices such as desktop PC, notebook, palm PC and cloud server.Eventually End equipment may include, but be not limited only to, processor 71, memory 72.It will be understood by those skilled in the art that Fig. 5 is only eventually The example of end equipment 70 does not constitute the restriction to terminal device 70, may include components more more or fewer than diagram, or Combine certain components or different components, for example, terminal device can also include input-output equipment, network access equipment, Bus etc..
Alleged processor 71 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
Memory 72 can be the internal storage unit of terminal device 70, such as the hard disk or memory of terminal device 70.It deposits Reservoir 72 can also be the plug-in type hard disk being equipped on the External memory equipment of terminal device 70, such as terminal device 70, intelligence Storage card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) Deng.Further, memory 72 can also both include terminal device 70 internal storage unit and also including External memory equipment.It deposits Reservoir 72 is used to store other programs and the data needed for computer program and terminal device.Memory 72 can be also used for temporarily When store the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion The all or part of function of description.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can be stored in a computer read/write memory medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium May include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of parameter amending method, which is characterized in that including:
Obtain the original parameter value for the goal approach function output that Hook Function hooks up;
The original parameter value is sent to echo server in a manner of synchronization request;
During the original parameter value is sent to echo server in a manner of synchronization request, repaiied by network packet catcher Change the original parameter value, obtains modification parameter value, the modification parameter value is sent to echo server;
Receive the modification parameter value that the echo server is passed back.
2. parameter amending method according to claim 1, which is characterized in that the target side for obtaining Hook Function and hooking up Before the step of original parameter value of letter of law number output, the parameter amending method further includes:
The destination application of the goal approach function is analyzed using decompiling instrument, obtains analysis result;
The goal approach function is determined according to the analysis result, and the target side letter of law is hooked up using the Hook Function Number.
3. parameter amending method according to claim 1, which is characterized in that the Hook Function includes the echo service The access address of device;
It is described that the original parameter value is sent to echo server in a manner of synchronization request, including:
Based on the access address of the echo server, network connection is established, by the original parameter value in a manner of synchronization request It is sent to echo server.
4. parameter amending method according to claim 1, which is characterized in that described to be asked in the original parameter value with synchronizing During asking mode to be sent to echo server, the original parameter value is changed by network packet catcher, obtains modification ginseng Numerical value, including:
During the original parameter value is sent to echo server in a manner of synchronization request, pass through the network packet capturing work Tool intercepts the original parameter value;
During interception, the network packet catcher modifies to the original parameter value, obtains modification parameter value.
5. parameter amending method according to claim 4, which is characterized in that in the network packet catcher to described original Parameter value is modified, and after obtaining the step of changing parameter value, the parameter amending method further includes:
Continuation sends the modification parameter value to the echo server in a manner of the synchronization request, and the echo server connects Receive the modification parameter value.
6. a kind of parameter changes device, which is characterized in that including:
Original parameter value acquisition module, the original parameter value for obtaining the goal approach function output that Hook Function hooks up;
Original parameter value sending module, for the original parameter value to be sent to echo server in a manner of synchronization request;
Parameter value acquisition module is changed, the mistake for being sent to echo server in a manner of synchronization request in the original parameter value Cheng Zhong changes the original parameter value by network packet catcher, obtains modification parameter value, the modification parameter value is sent to Echo server;
Parameter value receiving module is changed, the modification parameter value passed back for receiving the echo server.
7. parameter according to claim 6 changes device, which is characterized in that the parameter modification device further includes target side Method function determination module, the goal approach function determination module include:
Analysis result acquiring unit, for being divided the destination application of the goal approach function using decompiling instrument Analysis obtains analysis result;
Goal approach function hooks up unit, for determining the goal approach function according to the analysis result, using the hook Subfunction hooks up the goal approach function.
8. parameter according to claim 6 changes device, which is characterized in that the Hook Function includes the echo service The access address of device;
The original parameter value sending module establishes network connection, by institute for the access address based on the echo server It states original parameter value and is sent to echo server in a manner of synchronization request.
9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program The step of any one parameter amending method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist In the step of realization parameter amending method as described in any one of claim 1 to 5 when the computer program is executed by processor Suddenly.
CN201810250159.7A 2018-03-26 2018-03-26 Parameter amending method, device, terminal device and storage medium Pending CN108519883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810250159.7A CN108519883A (en) 2018-03-26 2018-03-26 Parameter amending method, device, terminal device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810250159.7A CN108519883A (en) 2018-03-26 2018-03-26 Parameter amending method, device, terminal device and storage medium

Publications (1)

Publication Number Publication Date
CN108519883A true CN108519883A (en) 2018-09-11

Family

ID=63434312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810250159.7A Pending CN108519883A (en) 2018-03-26 2018-03-26 Parameter amending method, device, terminal device and storage medium

Country Status (1)

Country Link
CN (1) CN108519883A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286573A (en) * 2020-10-27 2021-01-29 西安诺瓦星云科技股份有限公司 Method, device and system for modifying configuration parameters of module controller
CN112732478A (en) * 2021-01-08 2021-04-30 浪潮商用机器有限公司 Server parameter modification method, device, equipment and storage medium
CN113489705A (en) * 2021-06-30 2021-10-08 中国银联股份有限公司 Method and device storage medium for capturing HTTP (hyper text transport protocol) communication data of application program
CN114296816A (en) * 2021-12-16 2022-04-08 珠海豹趣科技有限公司 Method and device for changing stably-running Windows system theme
CN117453534A (en) * 2023-10-10 2024-01-26 上海卡方信息科技有限公司 Data processing method, device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070174410A1 (en) * 2006-01-24 2007-07-26 Citrix Systems, Inc. Methods and systems for incorporating remote windows from disparate remote desktop environments into a local desktop environment
CN105491106A (en) * 2015-11-18 2016-04-13 中国石油天然气集团公司 Real-time synchronization system and method for oil well logging master-slave database systems
RU2015121371A (en) * 2015-06-05 2016-12-20 Закрытое акционерное общество "Лаборатория Касперского" System and method for recovering modified data
CN106294166A (en) * 2016-08-16 2017-01-04 腾讯科技(深圳)有限公司 A kind of game data monitoring method and apparatus
CN107294808A (en) * 2017-07-05 2017-10-24 网易(杭州)网络有限公司 The methods, devices and systems of interface testing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070174410A1 (en) * 2006-01-24 2007-07-26 Citrix Systems, Inc. Methods and systems for incorporating remote windows from disparate remote desktop environments into a local desktop environment
RU2015121371A (en) * 2015-06-05 2016-12-20 Закрытое акционерное общество "Лаборатория Касперского" System and method for recovering modified data
CN105491106A (en) * 2015-11-18 2016-04-13 中国石油天然气集团公司 Real-time synchronization system and method for oil well logging master-slave database systems
CN106294166A (en) * 2016-08-16 2017-01-04 腾讯科技(深圳)有限公司 A kind of game data monitoring method and apparatus
CN107294808A (en) * 2017-07-05 2017-10-24 网易(杭州)网络有限公司 The methods, devices and systems of interface testing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王丰: "EXE文件界面修改技术", 《潍坊学院学报》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286573A (en) * 2020-10-27 2021-01-29 西安诺瓦星云科技股份有限公司 Method, device and system for modifying configuration parameters of module controller
CN112286573B (en) * 2020-10-27 2024-05-10 西安诺瓦星云科技股份有限公司 Method, device and system for modifying configuration parameters of module controller
CN112732478A (en) * 2021-01-08 2021-04-30 浪潮商用机器有限公司 Server parameter modification method, device, equipment and storage medium
CN112732478B (en) * 2021-01-08 2023-05-16 浪潮商用机器有限公司 Modification method, device, equipment and storage medium of server parameters
CN113489705A (en) * 2021-06-30 2021-10-08 中国银联股份有限公司 Method and device storage medium for capturing HTTP (hyper text transport protocol) communication data of application program
CN114296816A (en) * 2021-12-16 2022-04-08 珠海豹趣科技有限公司 Method and device for changing stably-running Windows system theme
CN114296816B (en) * 2021-12-16 2024-05-31 珠海豹趣科技有限公司 Method and device for changing stably-running Windows system theme
CN117453534A (en) * 2023-10-10 2024-01-26 上海卡方信息科技有限公司 Data processing method, device, equipment and readable storage medium
CN117453534B (en) * 2023-10-10 2024-05-07 上海卡方信息科技有限公司 Data processing method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN108519883A (en) Parameter amending method, device, terminal device and storage medium
US9389936B2 (en) Monitoring the responsiveness of a user interface
CN102195970B (en) Based on the debugging of client session
US10482001B2 (en) Automated dynamic test case generation
CN111897724B (en) Automatic testing method and device suitable for cloud platform
US20160294662A1 (en) Dynamic tracing framework for debugging in virtualized environments
CN109617759A (en) Block catenary system stability test method, apparatus, equipment and storage medium
CN107294808A (en) The methods, devices and systems of interface testing
US10824549B1 (en) System and method for regression testing of an application programming interface
CN111858296B (en) Interface testing method, device, equipment and storage medium
CN108536484A (en) Parameter amending method, device, terminal device and storage medium
CN109815119A (en) A kind of test method and device of APP link channel
US7860700B2 (en) Hardware verification batch computing farm simulator
CN110442502A (en) A kind of method, apparatus buried a little, equipment and storage medium
CN107733710A (en) Construction method, device, computer equipment and the storage medium of link call relation
CN109995787A (en) A kind of data processing method and relevant device
CN110750453B (en) HTML 5-based intelligent mobile terminal testing method, system, server and storage medium
CN104765792A (en) Dimension data storing method, device and system
CN105912439A (en) Method, device and system for computer monitoring
CN110070444A (en) A kind of block chain transaction flow management method and relevant apparatus
CN109359034A (en) A kind of operation system test method, computer readable storage medium and terminal device
CN110033242A (en) Working time determination method, device, equipment and medium
CN108280024A (en) Traffic distribution strategy test method, device and electronic equipment
CN110650063A (en) Centralized bank third-party software simulation system and method
CN109634792A (en) A kind of server hardware test platform system based on cloud computing

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
AD01 Patent right deemed abandoned

Effective date of abandoning: 20240507

AD01 Patent right deemed abandoned