CN105100201A - Data packet capturing method and data packet capturing device - Google Patents

Data packet capturing method and data packet capturing device Download PDF

Info

Publication number
CN105100201A
CN105100201A CN201510321431.2A CN201510321431A CN105100201A CN 105100201 A CN105100201 A CN 105100201A CN 201510321431 A CN201510321431 A CN 201510321431A CN 105100201 A CN105100201 A CN 105100201A
Authority
CN
China
Prior art keywords
character string
designated character
information
crawl
remote terminal
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
CN201510321431.2A
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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510321431.2A priority Critical patent/CN105100201A/en
Publication of CN105100201A publication Critical patent/CN105100201A/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/01Protocols
    • H04L67/08Protocols specially adapted for terminal emulation, e.g. Telnet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a data packet capturing method and a data packet capturing device, belonging to the technical field of networks. The data packet capturing method comprises the following steps: receiving capturing command information sent by a remote terminal, which is a mobile terminal passing authentication at a local side; judging whether the capturing command information comprises a first appointed character string or not; and capturing a network transmission data packet when the capturing command information comprises the first appointed character string. According to the embodiment of the invention, a data packet capturing program is pre-set in the local side, so that a computer is unnecessary to use when the data packet is captured; furthermore, some operations of users are also unnecessary; threshold requirements of users are reduced; the data packet capturing method is simple and convenient to operate; and in addition, the data packet capturing efficiency is increased.

Description

Packet grasping means and device
Technical field
The disclosure relates to networking technology area, particularly relates to a kind of packet grasping means and device.
Background technology
Along with the fast development of technology, user not only can pass through mobile terminal browsing page, can also by carrying out network service between mobile terminal and other users, and therefore, mobile terminal inevitably transmits packet by network.And in transmission of data packets, occur that such as webpage cannot be opened possibly, information sends the network problem such as unsuccessfully, in order to solve these network problems, need to capture the packet of Internet Transmission.
In correlation technique, the operation capturing packet can be: mobile terminal is connected by data wire with computer by user, and downloading data bag capture program on computers, such as tcpdump, by this packet capture program by ADB (AndroidDebugBridge, Android debugging bridge) application program is pushed on this mobile terminal, makes this mobile terminal install this packet capture program.Afterwards, user can send packet by computer to this mobile terminal and capture order.When this mobile terminal receives this packet crawl order, the packet of Internet Transmission is captured.Then, the packet of crawl from mobile terminal, can copy on computer by user.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of packet grasping means and device.
According to the first aspect of disclosure embodiment, provide a kind of packet grasping means, described method comprises:
Receive the crawl command information that remote terminal sends, described remote terminal is the mobile terminal that local terminal carries out authentication and passes through;
Judge whether comprise the first designated character string in described crawl command information;
When described crawl command information comprises described first designated character string, the packet of Internet Transmission is captured.
In conjunction with first aspect, in the first possible implementation of above-mentioned first aspect, describedly judge whether comprise the first designated character string in described crawl command information, comprising:
Based on the first specified format, described crawl command information is resolved, obtains the first resolving information;
Judge in described first resolving information, whether to comprise described first designated character string;
If described first resolving information comprises described first designated character string, then determine that described crawl command information comprises described first designated character string, otherwise, determine in described crawl command information, not comprise described first designated character string.
In conjunction with first aspect, in the implementation that the second of above-mentioned first aspect is possible, before the crawl command information that described reception remote terminal sends, also comprise:
Receive the authorization information that described remote terminal sends;
Judge in described authorization information, whether to comprise the second designated character string;
When described authorization information comprises described second designated character string, determine that the authentication of described remote terminal is passed through;
Send to described remote terminal and be verified information.
In conjunction with the implementation that the second of first aspect is possible, in the third possible implementation of above-mentioned first aspect, describedly judge whether comprise the second designated character string in described authorization information, comprising:
Based on the second specified format, described authorization information is resolved, obtain the second resolving information;
Judge in described second resolving information, whether to comprise described second designated character string;
If described second resolving information comprises described second designated character string, then determine that described authorization information comprises described second designated character string, otherwise, determine in described authorization information, not comprise described second designated character string.
In conjunction with first aspect, in the 4th kind of possible implementation of above-mentioned first aspect, after the described packet to Internet Transmission captures, also comprise:
Display description information input interface;
Detect the descriptor inputted in described descriptor inputting interface;
When receiving Packet Generation instruction, the packet of crawl and described descriptor are sent to described remote terminal.
In conjunction with first aspect to the arbitrary possible implementation in the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation of above-mentioned first aspect, communicated by the mode of note, instant communication information between described remote terminal with described local terminal.
According to the second aspect of disclosure embodiment, provide a kind of packet grabbing device, described device comprises:
First receiver module, for receiving the crawl command information that remote terminal sends, described remote terminal is the mobile terminal that local terminal carries out authentication and passes through;
First judge module, for judging whether comprise the first designated character string in described crawl command information;
Handling module, for when described crawl command information comprises described first designated character string, captures the packet of Internet Transmission.
In conjunction with second aspect, in the first possible implementation of above-mentioned second aspect, described first judge module comprises:
First resolution unit, for based on the first specified format, resolves described crawl command information, obtains the first resolving information;
Whether the first judging unit, comprise described first designated character string for judging in described first resolving information;
First determining unit, for when described first resolving information comprises described first designated character string, determine that described crawl command information comprises described first designated character string, otherwise, determine in described crawl command information, not comprise described first designated character string.
In conjunction with second aspect, in the implementation that the second of above-mentioned second aspect is possible, described device also comprises:
Second receiver module, for receiving the authorization information that described remote terminal sends;
Whether the second judge module, comprise the second designated character string for judging in described authorization information;
Determination module, for when described authorization information comprises described second designated character string, determines that the authentication of described remote terminal is passed through;
First sending module, is verified information for sending to described remote terminal.
In conjunction with the implementation that the second of second aspect is possible, in the third possible implementation of above-mentioned second aspect, described second judge module comprises:
Second resolution unit, for based on the second specified format, resolves described authorization information, obtains the second resolving information;
Whether the second judging unit, comprise described second designated character string for judging in described second resolving information;
Second determining unit, for when described second resolving information comprises described second designated character string, determines that described authorization information comprises described second designated character string, otherwise, determine in described authorization information, not comprise described second designated character string.
In conjunction with second aspect, in the 4th kind of possible implementation of above-mentioned second aspect, described device also comprises:
Display module, for display description information input interface;
Detection module, for detecting the descriptor inputted in described descriptor inputting interface;
Second sending module, for when receiving Packet Generation instruction, sends to described remote terminal by the packet of crawl and described descriptor.
In conjunction with second aspect to the arbitrary possible implementation in the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation of above-mentioned second aspect, communicated by the mode of note, instant communication information between described remote terminal with described local terminal.
According to the second aspect of disclosure embodiment, provide a kind of packet grabbing device, described device comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the crawl command information that remote terminal sends, described remote terminal is the mobile terminal that local terminal carries out authentication and passes through;
Judge whether comprise the first designated character string in described crawl command information;
When described crawl command information comprises described first designated character string, the packet of Internet Transmission is captured.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect: in the disclosed embodiments, is preset in local terminal by packet capture program, and when needs local terminal captures packet, remote terminal can send to local terminal and capture command information.When local terminal receives this crawl command information, if when judging that this crawl command information comprises the first designated character string, directly call the preset packet of packet capture program to Internet Transmission to capture, so, without the need to depending on computer, and user is also without the need to carrying out certain operations, reduces the threshold requirement to user, simple, convenient, and improve the efficiency capturing packet.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows embodiment according to the invention, and is used from specification one and explains principle of the present invention.
Fig. 1 is the flow chart of a kind of packet grasping means according to an exemplary embodiment.
Fig. 2 is the flow chart of a kind of packet grasping means according to an exemplary embodiment.
Fig. 3 is a kind of interface schematic diagram obtaining crawl command information according to an exemplary embodiment.
Fig. 4 is the block diagram of a kind of packet grabbing device according to an exemplary embodiment.
Fig. 5 is the block diagram of the another kind of packet grabbing device according to an exemplary embodiment.
Fig. 6 is the block diagram of a kind of packet grabbing device according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Before in detail explanation is explained to disclosure embodiment, first the application scenarios of disclosure embodiment is introduced.When user is by mobile terminal browsing page, or when carrying out network service with other users, cannot open if there is webpage, when information sends and unsuccessfully waits network problem, in order to solve these network problems, this user can by the technical staff that seeks help, these network problems are solved by technical staff, now, the terminal that this technical staff needs this user corresponding captures the packet of Internet Transmission, thus analyze based on the packet captured, thus determine the solution solving these network problems, therefore, the method that can provide based on disclosure embodiment captures packet.Or, when technical staff needs the application data of adding up some application, can by this application of running of mobile terminal, thus make this mobile terminal can carry out transfer of data by network, and in the process of this transfer of data, the method provided based on disclosure embodiment captures packet.
Fig. 1 is the flow chart of a kind of packet grasping means according to an exemplary embodiment, and as shown in Figure 1, this packet grasping means is used for, in terminal, comprising the following steps.
In a step 101, receive the crawl command information that remote terminal sends, remote terminal is the mobile terminal that local terminal carries out authentication and passes through.
In a step 102, judge whether comprise the first designated character string in this crawl command information.
In step 103, when this crawl command information comprises the first designated character string, the packet of Internet Transmission is captured.
In the disclosed embodiments, be preset in local terminal by packet capture program, when needs local terminal captures packet, remote terminal can send to local terminal and capture command information.When local terminal receives this crawl command information, if when judging that this crawl command information comprises the first designated character string, directly call the preset packet of packet capture program to Internet Transmission to capture, so, without the need to depending on computer, and user is also without the need to carrying out certain operations, reduces the threshold requirement to user, simple, convenient, and improve the efficiency capturing packet.
In another embodiment of the present disclosure, judge whether comprise the first designated character string in this crawl command information, comprising:
Based on the first specified format, this crawl command information is resolved, obtains the first resolving information;
Judge in the first resolving information, whether to comprise the first designated character string;
If the first resolving information comprises the first designated character string, then determine that this crawl command information comprises the first designated character string, otherwise, determine not comprise the first designated character string in this crawl command information.
In another embodiment of the present disclosure, before receiving the crawl command information of remote terminal transmission, also comprise:
Receive the authorization information that remote terminal sends;
Judge in this authorization information, whether to comprise the second designated character string;
When this authorization information comprises the second designated character string, determine that the authentication of remote terminal is passed through;
Send to remote terminal and be verified information.
In another embodiment of the present disclosure, judge whether comprise the second designated character string in this authorization information, comprising:
Based on the second specified format, this authorization information is resolved, obtain the second resolving information;
Judge in the second resolving information, whether to comprise the second designated character string;
If the second resolving information comprises the second designated character string, then determine that this authorization information comprises the second designated character string, otherwise, determine in this authorization information, not comprise the second designated character string.
In another embodiment of the present disclosure, after the packet of Internet Transmission is captured, also comprise:
Display description information input interface;
Detect the descriptor inputted in this descriptor inputting interface;
When receiving Packet Generation instruction, the packet of crawl and this descriptor are sent to remote terminal.
In another embodiment of the present disclosure, communicated by the mode of note, instant communication information between remote terminal with local terminal.
Above-mentioned all alternatives, all can form embodiment of the present disclosure according to combining arbitrarily, disclosure embodiment repeats no longer one by one to this.
Fig. 2 is the flow chart of a kind of packet grasping means according to an exemplary embodiment.The method is applied in mobile terminal, and this mobile terminal can be the terminal such as mobile phone, panel computer, and see Fig. 2, the method comprises the following steps.
In step 201, the authorization information that remote terminal sends is received.
In order to control by remote terminal the crawl that local terminal carries out packet; and the fail safe of the packet of raising Internet Transmission; the privacy of protection user; when remote terminal controls local terminal crawl packet; this remote terminal all needs to generate authorization information; and this authorization information is sent to local terminal, this authorization information is used for verifying the identity of remote terminal.That is to say, when remote terminal controls local terminal crawl packet at every turn, local terminal all needs to verify the identity of remote terminal.
In the disclosed embodiments, the operation that remote terminal can generate authorization information can be: remote terminal, based on the second designated character string, by the second specified format, generates authorization information.Such as, the second designated character string is the * 4850, the second specified format is " the second designated character string #tcpdump ", and therefore, remote terminal is based on the second designated character string, and by the second specified format, the authorization information of generation is " * 4850#tcpdump ".Disclosure embodiment is not specifically limited this.
In addition, in the disclosed embodiments, can be communicated by the mode of note, instant communication information between remote terminal with local terminal.When being communicated by the mode of note between remote terminal with local terminal, this authorization information by the mode of note, can be sent to local terminal by this remote terminal.And when being communicated by the mode of instant communication information between remote terminal with local terminal, this remote terminal can call specifies instant messaging application, and by this appointment instant messaging application, this authorization information is sent to local terminal.
Wherein, when being communicated by the mode of note, without the need to carrying out extra development and operation, reduce cost, and the relative note of instant communication information, need to carry out extra exploitation to appointment instant messaging application, cost is higher, but, when being communicated by the mode of instant communication information, owing to specifying the function ratio of instant messaging application more, improve the flexibility of communication.
It should be noted that, remote terminal can be mobile terminal, and this mobile terminal can be mobile phone, panel computer etc., and disclosure embodiment is not specifically limited this.
In step 202., judge in this authorization information, whether to comprise the second designated character string, if so, then determine that remote terminal is verified, and be verified information to remote terminal transmission.
In order to the identity of authenticating remote terminal, when local terminal receives the authorization information of remote terminal transmission, local terminal based on the second specified format, can be resolved this authorization information, obtains the second resolving information; Judge in the second resolving information, whether to comprise the second designated character string; If the second resolving information comprises the second designated character string, then determine that this authorization information comprises the second designated character string, determine that the authentication of remote terminal is passed through, and be verified information to remote terminal transmission.
Further, if do not comprise the second designated character string in the second resolving information, then determine in this authorization information, not comprise the second designated character string, determine that the authentication of remote terminal is not passed through, end operation.
Such as, local terminal is based on the second specified format, authorization information " * 4850#tcpdump " is resolved, obtaining the second resolving information is * 4850 and tcpdump, determine that the second resolving information comprises the second designated character string * 4850, and determine that the authentication of remote terminal is passed through, send to remote terminal and be verified information, such as, the information that is verified is for " identity is verified ".
It should be noted that, above-mentioned steps 201 is mentioned between remote terminal with local terminal and can be communicated by the mode of note, instant communication information, when remote terminal is by the mode of note, when authorization information being sent to local terminal, when local terminal receives this authorization information, can judge in this authorization information, whether to comprise the second designated character string, if, then determine that remote terminal is verified, and be verified information to remote terminal transmission.And when remote terminal is by the mode of instant communication information, when authorization information being sent to local terminal, when local terminal receives this authorization information, the appointment instant messaging application can installed by local terminal, judge in this authorization information, whether to comprise the second designated character string, if so, then determine that remote terminal is verified, and be verified information by this appointment instant messaging application to remote terminal transmission.
Wherein, when local terminal to remote terminal send be verified information after, if remote terminal reception is verified information to this, then can to local terminal send crawl command information, carry out the crawl of packet with Long-distance Control local terminal.
In step 203, the crawl command information that remote terminal sends is received.
When remote terminal reception to local terminal send be verified information time, remote terminal can based on the first designated character string, by the first specified format, generate and capture command information, and this crawl command information is sent to local terminal in the mode of note or instant communication information.Such as, the first specified format is " the first designated character string ##1135 ", and the first designated character string is * #223#, and therefore, the crawl command information of generation can be " * #223###1135 ".
In addition, when local terminal carries out Internet Transmission, the packet of Internet Transmission is all transmitted by the port of local terminal, therefore, in the disclosed embodiments, capture in command information and can also comprise the port-mark carrying out packet crawl, this port-mark also based on the first specified format, can be encapsulated in and capture in command information, now, first specified format can be " the first designated character string # port-mark #1135 ", and disclosure embodiment is not specifically limited this.
Wherein, this port-mark can be port numbers, port title etc., and disclosure embodiment is not specifically limited this.
It should be noted that, the first specified format can be identical with the second specified format, and disclosure embodiment is not specifically limited this.
In the disclosed embodiments, local terminal not only can obtain crawl command information by the step of above-mentioned 201-203, can also obtain crawl command information in other way.Such as, when local terminal receives dialing interface idsplay order, display dialing interface, and detect the character string of dialing interface input, and counting user stops the stopping duration of input of character string in dialing interface, if this stopping duration being more than or equal to appointment duration, then the character string inputted in dialing interface is defined as capturing command information.As shown in Figure 3, the crawl command information inputted in the dialing interface shown in Fig. 3 can be * #223###1135.
Wherein, specify duration can be arrange in advance, such as, specify duration can be 5 seconds, disclosure embodiment be not specifically limited this.
In step 204, judge whether comprise the first designated character string in this crawl command information, if so, then the packet of local terminal to Internet Transmission captures.
In order to judge whether to capture the packet of Internet Transmission based on this crawl command information, when local terminal receives crawl command information, local terminal based on the first specified format, can be resolved this crawl command information, obtains the first resolving information; Judge in the first resolving information, whether to comprise the first designated character string; If the first resolving information comprises the first designated character string, then determine that this crawl command information comprises the first designated character string, the packet of local terminal to Internet Transmission captures.
Further, if do not comprise the first designated character string in the first resolving information, then determine not comprise the first designated character string, end operation in this crawl command information.
Such as, local terminal is based on the first specified format " the first designated character string ##1135 ", this crawl command information " * #223###1135 " is resolved, obtaining the first resolving information is * #223# and 1135, determine that the first resolving information comprises the first designated character string * #223#, and then determine that this crawl command information comprises the first designated character string, afterwards, the packet of local terminal to Internet Transmission captures.
When the packet of local terminal to Internet Transmission captures, local terminal can the preset packet capture program of pull-up, and is captured by the packet of this packet capture program to Internet Transmission.And when capturing the packet of Internet Transmission, if this crawl command information comprises port-mark, then local terminal can capture the packet of this port-mark corresponding ports transmission.And in order to improve the speed capturing packet, capturing in command information and also can not comprise port-mark, when not comprising port-mark in crawl command information, local terminal can capture the packet of all of the port transmission.
Mention in above-mentioned steps 201 between remote terminal with local terminal and can be communicated by the mode of note, instant communication information.When being communicated by instant communication information between remote terminal with local terminal, when the appointment instant messaging application that local terminal is installed receives crawl command information, this appointment instant messaging application can judge whether comprise the first designated character string in this crawl command information, if this crawl command information comprises the first designated character string, then this appointment instant messaging application can pull-up packet capture program, and is captured by the packet of this packet capture program to Internet Transmission.
It should be noted that, under packet capture program preset in local terminal can be preset at designated store path, when local terminal or when specifying instant messaging application this packet capture program of pull-up, can based on this designated store path, search this packet capture program, and this packet capture program of pull-up.
In addition, this packet capture program can capture packet based on following code, and the concrete operations capturing packet can with reference to correlation technique, and disclosure embodiment does not describe in detail this.
Further, in order to determine the solution of network problem in local terminal, after the packet of local terminal to Internet Transmission captures, can display description information input interface, make user in this descriptor inputting interface, input the descriptor of this network problem; Afterwards, local terminal detects the descriptor inputted in this descriptor inputting interface, and this descriptor is the descriptor of this network problem; When local terminal receives Packet Generation instruction, the packet of crawl and this descriptor are sent to remote terminal.
Wherein, Packet Generation instruction can be triggered by user, this user can be triggered by assigned operation, and this assigned operation can be the slide of descriptor inputting interface, the clicking operation, voice operating etc. of transmission button, and disclosure embodiment is not specifically limited this.
In the disclosed embodiments, be preset in local terminal by packet capture program, when needs local terminal captures packet, remote terminal can send to local terminal and capture command information.When local terminal receives this crawl command information, if when judging that this crawl command information comprises the first designated character string, directly call the preset packet of packet capture program to Internet Transmission to capture, so, without the need to depending on computer, and user is also without the need to carrying out certain operations, reduces the threshold requirement to user, simple, convenient, and improve the efficiency capturing packet.
Fig. 4 is a kind of packet grabbing device block diagram according to an exemplary embodiment.With reference to Fig. 4, this device comprises the first receiver module 401, first judge module 402 and handling module 403.
First receiver module 401, for receiving the crawl command information that remote terminal sends, remote terminal is the mobile terminal that local terminal carries out authentication and passes through;
First judge module 402, for judging whether comprise the first designated character string in this crawl command information;
Handling module 403, for when this crawl command information comprises the first designated character string, captures the packet of Internet Transmission.
In another embodiment of the present disclosure, the first judge module 402 comprises:
First resolution unit, for based on the first specified format, resolves this crawl command information, obtains the first resolving information;
Whether the first judging unit, comprise the first designated character string for judging in the first resolving information;
First determining unit, for when the first resolving information comprises the first designated character string, determines that this crawl command information comprises the first designated character string, otherwise, determine not comprise the first designated character string in this crawl command information.
In another embodiment of the present disclosure, see Fig. 5, this device also comprises:
Second receiver module 404, for receiving the authorization information that remote terminal sends;
Whether the second judge module 405, comprise the second designated character string for judging in this authorization information;
Determination module 406, for when this authorization information comprises the second designated character string, determines that the authentication of remote terminal is passed through;
First sending module 407, is verified information for sending to this remote terminal.
In another embodiment of the present disclosure, the second judge module 405 comprises:
Second resolution unit, for based on the second specified format, resolves this authorization information, obtains the second resolving information;
Whether the second judging unit, comprise the second designated character string for judging in the second resolving information;
Second determining unit, for when the second resolving information comprises the second designated character string, determines that this authorization information comprises the second designated character string, otherwise, determine in this authorization information, not comprise the second designated character string.
In another embodiment of the present disclosure, this device also comprises:
Display module, for display description information input interface;
Detection module, for detecting the descriptor inputted in this descriptor inputting interface;
Second sending module, for when receiving Packet Generation instruction, sends to remote terminal by the packet of crawl and this descriptor.
In another embodiment of the present disclosure, communicated by the mode of note, instant communication information between remote terminal with local terminal.
In the disclosed embodiments, be preset in local terminal by packet capture program, when needs local terminal captures packet, remote terminal can send to local terminal and capture command information.When local terminal receives this crawl command information, if when judging that this crawl command information comprises the first designated character string, directly call the preset packet of packet capture program to Internet Transmission to capture, so, without the need to depending on computer, and user is also without the need to carrying out certain operations, reduces the threshold requirement to user, simple, convenient, and improve the efficiency capturing packet.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 6 is the block diagram of a kind of device 600 for packet crawl according to an exemplary embodiment.Such as, device 600 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 6, device 600 can comprise following one or more assembly: processing components 602, memory 604, power supply module 606, multimedia groupware 608, audio-frequency assembly 610, the interface 612 of I/O (I/O), sensor cluster 614, and communications component 616.
The integrated operation of the usual control device 600 of processing components 602, such as with display, call, data communication, camera operation and record operate the operation be associated.Treatment element 602 can comprise one or more processor 620 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 602 can comprise one or more module, and what be convenient between processing components 602 and other assemblies is mutual.Such as, processing unit 602 can comprise multi-media module, mutual with what facilitate between multimedia groupware 606 and processing components 602.
Memory 604 is configured to store various types of data to be supported in the operation of equipment 600.The example of these data comprises for any application program of operation on device 600 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 604 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 606 is device 600 provide electric power.Electric power assembly 606 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 600 and be associated.
Multimedia groupware 608 is included in the screen providing an output interface between described device 600 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 608 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 600 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 610 is configured to export and/or input audio signal.Such as, audio-frequency assembly 610 comprises a microphone (MIC), and when device 600 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 604 further or be sent via communications component 616.In certain embodiments, audio-frequency assembly 610 also comprises a loud speaker, for output audio signal.
I/O interface 612 is for providing interface between processing components 602 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 614 comprises one or more transducer, for providing the state estimation of various aspects for device 600.Such as, sensor cluster 614 can detect the opening/closing state of equipment 600, the relative positioning of assembly, such as described assembly is display and the keypad of device 600, the position of all right checkout gear 600 of sensor cluster 614 or device 600 1 assemblies changes, the presence or absence that user contacts with device 600, the variations in temperature of device 600 orientation or acceleration/deceleration and device 600.Sensor cluster 614 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 614 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 614 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 616 is configured to the communication being convenient to wired or wireless mode between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 616 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communication component 616 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 600 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 604 of instruction, above-mentioned instruction can perform said method by the processor 620 of device 600.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of packet grasping means, described method comprises:
Receive the crawl command information that remote terminal sends, remote terminal is the mobile terminal that local terminal carries out authentication and passes through;
Judge whether comprise the first designated character string in this crawl command information;
When this crawl command information comprises the first designated character string, the packet of Internet Transmission is captured.
In another embodiment of the present disclosure, judge whether comprise the first designated character string in this crawl command information, comprising:
Based on the first specified format, this crawl command information is resolved, obtains the first resolving information;
Judge in the first resolving information, whether to comprise the first designated character string;
If the first resolving information comprises the first designated character string, then determine that this crawl command information comprises the first designated character string, otherwise, determine not comprise the first designated character string in this crawl command information.
In another embodiment of the present disclosure, before receiving the crawl command information of remote terminal transmission, also comprise:
Receive the authorization information that remote terminal sends;
Judge in this authorization information, whether to comprise the second designated character string;
When this authorization information comprises the second designated character string, determine that the authentication of remote terminal is passed through;
Send to remote terminal and be verified information.
In another embodiment of the present disclosure, judge whether comprise the second designated character string in this authorization information, comprising:
Based on the second specified format, this authorization information is resolved, obtain the second resolving information;
Judge in the second resolving information, whether to comprise the second designated character string;
If the second resolving information comprises the second designated character string, then determine that this authorization information comprises the second designated character string, otherwise, determine in this authorization information, not comprise the second designated character string.
In another embodiment of the present disclosure, after the packet of Internet Transmission is captured, also comprise:
Display description information input interface;
Detect the descriptor inputted in this descriptor inputting interface;
When receiving Packet Generation instruction, the packet of crawl and this descriptor are sent to remote terminal.
In another embodiment of the present disclosure, communicated by the mode of note, instant communication information between remote terminal with local terminal.
In the disclosed embodiments, be preset in local terminal by packet capture program, when needs local terminal captures packet, remote terminal can send to local terminal and capture command information.When local terminal receives this crawl command information, if when judging that this crawl command information comprises the first designated character string, directly call the preset packet of packet capture program to Internet Transmission to capture, so, without the need to depending on computer, and user is also without the need to carrying out certain operations, reduces the threshold requirement to user, simple, convenient, and improve the efficiency capturing packet.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (13)

1. a packet grasping means, is characterized in that, described method comprises:
Receive the crawl command information that remote terminal sends, described remote terminal is the mobile terminal that local terminal carries out authentication and passes through;
Judge whether comprise the first designated character string in described crawl command information;
When described crawl command information comprises described first designated character string, the packet of Internet Transmission is captured.
2. the method for claim 1, is characterized in that, describedly judges whether comprise the first designated character string in described crawl command information, comprising:
Based on the first specified format, described crawl command information is resolved, obtains the first resolving information;
Judge in described first resolving information, whether to comprise described first designated character string;
If described first resolving information comprises described first designated character string, then determine that described crawl command information comprises described first designated character string, otherwise, determine in described crawl command information, not comprise described first designated character string.
3. the method for claim 1, is characterized in that, before the crawl command information that described reception remote terminal sends, also comprises:
Receive the authorization information that described remote terminal sends;
Judge in described authorization information, whether to comprise the second designated character string;
When described authorization information comprises described second designated character string, determine that the authentication of described remote terminal is passed through;
Send to described remote terminal and be verified information.
4. method as claimed in claim 3, is characterized in that, describedly judges whether comprise the second designated character string in described authorization information, comprising:
Based on the second specified format, described authorization information is resolved, obtain the second resolving information;
Judge in described second resolving information, whether to comprise described second designated character string;
If described second resolving information comprises described second designated character string, then determine that described authorization information comprises described second designated character string, otherwise, determine in described authorization information, not comprise described second designated character string.
5. the method for claim 1, is characterized in that, after the described packet to Internet Transmission captures, also comprises:
Display description information input interface;
Detect the descriptor inputted in described descriptor inputting interface;
When receiving Packet Generation instruction, the packet of crawl and described descriptor are sent to described remote terminal.
6. the method as described in claim as arbitrary in claim 1-5, is characterized in that, is communicated between described remote terminal with described local terminal by the mode of note, instant communication information.
7. a packet grabbing device, is characterized in that, described device comprises:
First receiver module, for receiving the crawl command information that remote terminal sends, described remote terminal is the mobile terminal that local terminal carries out authentication and passes through;
First judge module, for judging whether comprise the first designated character string in described crawl command information;
Handling module, for when described crawl command information comprises described first designated character string, captures the packet of Internet Transmission.
8. device as claimed in claim 7, it is characterized in that, described first judge module comprises:
First resolution unit, for based on the first specified format, resolves described crawl command information, obtains the first resolving information;
Whether the first judging unit, comprise described first designated character string for judging in described first resolving information;
First determining unit, for when described first resolving information comprises described first designated character string, determine that described crawl command information comprises described first designated character string, otherwise, determine in described crawl command information, not comprise described first designated character string.
9. device as claimed in claim 7, it is characterized in that, described device also comprises:
Second receiver module, for receiving the authorization information that described remote terminal sends;
Whether the second judge module, comprise the second designated character string for judging in described authorization information;
Determination module, for when described authorization information comprises described second designated character string, determines that the authentication of described remote terminal is passed through;
First sending module, is verified information for sending to described remote terminal.
10. device as claimed in claim 9, it is characterized in that, described second judge module comprises:
Second resolution unit, for based on the second specified format, resolves described authorization information, obtains the second resolving information;
Whether the second judging unit, comprise described second designated character string for judging in described second resolving information;
Second determining unit, for when described second resolving information comprises described second designated character string, determines that described authorization information comprises described second designated character string, otherwise, determine in described authorization information, not comprise described second designated character string.
11. devices as claimed in claim 7, it is characterized in that, described device also comprises:
Display module, for display description information input interface;
Detection module, for detecting the descriptor inputted in described descriptor inputting interface;
Second sending module, for when receiving Packet Generation instruction, sends to described remote terminal by the packet of crawl and described descriptor.
Device as described in 12. claims as arbitrary in claim 7-11, be is characterized in that, communicated between described remote terminal with described local terminal by the mode of note, instant communication information.
13. 1 kinds of packet grabbing devices, is characterized in that, described device comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the crawl command information that remote terminal sends, described remote terminal is the mobile terminal that local terminal carries out authentication and passes through;
Judge whether comprise the first designated character string in described crawl command information;
When described crawl command information comprises described first designated character string, the packet of Internet Transmission is captured.
CN201510321431.2A 2015-06-12 2015-06-12 Data packet capturing method and data packet capturing device Pending CN105100201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510321431.2A CN105100201A (en) 2015-06-12 2015-06-12 Data packet capturing method and data packet capturing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510321431.2A CN105100201A (en) 2015-06-12 2015-06-12 Data packet capturing method and data packet capturing device

Publications (1)

Publication Number Publication Date
CN105100201A true CN105100201A (en) 2015-11-25

Family

ID=54579718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510321431.2A Pending CN105100201A (en) 2015-06-12 2015-06-12 Data packet capturing method and data packet capturing device

Country Status (1)

Country Link
CN (1) CN105100201A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360040A (en) * 2017-08-18 2017-11-17 上海斐讯数据通信技术有限公司 A kind of method and system for capturing, preserving router data bag
CN108093416A (en) * 2017-11-30 2018-05-29 厦门市美亚柏科信息股份有限公司 A kind of acquisition method and terminal of mobile APP propelling datas
CN110740447A (en) * 2019-10-22 2020-01-31 福州汇思博信息技术有限公司 remote log grabbing method for Android terminal
WO2021259079A1 (en) * 2020-06-22 2021-12-30 中兴通讯股份有限公司 Method, apparatus, and device for automatically collecting internet-surfing message of application, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340544A (en) * 2008-08-11 2009-01-07 北京中星微电子有限公司 Remote control method and apparatus
CN101662656A (en) * 2009-09-15 2010-03-03 中国联合网络通信集团有限公司 Remote control method and remote control device of set-top box and set-top box
US20110252897A1 (en) * 2010-04-20 2011-10-20 Erik Axel Swenson Versatile remote slit impact air sampler controller system
CN102761456A (en) * 2011-04-29 2012-10-31 腾讯科技(深圳)有限公司 Method, device and system for acquiring performance parameters of browser of mobile terminal
CN103067464A (en) * 2012-12-20 2013-04-24 广东欧珀移动通信有限公司 Method and system for intelligent terminal to remotely control computer
CN104053137A (en) * 2014-06-27 2014-09-17 可牛网络技术(北京)有限公司 Data recovery method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340544A (en) * 2008-08-11 2009-01-07 北京中星微电子有限公司 Remote control method and apparatus
CN101662656A (en) * 2009-09-15 2010-03-03 中国联合网络通信集团有限公司 Remote control method and remote control device of set-top box and set-top box
US20110252897A1 (en) * 2010-04-20 2011-10-20 Erik Axel Swenson Versatile remote slit impact air sampler controller system
CN102761456A (en) * 2011-04-29 2012-10-31 腾讯科技(深圳)有限公司 Method, device and system for acquiring performance parameters of browser of mobile terminal
CN103067464A (en) * 2012-12-20 2013-04-24 广东欧珀移动通信有限公司 Method and system for intelligent terminal to remotely control computer
CN104053137A (en) * 2014-06-27 2014-09-17 可牛网络技术(北京)有限公司 Data recovery method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360040A (en) * 2017-08-18 2017-11-17 上海斐讯数据通信技术有限公司 A kind of method and system for capturing, preserving router data bag
CN107360040B (en) * 2017-08-18 2021-05-14 台州市吉吉知识产权运营有限公司 Method and system for capturing and storing router data packet
CN108093416A (en) * 2017-11-30 2018-05-29 厦门市美亚柏科信息股份有限公司 A kind of acquisition method and terminal of mobile APP propelling datas
CN110740447A (en) * 2019-10-22 2020-01-31 福州汇思博信息技术有限公司 remote log grabbing method for Android terminal
WO2021259079A1 (en) * 2020-06-22 2021-12-30 中兴通讯股份有限公司 Method, apparatus, and device for automatically collecting internet-surfing message of application, and storage medium

Similar Documents

Publication Publication Date Title
CN104318741B (en) Bluetooth equipment control method and device
CN104159218B (en) Internetwork connection establishing method and device
CN105357262B (en) Apparatus control method and device
CN104853136A (en) Video communication method and device
CN104703295A (en) Network access method and network access device
CN105282158A (en) Intelligent equipment networking method, routing equipment, intelligent equipment and system
CN104991789A (en) Method and apparatus for starting application
CN104933351A (en) Information security processing method and information security processing device
CN104363631A (en) Connection method, device and system of wireless router
CN105338399A (en) Image acquisition method and device
CN104812092A (en) Networking method and device of intelligent equipment
CN106097494A (en) The method for unlocking of smart lock and device
CN105246138A (en) Control method and device of Internet-of-things device
CN104683248A (en) Method and device for switching working mode
CN105204350A (en) Method and apparatus for displaying household electrical appliance information
CN105242942A (en) Application control method and apparatus
CN104506443A (en) Router setting interface display method and device
CN104735670A (en) Network access method and device
CN104468581B (en) The method and device of login application program
CN104331228A (en) Screen locking method and device
CN104950838A (en) Network account binding method and device
CN103986631B (en) Lan device discover method and device
CN107071862A (en) Account binding method and device and smart machine
CN104484593A (en) Terminal verification method and terminal verification device
CN105100201A (en) Data packet capturing method and data packet capturing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151125