Summary of the invention
For the defects in the prior art, the present invention provides rodent attack analysis method and device, can
The attack information of programming count rodent, easy to operate, accurate timing improves analysis efficiency and accuracy.
In a first aspect, rodent attack analysis method provided by the invention, comprising:
Receive the number of the rodent analysis object of order and input;
When receiving initiation command, starting monitoring keys state;
Pass through the number and its status information of key described in monitoring key-press status corresponding record;
When receiving terminates order, stop monitoring;
The statistical information that the rodent analyzes object is calculated by the status information of the key of record, wherein
The statistical information includes the number and its corresponding behavioural information of rodent analysis object;
It is obtained according to the Hybrid Attack behavior that the behavioural information and preset formula calculate the rodent analysis object
Point.
Optionally, described when receiving terminates order, before stopping the step of monitoring further include:
When timing time reaches dwell time in limited time, sending terminates order;
Execution is described when receiving terminates order, stops the step of monitoring.
Optionally, it is described by the number of key described in monitoring key-press status corresponding record and the step of its status information it
Afterwards further include:
Rodent described in real-time display analyzes some or all of object statistical information.
Optionally, the attack analysis method further include:
After receiving and emptying order, the statistical information of record is emptied.
Optionally, after the step of stopping monitors further include:
After receiving export (swf) command, the statistical information of record is exported.
Second aspect, rodent attack analytical equipment provided by the invention, comprising:
Receiving module, the number of the rodent analysis object for receiving order and input;
Processing module, for when receiving initiation command, starting monitoring keys state;
Logging modle, for when monitoring that key is pressed, recording the time started and monitoring the key quilt
When release, the number of key described in record end time and corresponding record and the duration being pressed are corresponding by the key
Attack number add one;
The processing module is also used to stop monitoring when receiving terminates order;
Computing module, for calculating the statistical information of the rodent analysis object, wherein the statistical information packet
Include the number and its corresponding behavioural information and according to the behavioural information and preset formula meter of rodent analysis object
Calculate the Hybrid Attack behavior score of the rodent analysis object.
Optionally, the rodent attack analytical equipment further include:
Sending module, for when timing time reaches dwell time in limited time, sending to terminate order.
Optionally, the rodent attack analytical equipment further include:
Display module, for some or all of the analysis object of rodent described in real-time display statistical information.
Optionally, the rodent attack analytical equipment further include:
Export module, for after receiving export (swf) command, the statistical information of record to be exported.
Optionally, the rodent attack analytical equipment further include:
Module is emptied, for emptying the statistical information of record after receiving and emptying order.
As shown from the above technical solution, rodent attack analysis method provided by the invention and device receive
The number of the rodent of order and input analysis object;When monitoring that key is pressed, the time started is recorded;It is monitoring
When being released to the key, the record end time;The number of key described in corresponding record and the duration being pressed, and will
The corresponding attack number of the key adds one;When receiving terminates order, stop monitoring;Calculate the rodent
The statistical information of object is analyzed, wherein the statistical information includes the number and its corresponding behavior of rodent analysis object
Information;The Hybrid Attack behavior score of the rodent analysis object is calculated according to the statistical information and preset formula.
Rodent attack analysis method provided by the invention and device are capable of the attack of programming count rodent
Information, easy to operate, accurate timing improves analysis efficiency and accuracy.
Specific embodiment
It is described in detail below in conjunction with embodiment of the attached drawing to technical solution of the present invention.Following embodiment is only used for
Clearly illustrate technical solution of the present invention, therefore be intended only as example, and cannot be used as a limitation and limit protection of the invention
Range.
It should be noted that unless otherwise indicated, technical term or scientific term used in this application should be this hair
The ordinary meaning that bright one of ordinary skill in the art are understood.
Fig. 1 shows a kind of flow chart of rodent attack analysis method provided by the embodiment of the present invention.
As shown in figure, rodent attack analysis method according to an embodiment of the present invention includes:
Step S10 receives the number of the rodent analysis object of order and input;
It can be understood that the rodent includes rat and mouse, in the present embodiment, the rodent
For rat, the order includes beginning, end, configuration information editor and deletion, wherein the configuration information includes that key is corresponding
Attack, when receiving configuration information edit commands, user can edit the corresponding attack of key.With
Start button is clicked at family, then sends initiation command, when receiving initiation command, pop-up rodent object number input
Frame receives the rodent object number and saves after user's confirmation.
It is understood that after the statistics of upper rodent object, it can be to upper rodent object
Number carry out forming new rodent object number from increasing, as the number of rodent object to be analyzed, this
When do not need user and input, it is more convenient.
Step S20, when receiving initiation command, starting monitoring keys state;
After receiving initiation command, starting monitoring keys count rodent pair by the change of key-press status
As the information of attack, such as the corresponding rodent of key 1 baits attack, the corresponding rodent of key two
Pressure attack is climbed, when monitoring that key 1 is pressed, records its time being pressed in real time, it is real when key 1 is released
Its time for being released of Shi Jilu, what the time for being pressed and being released according to key 1 calculated rodent baits attack row
For certain duration.
Step S30 passes through the number and its status information of key described in monitoring key-press status corresponding record;
Rodent object number (such as it is 3 that user, which inputs the number of rodent object) is inputted simultaneously really in user
Start to carry out timing after recognizing, play the video of recording, observes that No. 3 experiment mouses in video i.e. No. 3 rodents are dynamic in user
When object object carries out baiting attack, 1 is pressed the button immediately, is real-time monitored key 1 at this time and is pressed, records the time point
Time, the number for baiting attack of No. 3 rodent objects is added 1, and labeled as No. 3 rodent objects into
At the beginning of row is baited for the first time;When user observes that No. 3 experiment mouses bait attack stopping, key is unclamped immediately
1, key 1 is real-time monitored at this time and is released, and records the time at the time point, and carry out labeled as No. 3 rodent objects
The end time baited for the first time calculates No. 3 mouse according to the starting and end time and baits attack for the first time
Duration, it is to be understood that when user observes that a certain experiment mouse has carried out attack, pass through aforesaid operations
The number of all attacks of the mouse, the duration of each attack and the incubation period of mouse can be counted
(i.e. since experiment to first time occur attack after duration).
Step S40 stops monitoring when receiving terminates order;
At the end of experiment, user can terminate to test by clicking conclusion button, when conclusion button is pressed, send knot
Beam order, after receiving end order, stopping is monitored key.
Step S50 calculates the statistics letter that the rodent analyzes object by the status information of the key recorded
Breath, wherein the statistical information includes the number and its corresponding behavioural information of rodent analysis object;
Wherein the corresponding behavioural information includes each attacking of carrying out in this record of the rodent object
Hit behavior number and each attack at the beginning of, end time and duration.
Step S60 is attacked according to the mixing that the behavioural information and preset formula calculate the rodent analysis object
Hit behavior score.
Wherein the corresponding behavioural information includes each attacking of carrying out in this record of the rodent object
Hit behavior number and each attack at the beginning of, end time and duration.
All attack information of this experiment statistics are counted, and according to the attack information and preset formula
It calculates and mixes attack score.
Before the step S40 further include:
Step S70, when timing time reaches dwell time in limited time, sending terminates order;
In the present embodiment, the settable dwell time in limited time of user proceeds to when stopping in limited time of user setting in experiment
Between when, sending terminates order, stops monitoring, and statistics calculates the attack information and mixing of rodent object recorded
Attack score.
Execute the step S40.
After the step 30 further include:
Step S80, some or all of analysis object of rodent described in real-time display statistical information.
In the present embodiment, in the number of the rodent object of display screen real-time display current statistic in statistic processes
And its part or all of behavioural information, wherein the behavioural information includes that the rodent object carries out in this record
Each attack number and each attack at the beginning of, end time and duration.If currently
Attack occurs, then the real-time display attack and its order, time started and duration.
The rodent attack analysis method further include:
Step S90 empties the statistical information of record after receiving and emptying order.
In the present embodiment, user leads to misregistration in use, maloperation may occur, can by click empty by
Button transmission empty order, receive empty order when, the statistical information recorded is emptied.
After the step S40 further include:
Step S100 exports the statistical information of record after receiving export (swf) command.
In the present embodiment, when receiving export (swf) command, the statistical information recorded is exported, wherein export position can
Using the export address of default setting, new export address also can be set by the user himself, wherein the export address can be this
The storage equipment on ground can also be cloud server or mobile terminal such as mobile phone and tablet computer etc..
It is understood that the record of the statistics available multiple videos of the present invention, disposably exports after receiving export (swf) command
Or export section records according to the user's choice.
The rodent attack analysis method that the present embodiment proposes, by described in monitoring key-press status corresponding record
The number of key and its status information;The rodent, which is calculated, by the status information of the key of record analyzes object
Statistical information, wherein the statistical information include rodent analysis object number and its corresponding behavioural information;Root
The Hybrid Attack behavior score of the rodent analysis object is calculated according to the statistical information and preset formula.It can be automatic
The attack information of rodent is counted, easy to operate, accurate timing improves analysis efficiency and accuracy.
The present invention also provides a kind of rodent attack analytical equipments.
Fig. 6 shows a kind of functional module of rodent attack analytical equipment provided by the embodiment of the present invention
Figure.As shown in fig. 6, rodent attack analytical equipment according to an embodiment of the present invention includes:
Receiving module 10, the number of the rodent analysis object for receiving order and input;
It can be understood that the rodent includes rat and mouse, in the present embodiment, the rodent
For rat, the order includes starting, and is terminated, configuration information editor and deletion, wherein the configuration information includes that key is corresponding
Attack, when receiving configuration information edit commands, user can edit the corresponding attack of key.With
Start button is clicked at family, then sends initiation command, when receiving initiation command, pop-up rodent object number input
Frame receives the rodent object number and saves after user's confirmation.
It is understood that after the statistics of upper rodent object, it can be to upper rodent object
Number carry out forming new rodent object number from increasing, as the number of rodent object to be analyzed, this
When do not need user and input, it is more convenient.
Processing module 20, for when receiving initiation command, starting monitoring keys state;
After receiving initiation command, starting monitoring keys count rodent pair by the change of key-press status
As the information of attack, such as the corresponding rodent of key 1 baits attack, the corresponding rodent of key two
Pressure attack is climbed, when monitoring that key 1 is pressed, records its time being pressed in real time, it is real when key 1 is released
Its time for being released of Shi Jilu, what the time for being pressed and being released according to key 1 calculated rodent baits attack row
For certain duration.
Logging modle 30, for the number and its status information by key described in monitoring key-press status corresponding record;
Rodent object number (such as it is 3 that user, which inputs the number of rodent object) is inputted simultaneously really in user
Start to carry out timing after recognizing, play the video of recording, observes that No. 3 experiment mouses in video i.e. No. 3 rodents are dynamic in user
When object object carries out baiting attack, 1 is pressed the button immediately, is real-time monitored key 1 at this time and is pressed, records the time point
Time, the number for baiting attack of No. 3 rodent objects is added 1, and labeled as No. 3 rodent objects into
At the beginning of row is baited for the first time;When user observes that No. 3 experiment mouses bait attack stopping, key is unclamped immediately
1, key 1 is real-time monitored at this time and is released, and records the time at the time point, and carry out labeled as No. 3 rodent objects
The end time baited for the first time calculates No. 3 mouse according to the starting and end time and baits attack for the first time
Duration, it is to be understood that when user observes that a certain experiment mouse has carried out attack, pass through aforesaid operations
The number of all attacks of the mouse, the duration of each attack and the incubation period of mouse can be counted
(i.e. since experiment to first time occur attack after duration).
The processing module 20 is also used to stop monitoring when receiving terminates order;
At the end of experiment, user can terminate to test by clicking conclusion button, when conclusion button is pressed, send knot
Beam order, after receiving end order, stopping is monitored key.
Computing module 40, for calculating the statistical information of the rodent analysis object, wherein the statistical information
Number and its corresponding behavioural information and according to the behavioural information and preset formula including rodent analysis object
Calculate the Hybrid Attack behavior score of the rodent analysis object.
Wherein the corresponding behavioural information includes each attacking of carrying out in this record of the rodent object
Hit behavior number and each attack at the beginning of, end time and duration.
All attack information of this experiment statistics are counted, and according to the attack information and preset formula
It calculates and mixes attack score.
The rodent attack analytical equipment further include:
Sending module 50, for when timing time reaches dwell time in limited time, sending to terminate order;
In the present embodiment, the settable dwell time in limited time of user proceeds to when stopping in limited time of user setting in experiment
Between when, sending terminates order, stops monitoring, and statistics calculates the attack information and mixing of rodent object recorded
Attack score.
The rodent attack analytical equipment further include:
Display module 60, for some or all of the analysis object of rodent described in real-time display statistical information.
In the present embodiment, in the number of the rodent object of display screen real-time display current statistic in statistic processes
And its part or all of attack information, wherein the behavioural information includes the rodent object in this record
At the beginning of the number of each attack carried out and each attack, end time and duration.If current
Attack is occurring, then the order of the real-time display attack, time started and duration.
The rodent attack analytical equipment further include:
Export module 70 exports the statistical information of record after receiving export (swf) command.
In the present embodiment, when receiving export (swf) command, the statistical information recorded is exported, wherein export position can
Using the export address of default setting, new export address also can be set by the user himself, wherein the export address can be this
The storage equipment on ground can also be cloud server or mobile terminal such as mobile phone, tablet computer.
It is understood that the record of the statistics available multiple videos of the present invention, disposably exports after receiving export (swf) command
Or export section records according to the user's choice.
The rodent attack analytical equipment further include:
Module 80 is emptied, after receiving and emptying order, empties the statistical information of record.
In the present embodiment, user leads to misregistration in use, maloperation may occur, can by click empty by
Button transmission empty order, receive empty order when, the statistical information recorded is emptied.
The rodent attack analytical equipment that the present embodiment proposes, by described in monitoring key-press status corresponding record
The number of key and its status information;The rodent, which is calculated, by the status information of the key of record analyzes object
Statistical information, wherein the statistical information include rodent analysis object number and its corresponding behavioural information;Root
The Hybrid Attack behavior score of the rodent analysis object is calculated according to the statistical information and preset formula.It can be automatic
The attack information of rodent is counted, easy to operate, accurate timing improves analysis efficiency and accuracy.
Unless specifically stated otherwise, the opposite step of the component and step that otherwise illustrate in these embodiments, digital table
It is not limit the scope of the invention up to formula and numerical value.
The technical effect and preceding method embodiment phase of device provided by the embodiment of the present invention, realization principle and generation
Together, to briefly describe, Installation practice part does not refer to place, can refer to corresponding contents in preceding method embodiment.
In all examples being illustrated and described herein, unless otherwise prescribed, any occurrence should be construed as merely
Illustratively, not as limitation, therefore, other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, section or code of table, a part of the module, section or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually base
Originally it is performed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that
It is the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, can uses and execute rule
The dedicated hardware based system of fixed function or movement is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
The computer program product of rodent attack analysis method, packet are carried out provided by the embodiment of the present invention
The computer readable storage medium for storing program code is included, the instruction that said program code includes can be used for executing previous methods
Method as described in the examples, specific implementation can be found in embodiment of the method, and details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can
To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for
The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme should all cover within the scope of the claims and the description of the invention.