CN104980485B - A kind of sniff methods, devices and systems of Internet resources - Google Patents
A kind of sniff methods, devices and systems of Internet resources Download PDFInfo
- Publication number
- CN104980485B CN104980485B CN201510112778.6A CN201510112778A CN104980485B CN 104980485 B CN104980485 B CN 104980485B CN 201510112778 A CN201510112778 A CN 201510112778A CN 104980485 B CN104980485 B CN 104980485B
- Authority
- CN
- China
- Prior art keywords
- resource
- target network
- network resource
- interface
- request
- 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.)
- Active
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of sniff methods, devices and systems of Internet resources;The embodiment of the present invention is using the debugging function for starting browser, under the debugging function, obtain the chained address of target network resource, according to the chained address access target Internet resources, and save the interactive information generated in access process, the resource interface of the target network resource is obtained from the interactive information, then, which is obtained based on the resource interface;The program is not only realized simply, but also the efficiency of sniff resource can be improved.
Description
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of sniff methods, devices and systems of Internet resources.
Background technique
In recent years, Internet technology has obtained development at full speed, and how fastly various resources are flooded with whole network,
Fast ground gets required resource in numerous Internet resources, is the problem that merits attention to obtain.
Conventionally, as the network that hub (hub) is set up be based on shared principle, therefore, office in principle
Interior all computers are netted in domain can receive identical data packet, and the hardware " filter " that network interface card is constructed can then lead to
The identification Medium Access Layer address (MAX, Media Access Control) is crossed to filter out the information unrelated with itself, so,
Each computer is just made eventually to receive different data packets.And sniff technology, this characteristic is exactly utilized, network interface card is set
It is set to " promiscuous mode ", to close the hardware " filter " that network interface card is constructed, allows to intercept and capture more data flows, and by skill
Art personnel are grouped analysis to the data flow of intercepting and capturing, so as to lean out more satisfactory potential resources, for technology
Personnel or user use, and realize the purpose of resource needed for obtaining.
In the research and practice process to the prior art, it was found by the inventors of the present invention that existing sniff scheme needs
Network interface card is set using distinctive sniffers, and analysis is grouped to the data of intercepting and capturing by manually, not only realize compared with
For complexity, and the efficiency of sniff resource is relatively low.
Summary of the invention
The embodiment of the present invention provides a kind of sniff methods, devices and systems of Internet resources, not only realizes simple, Er Qieke
To improve the efficiency of sniff resource.
The embodiment of the present invention provides a kind of sniff method of Internet resources, comprising:
Start the debugging function of browser;
Under the debugging function, the chained address of target network resource is obtained;
The target network resource is accessed according to the chained address, and saves the interactive information generated in access process;
The resource interface of the target network resource is obtained from the interactive information;
The target network resource is obtained based on the resource interface.
Correspondingly, the embodiment of the present invention also provides a kind of sniff device of Internet resources, comprising:
Start unit, for starting the debugging function of browser;
Address acquisition unit, for obtaining the chained address of target network resource under the debugging function;
Access unit for accessing the target network resource according to the chained address, and is saved in access process and is produced
Raw interactive information;
Interface acquiring unit, for obtaining the resource interface of the target network resource from the interactive information;
Resource acquisition unit, for obtaining the target network resource based on the resource interface.
In addition, the embodiment of the present invention also provides a kind of sniff system of Internet resources, including provided in an embodiment of the present invention
The sniff device of any Internet resources.
The embodiment of the present invention obtains target network resource under the debugging function using the debugging function of starting browser
Chained address, according to the chained address access target Internet resources, and the interactive information generated in access process is saved, from this
The resource interface of the target network resource is obtained in interactive information, then, which is obtained based on the resource interface;
Since the program can search resource interface by sniff, and required Internet resources are obtained based on the resource interface automatically, because
This, needs to be arranged compared with the existing technology network interface card, and need to be grouped the data of intercepting and capturing by manually the scheme of analysis and
Speech not only can be omitted complicated Network card setup operation, realize simply, and without manually analysis is grouped, significantly
Improve the efficiency of sniff resource.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the flow chart of the sniff method of Internet resources provided in an embodiment of the present invention;
Fig. 2 is another flow chart of the sniff method of Internet resources provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of the sniff device of Internet resources provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
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 description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of sniff methods, devices and systems of Internet resources.It will carry out respectively below detailed
Explanation.
Embodiment one,
The angle of sniff device from Internet resources is described the present embodiment, and the sniff device of the Internet resources is specific
It can integrate in the terminal.The terminal is specifically as follows mobile phone, tablet computer or personal computer (PC, Personal
The equipment such as Computer).
A kind of sniff method of Internet resources, comprising: the debugging function for starting browser obtains under the debugging function
The chained address of target network resource accesses the target network resource according to the chained address, and saves in access process and generate
Interactive information, the resource interface of the target network resource is obtained from the interactive information, which is obtained based on the resource interface
Mark Internet resources.
As shown in Figure 1, the detailed process of the sniff method of the Internet resources can be such that
101, start the debugging function of browser.
For example, specifically can be started according to the debugging function and be requested in the debugging function starting request for receiving user
The debugging process of browser is called, with the debugging function, etc. for starting browser.
102, under the debugging function, the chained address of target network resource is obtained.
Wherein, which is specifically as follows any accessible mark to target network resource, for example, the link
Address is specifically as follows uniform resource locator (URL, Uniform Resoure Locator), etc..
Wherein, which can be the money of music sources, video resource, image resource or other aspects
Source, details are not described herein.
103, the target network resource is accessed according to the chained address, and saves the interactive information generated in access process.
For example, if target network resource storage in the server, at this time can be according to the chained address to service
Device sends access request, after server is by verifying, receives server and is rung according to the corresponding access that the chained address returns
It answers, in the process, needs to carry out multiple swap operation between the sniff device and server of the Internet resources, wherein can generate
Many exchange information, such as multiple network requests and the web page code of the target network resource etc., believe these interactions
Breath, the sniff device of Internet resources needs to save it, for subsequent query.
Wherein, when saving interactive information, these interactive information can be specifically stored in preset storage location, than
Such as, it can specifically be stored in memory space corresponding to " network (Network) " project of browser, as long as in this way, subsequent
User, which triggers, opens " Network " project of being somebody's turn to do, and can get corresponding interactive information.It is of course also possible to be stored in other
Under project, details are not described herein.
104, the resource interface of the target network resource is obtained from the interactive information.For example, specifically can be such that
(1) mark of the target network resource is obtained from the interactive information.
For example, if the interactive information includes the information such as multiple network requests and the web page code of the target network resource,
The mark of the target network resource can be specifically obtained from the web page code of Internet resources at this time.Wherein, which has
Body can for hypertext markup language (HTML, HyperText Mark-up Language) source code, JavaScript source code or
HyperText Preprocessor (PHP, Hypertext Preprocessor) source code etc..
For example, be specially video resource with the target network resource, and for web page code is specially html source code, then this
When can receive user by click video URL trigger check request, then, according to this check request in browser side
" response (Response) " project under show the html source code of the video page, these html source codes are searched, so that it may
To get the mark of the video, such as the identity recognition number (ID, IDentity) of the video.
(2) network request corresponding with the mark of the target network resource is obtained from the interactive information.
For example, if the interactive information includes the information such as multiple network requests and the web page code of the target network resource,
Network request corresponding with the mark of the target network resource can be specifically obtained from multiple network request at this time, such as super
Text Transfer Protocol (Http, Hypertext transfer protocol) request or File Transfer Protocol (FTP, File
Transfer protocol) request etc..
(3) resource interface of the target network resource is determined according to the interface of the corresponding network request.
For example, can specifically check the return value of the interface of these corresponding network requests, it is determined to according to return value
When finding the target network resource, determine that the interface of the corresponding network request is the resource interface of the target network resource.
If the target network resource can not be found according to return value determination, show the interface of the corresponding network request
For invalid resource interface, therefore, this method can be used for the detection and investigation to invalid resource interface.
105, the target network resource is obtained based on the resource interface.For example, specifically can be such that
(1) resource information of the target network resource is obtained;
For example, the webpage of the specific available target network resource, parses the webpage, then to obtain the target network
The resource information of resource.
Wherein, obtain the webpage of the target network resource mode can there are many, for example, can by web crawlers come
The webpage of the target network resource is grabbed, or the web page code of the target network resource can also be obtained from interactive information
Etc., therefore not to repeat here.
Wherein, resource information includes at least one parameter that can identify resource interface, for example, can be resource identification
Deng.The resource information can be configured according to the demand of practical application, and details are not described herein.
(2) according to the resource information got, which is obtained by the resource interface.
For example, the resource interface (i.e. construction resource interface) can be reconfigured according to the resource information got, then
The target network resource is obtained according to the resource structures postponed.
From the foregoing, it will be observed that debugging function of the present embodiment using starting browser obtains target network under the debugging function
The chained address of resource according to the chained address access target Internet resources, and saves the interactive information generated in access process,
The resource interface of the target network resource is obtained from the interactive information, then, which is obtained based on the resource interface
Resource;Since the program can search resource interface by sniff, and required network money is obtained based on the resource interface automatically
Source needs to be arranged network interface card accordingly, with respect to the prior art, and needs to be grouped the data of intercepting and capturing by manually the side of analysis
For case, not only can be omitted complicated Network card setup operation, realize it is simple, and without being manually grouped analysis,
Substantially increase the efficiency of sniff resource.
Embodiment two,
According to method described in embodiment one, citing is described in further detail below.
In the present embodiment, it will specifically be integrated in the terminal with the sniff device of the Internet resources, and the Internet resources have
Body be video resource for be illustrated.
As shown in Fig. 2, a kind of sniff method of Internet resources, detailed process can be such that
201, the debugging function of terminal starting browser.For example, specifically can be such that
Terminal receives the debugging function starting request of user, starts the tune of request call browser according to the debugging function
Examination process, to start the debugging function of browser.
202, terminal obtains the chained address of target video under the debugging function, for example obtains the target video
URL, etc..
203, terminal accesses the target video according to the chained address of the target video, and saves and generate in access process
Interactive information.
Wherein, which may include the information such as multiple network requests and the web page code of the target network resource.
Wherein, the network request be specifically as follows Http request or FTP request etc., and the web page code be specifically as follows html source code,
JavaScript source code or PHP source code etc..
For example, if target video storage in the server, terminal can be according to the chained address to service at this time
Device sends access request, and after server is by verifying, server can return according to the chained address to terminal corresponding
Access response, so that terminal can play the video etc. according to the access response, in the process, between the terminal and server
It needs to carry out multiple swap operation, wherein many exchange information can be generated, such as multiple network requests and the target video
Web page code etc., for these interactive information, terminal needs to save it, for subsequent query.
Wherein, when saving interactive information, these interactive information can be specifically stored in preset storage location, than
Such as, it can specifically be stored in memory space corresponding to " Network " project of browser, as long as in this way, subsequent user touches
Hair opens " Network " project of being somebody's turn to do, and can get corresponding interactive information.It is of course also possible to be stored under sundry item,
Details are not described herein.
204, terminal obtains the mark of the target video, such as video ID from the interactive information.
For example, terminal can obtain the view of the target video from the web page code of the target video, such as in html source code
Frequency ID, for example, specifically can receive user by click the target video URL trigger check request, then, according to this
Check that request shows the html source code of the video page under " response (Response) " project of browser side, subsequently,
These html source codes are searched, so that it may get the video ID of the target video.
205, terminal is obtained from the interactive information asks with the mark of the target video, such as the corresponding network of video ID
It asks.
For example, can specifically be obtained from multiple network request with the mark of the target video, as video ID is corresponding
Network request, wherein the network request is specifically as follows Http request or FTP request etc..
206, terminal determines the resource interface of the target video according to the interface of the corresponding network request.
For example, terminal can check the return value of the interface of these corresponding network requests, energy is determined according to the return value
When enough finding the target video, determine that the interface of the corresponding network request is the resource interface of the target video.
If the target video can not be found according to return value determination, show that the interface of the corresponding network request is nothing
The resource interface of effect, therefore, this method can be used for the detection and investigation to invalid resource interface.
207, terminal obtains the resource information of the target video.
For example, the webpage of the specific available target video, parses the webpage, then to obtain the money of the target video
Source information.
Wherein, which includes at least one parameter that can identify resource interface, for example, can be resource mark
Know, i.e., the parameters such as video ID of the present embodiment include for convenience video ID with the resource information in the present embodiment
For be illustrated, it should be appreciated that can also include other parameters.
It should be noted that since video ID had been obtained in step 204, if in step 204, being carried out to video ID
It saves, then can directly acquire the video ID of the preservation at this time, otherwise, need to reacquire video ID at this time, than
The page that the video can be such as grabbed by web crawlers, then obtains video ID, etc. by parsing the page of the crawl.
Certainly, if resource information further includes other parameters, it is also required to the page by grabbing the video at this time, and parsing should
The page of crawl obtains these other parameters, and details are not described herein.
208, terminal obtains the resource of the target video by the resource interface according to the resource information got, for example,
Obtain the target video and the relevant information of the target video, etc..
For example, the resource interface can be reconfigured according to the resource information got, that is, resource interface is constructed, then root
The target network resource is obtained according to the resource interface postponed, for example the resource interface postponed is matched by this, utilizes web crawlers
Grab the resource of the target video.
It should be noted that in the present embodiment, being only illustrated, answering so that the target network resource is video resource as an example
When understanding, which may be other resources, such as music sources, image resource or otherwise money
Source, etc., its implementation is similar to the above, and details are not described herein.
From the foregoing, it will be observed that debugging function of the terminal of the present embodiment using starting browser obtains mesh under the debugging function
The chained address for marking video, according to the chained address access target video, and saves the interactive information generated in access process, from
The resource interface of the target video is obtained in the interactive information, then, which is obtained based on the resource interface;Due to this
Scheme can search resource interface by sniff, and obtain required video resource automatically based on the resource interface, therefore, relatively
It needs to be arranged network interface card in the prior art, and needs by manually come for the data of intercepting and capturing are grouped the scheme of analysis, not only
It can be omitted complicated Network card setup operation, realized simply, and without manually analysis is grouped, substantially increase and smell
Visit the efficiency of Internet resources such as video resource.Further, since in this scenario, terminal can be by judging that these resources connect
Whether mouth can find target resource such as video resource, accordingly it is also possible to for whether resource interface effectively to be detected and arranged
It looks into, improves the accuracy rate of resource acquisition.
Embodiment three,
In order to better implement above method, the embodiment of the present invention also provides a kind of sniff device of Internet resources, such as Fig. 3
Shown, the sniff device of the Internet resources includes start unit 301, address acquisition unit 302, access unit 303, interface acquisition
Unit 304 and resource acquisition unit 305, as follows:
Start unit 301, for starting the debugging function of browser.
For example, specifically can be in the debugging function starting request for receiving user, by start unit 301 according to the debugging
Function starts the debugging process of request call browser, with the debugging function, etc. for starting browser.
Address acquisition unit 302, for obtaining the chained address of target network resource under the debugging function.
Wherein, which is specifically as follows any accessible mark to target network resource, for example, the link
Address is specifically as follows URL, etc..
Wherein, which can be the money of music sources, video resource, image resource or other aspects
Source, details are not described herein.
Access unit 303 for accessing the target network resource according to the chained address, and is saved in access process and is generated
Interactive information.
For example, access unit 303 can be according to the link at this time if the target network resource stores in the server
Address sends access request to server, after server is by verifying, receives the phase that server is returned according to the chained address
The access response answered needs to carry out multiple swap operation between the sniff device and server of the Internet resources in the process,
Many exchange information, such as multiple network requests and the web page code of the target network resource etc. can be wherein generated, for
The sniff device of these interactive information, Internet resources needs to save it, for subsequent query.
Wherein, when saving interactive information, these interactive information can be specifically stored in preset storage location, than
Such as, it can specifically be stored in memory space corresponding to " Network " project of browser, as long as in this way, subsequent user touches
Hair opens " Network " project of being somebody's turn to do, and can get corresponding interactive information.It is of course also possible to be stored under sundry item,
Details are not described herein.
Interface acquiring unit 304, for obtaining the resource interface of the target network resource from the interactive information.
Resource acquisition unit 305, for obtaining the target network resource based on the resource interface.For example, specifically can be with
It is as follows:
Resource acquisition unit 305 specifically can be used for obtaining the resource information of the target network resource, be believed according to the resource
Breath, obtains the target network resource by the resource interface.For example, the webpage of the specific available target network resource, so
After parse the webpage, to obtain the resource information of the target network resource.Wherein, resource information includes that at least one can be identified
The parameter of resource interface, for example, can be resource identification etc..The resource information can be set according to the demand of practical application
It sets, details are not described herein.
Wherein, obtain the webpage of the target network resource mode can there are many, for example, can by web crawlers come
The webpage, etc. of the target network resource is grabbed, details are not described herein.
Wherein, interface acquiring unit 304 may include obtaining subelement and determining subelement, as follows:
Subelement is obtained, is believed for obtaining the mark of the target network resource from the interactive information, and from the interaction
Network request corresponding with the mark is obtained in breath.
For example, if the interactive information includes the information such as multiple network requests and the web page code of the target network resource,
Obtain subelement at this time, specifically can be used for obtaining from the web page code of the target network resource the target network resource
Mark, and network request corresponding with the mark is obtained from multiple network request.
Wherein, which is specifically as follows html source code, JavaScript source code or PHP source code etc..
Subelement is determined, for determining that the resource of the target network resource connects according to the interface of the corresponding network request
Mouthful.
For example, determining subelement, it specifically can be used for checking the return value of the interface of the corresponding network request, according to
When the return value is determined to find the target network resource, determine that the interface of the corresponding network request is the target network
The resource interface of resource.
It should be noted that, however, it is determined that subelement can not find the target network resource according to return value determination, then show
The interface of the corresponding network request is invalid resource interface.
When it is implemented, above each unit can be used as independent entity to realize, any combination can also be carried out, is made
It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not
It repeats again.
The sniff device of the Internet resources specifically can integrate in the terminal.The terminal is specifically as follows mobile phone, plate electricity
The equipment such as brain or PC.
From the foregoing, it will be observed that the start unit 301 of the sniff device of the Internet resources of the present embodiment can star the tune of browser
Function is tried, and under the debugging function, the chained address of target network resource is obtained by address acquisition unit 302, then by visiting
Ask that unit 303 according to the chained address access target Internet resources, and saves the interactive information generated in access process, by interface
Acquiring unit 304 obtains the resource interface of the target network resource from the interactive information, subsequently, by resource acquisition unit
305 obtain the target network resource based on the resource interface;Since the program can search resource interface, and base by sniff
The Internet resources needed for the resource interface obtains automatically need to be arranged network interface card accordingly, with respect to the prior art, and need by artificial
For the data of intercepting and capturing are grouped the scheme of analysis, not only can be omitted complicated Network card setup operation, realization letter
It is single, and without manually analysis is grouped, substantially increase the efficiency of sniff resource.
Example IV,
Correspondingly, the embodiment of the present invention also provides a kind of sniff system of Internet resources, including the embodiment of the present invention provides
Any Internet resources sniff device, for details, reference can be made to embodiments three, wherein the sniff device of the Internet resources specifically may be used
It integrates in the terminal, for example, can be such that
Terminal under the debugging function, obtains the chain ground connection of target network resource for starting the debugging function of browser
Location accesses the target network resource according to the chained address, and saves the interactive information generated in access process, believes from the interaction
The resource interface that the target network resource is obtained in breath obtains the target network resource based on the resource interface.
Wherein, it obtains resource interface and obtains the specific implementation of the operations such as the target network resource based on the resource interface
It can be found in the embodiment of front, details are not described herein.
In addition, the sniff system of the Internet resources can also include other equipment, for example, can also include server,
It is as follows:
Server is grounded for example, can receive terminal according to the chain of the target network resource for the access of receiving terminal
Access request transmitted by location obtains target network resource, and backward reference responds when determining that the access request is verified
To terminal, etc..
In addition, going back server, can be also used for obtaining the target network resource based on the resource interface got in terminal
When, which is supplied to terminal.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Since the sniff system of the Internet resources may include smelling for any Internet resources provided in an embodiment of the present invention
Device is visited, it is thereby achieved that having achieved by the sniff device of any Internet resources provided by the embodiment of the present invention
Beneficial effect, details are not described herein.
Embodiment five,
Correspondingly, the embodiment of the present invention also provides a kind of terminal, as shown in figure 4, the terminal may include radio frequency (RF,
Radio Frequency) circuit 401, the memory 402, defeated that includes one or more computer readable storage medium
Enter unit 403, display unit 404, sensor 405, voicefrequency circuit 406, Wireless Fidelity (WiFi, Wireless Fidelity)
The components such as module 407, the processor 408 for including one or more than one processing core and power supply 409.This field skill
Art personnel are appreciated that the restriction of the not structure paired terminal of terminal structure shown in Fig. 4, may include more or more than illustrating
Few component perhaps combines certain components or different component layouts.Wherein:
RF circuit 401 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station
After downlink information receives, one or the processing of more than one processor 408 are transferred to;In addition, the data for being related to uplink are sent to
Base station.In general, RF circuit 401 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses
Family identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low-noise amplifier
(LNA, Low Noise Amplifier), duplexer etc..In addition, RF circuit 401 can also by wireless communication with network and its
He communicates equipment.Any communication standard or agreement, including but not limited to global system for mobile telecommunications system can be used in the wireless communication
Unite (GSM, Global System of Mobile communication), general packet radio service (GPRS, General
Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more
Location (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term
Evolution), Email, short message service (SMS, Short Messaging Service) etc..
Memory 402 can be used for storing software program and module, and processor 408 is stored in memory 402 by operation
Software program and module, thereby executing various function application and data processing.Memory 402 can mainly include storage
Program area and storage data area, wherein storing program area can application program needed for storage program area, at least one function
(such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created number according to terminal
According to (such as audio data, phone directory etc.) etc..In addition, memory 402 may include high-speed random access memory, can also wrap
Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Correspondingly, memory 402 can also include Memory Controller, to provide processor 408 and input unit 403 to memory
402 access.
Input unit 403 can be used for receiving the number or character information of input, and generate and user setting and function
Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, in a specific embodiment
In, input unit 403 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or touching
Plate is controlled, collecting the touch operation of user on it or nearby, (for example user uses any suitable object such as finger, stylus
Or operation of the attachment on touch sensitive surface or near touch sensitive surface), and corresponding connection is driven according to preset formula
Device.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus
The touch orientation of user is detected, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller
Touch information is received from touch detecting apparatus, and is converted into contact coordinate, then gives processor 408, and can receiving area
It manages the order that device 408 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Seed type realizes touch sensitive surface.In addition to touch sensitive surface, input unit 403 can also include other input equipments.Specifically, other
Input equipment can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball,
One of mouse, operating stick etc. are a variety of.
Display unit 404 can be used for showing information input by user or be supplied to user information and terminal it is various
Graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.Display
Unit 404 may include display panel, optionally, can using liquid crystal display (LCD, Liquid Crystal Display),
The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display panel.Further
, touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, send processing to
Device 408 is followed by subsequent processing device 408 according to the type of touch event and provides phase on a display panel to determine the type of touch event
The visual output answered.Although touch sensitive surface and display panel are to realize input and defeated as two independent components in Fig. 4
Enter function, but in some embodiments it is possible to touch sensitive surface and display panel is integrated and realizes and outputs and inputs function.
Terminal may also include at least one sensor 405, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjust the brightness of display panel, proximity sensor can close display panel and/or back when terminal is moved in one's ear
Light.As a kind of motion sensor, gravity accelerometer can detect (generally three axis) acceleration in all directions
Size can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching,
Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal
The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 406, loudspeaker, microphone can provide the audio interface between user and terminal.Voicefrequency circuit 406 can
By the electric signal after the audio data received conversion, it is transferred to loudspeaker, voice signal output is converted to by loudspeaker;It is another
The voice signal of collection is converted to electric signal by aspect, microphone, is converted to audio data after being received by voicefrequency circuit 406, then
After the processing of audio data output processor 408, it is sent to such as another terminal through RF circuit 401, or by audio data
Output is further processed to memory 402.Voicefrequency circuit 406 is also possible that earphone jack, with provide peripheral hardware earphone with
The communication of terminal.
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronics postal by WiFi module 407
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 4 is shown
WiFi module 407, but it is understood that, and it is not belonging to must be configured into for terminal, it can according to need do not changing completely
Become in the range of the essence of invention and omits.
Processor 408 is the control centre of terminal, using the various pieces of various interfaces and connection whole mobile phone, is led to
It crosses operation or executes the software program and/or module being stored in memory 402, and call and be stored in memory 402
Data execute the various functions and processing data of terminal, to carry out integral monitoring to mobile phone.Optionally, processor 408 can wrap
Include one or more processing cores;Preferably, processor 408 can integrate application processor and modem processor, wherein answer
With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication.
It is understood that above-mentioned modem processor can not also be integrated into processor 408.
Terminal further includes the power supply 409 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe
Reason system and processor 408 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system
Etc. functions.Power supply 409 can also include one or more direct current or AC power source, recharging system, power failure inspection
The random components such as slowdown monitoring circuit, power adapter or inverter, power supply status indicator.
Although being not shown, terminal can also include camera, bluetooth module etc., and details are not described herein.Specifically in this implementation
In example, the processor 408 in terminal can be corresponding by the process of one or more application program according to following instruction
Executable file is loaded into memory 402, and the application program being stored in memory 402 is run by processor 408, from
And realize various functions:
The debugging function of starting browser obtains the chained address of target network resource, according to this under the debugging function
Chained address accesses the target network resource, and saves the interactive information generated in access process, obtains from the interactive information
The resource interface of the target network resource obtains the target network resource based on the resource interface.
For example, can specifically obtain the mark of the target network resource from the interactive information, and from the interactive information
It is middle to obtain network request corresponding with the mark of the target network resource, then determined according to the interface of the corresponding network request
The resource interface of the target network resource, hereafter, the resource information of the available target network resource, then, according to acquisition
The resource information arrived obtains the target network resource by the resource interface.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
From the foregoing, it will be observed that debugging function of the terminal of the present embodiment using starting browser obtains mesh under the debugging function
The chained address for marking Internet resources, according to the chained address access target Internet resources, and saves the friendship generated in access process
Mutual information obtains the resource interface of the target network resource from the interactive information, then, obtains the mesh based on the resource interface
Mark Internet resources;Since the program can search resource interface by sniff, and needed for being obtained automatically based on the resource interface
Internet resources need to be arranged network interface card accordingly, with respect to the prior art, and need to be grouped point the data of intercepting and capturing by manually
For the scheme of analysis, not only can be omitted complicated Network card setup operation, realize it is simple, and without being manually grouped
Analysis, substantially increases the efficiency of sniff resource.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
The sniff methods, devices and systems for being provided for the embodiments of the invention a kind of Internet resources above have carried out in detail
It introduces, used herein a specific example illustrates the principle and implementation of the invention, the explanation of above embodiments
It is merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to the present invention
Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be understood
For limitation of the present invention.
Claims (9)
1. a kind of sniff method of Internet resources characterized by comprising
Start the debugging function of browser;
Under the debugging function, the chained address of target network resource is obtained;
The target network resource is accessed according to the chained address, and saves the interactive information generated in access process;
The resource interface of the target network resource is obtained from the interactive information;
The target network resource is obtained based on the resource interface;
The interactive information includes the web page code of multiple network requests and the target network resource;
The resource interface that the target network resource is obtained from the interactive information, comprising:
The mark of the target network resource is obtained from the web page code of the target network resource;
Network request corresponding with the mark is obtained from the multiple network request;
The resource interface of the target network resource is determined according to the interface of the corresponding network request;
The step of mark that the target network resource is obtained from the web page code of the target network resource includes:
Receive user by click the target network resource URL trigger check request;
Check that request shows the target network resource under " response (Response) " project of browser side according to this
Html source code;
These html source codes are searched, so that it may get the mark of the target network resource.
2. the method according to claim 1, wherein described determine according to the interface of the corresponding network request
The resource interface of the target network resource, comprising:
Check the return value of the interface of the corresponding network request;
When being determined to find the target network resource according to the return value, the interface of the corresponding network request is determined
For the resource interface of the target network resource.
3. according to claim 1 to 2 described in any item methods, which is characterized in that described to obtain institute based on the resource interface
State target network resource, comprising:
Obtain the resource information of the target network resource;
According to the resource information, the target network resource is obtained by the resource interface.
4. according to the method described in claim 3, it is characterized in that, the resource information for obtaining the target network resource,
Include:
The webpage of the target network resource is grabbed by web crawlers;
The webpage is parsed, to obtain the resource information of the target network resource.
5. a kind of sniff device of Internet resources characterized by comprising
Start unit, for starting the debugging function of browser;
Address acquisition unit, for obtaining the chained address of target network resource under the debugging function;
Access unit generates in access process for accessing the target network resource according to the chained address, and saving
Interactive information;
Interface acquiring unit, for obtaining the resource interface of the target network resource from the interactive information;
Resource acquisition unit, for obtaining the target network resource based on the resource interface;
The interactive information includes the web page code of multiple network requests and the target network resource;
The interface acquiring unit includes obtaining subelement and determining subelement;
Subelement is obtained, for obtaining the mark of the target network resource from the web page code of the target network resource,
And network request corresponding with the mark is obtained from the multiple network request;
Subelement is determined, for determining that the resource of the target network resource connects according to the interface of the corresponding network request
Mouthful;
It is described obtain subelement be used for receive user by click the target network resource URL trigger check request;Root
Check that request shows the html source code of the target network resource under " response (Response) " project of browser side according to this;
These html source codes are searched, so that it may get the mark of the target network resource.
6. device according to claim 5, which is characterized in that
The determining subelement, the return value of the interface specifically for checking the corresponding network request, according to the return
When value is determined to find the target network resource, determine the interface of the corresponding network request for target network money
The resource interface in source.
7. according to the described in any item devices of claim 5 to 6, which is characterized in that
The resource acquisition unit, specifically for obtaining the resource information of the target network resource, according to the resource information,
The target network resource is obtained by the resource interface.
8. device according to claim 7, which is characterized in that
The resource acquisition unit, specifically for grabbing the webpage of the target network resource by web crawlers, described in parsing
Webpage, to obtain the resource information of the target network resource.
9. a kind of sniff system of Internet resources, which is characterized in that including the described in any item Internet resources of claim 5 to 8
Sniff device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510112778.6A CN104980485B (en) | 2015-03-16 | 2015-03-16 | A kind of sniff methods, devices and systems of Internet resources |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510112778.6A CN104980485B (en) | 2015-03-16 | 2015-03-16 | A kind of sniff methods, devices and systems of Internet resources |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104980485A CN104980485A (en) | 2015-10-14 |
CN104980485B true CN104980485B (en) | 2019-01-15 |
Family
ID=54276584
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510112778.6A Active CN104980485B (en) | 2015-03-16 | 2015-03-16 | A kind of sniff methods, devices and systems of Internet resources |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104980485B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111431852B (en) * | 2020-02-21 | 2021-06-25 | 厦门大学 | Browser history sniffing method and browser history monitoring method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103631916A (en) * | 2013-11-29 | 2014-03-12 | 北京奇虎科技有限公司 | Method and device for downloading downloadable resources |
CN103699661A (en) * | 2013-12-26 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Method and system for acquiring data of video resources |
CN103905915A (en) * | 2010-12-15 | 2014-07-02 | 百度在线网络技术(北京)有限公司 | Online video sniffing downloading method and device |
-
2015
- 2015-03-16 CN CN201510112778.6A patent/CN104980485B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103905915A (en) * | 2010-12-15 | 2014-07-02 | 百度在线网络技术(北京)有限公司 | Online video sniffing downloading method and device |
CN103631916A (en) * | 2013-11-29 | 2014-03-12 | 北京奇虎科技有限公司 | Method and device for downloading downloadable resources |
CN103699661A (en) * | 2013-12-26 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Method and system for acquiring data of video resources |
Non-Patent Citations (2)
Title |
---|
"‘审’出资源的隐藏下载地址";牟晓东;《电脑知识与技术》;20121105;第1页第1段,第2页第二节 |
"视频下载及网页信息提取***设计与实现";郑旭;《中国优秀硕士学位论文全文数据库 信息科技辑》;20121015;全文 |
Also Published As
Publication number | Publication date |
---|---|
CN104980485A (en) | 2015-10-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105824958B (en) | A kind of methods, devices and systems of inquiry log | |
CN103617165B (en) | Picture loading method, device and terminal | |
CN104639672B (en) | The method and apparatus for carrying out domain name mapping | |
CN106412093B (en) | A kind of method for uploading of data, apparatus and system | |
CN104636664B (en) | Cross-site scripting attack leak detection method and device based on DOM Document Object Model | |
CN104572690B (en) | A kind of methods, devices and systems obtaining web data | |
CN104123276B (en) | The hold-up interception method of pop-up, device and system in a kind of browser | |
CN106547844B (en) | A kind for the treatment of method and apparatus of user interface | |
CN103501485B (en) | Push the method, apparatus and terminal device of application | |
CN103279574A (en) | Method, device and terminal device for loading explorer pictures | |
CN106454976B (en) | A kind of switching method of wireless network, device and terminal | |
CN104699501B (en) | A kind of method and device for running application program | |
CN105530222B (en) | Connection method for building up between multiple terminals, device and system | |
CN104660769B (en) | A kind of methods, devices and systems for adding associated person information | |
CN106303605B (en) | A kind of methods, devices and systems to send a notification message | |
CN105955597A (en) | Method and device for displaying information | |
CN107229618A (en) | A kind of method and device for showing the page | |
CN104123210B (en) | Test the method, apparatus and system of browser performance | |
CN104424203B (en) | Photo in mobile device shares state inspection method and system | |
CN106100974B (en) | Information sharing method and device | |
CN106681884B (en) | A kind of monitoring method and device of system calling | |
CN106155888A (en) | The detection method of webpage loading performance and device in a kind of Mobile solution | |
CN104391629A (en) | Method for sending message in orientation manner, method for displaying message, server and terminal | |
CN105025064B (en) | Download the method, apparatus and system of file | |
CN109688611A (en) | A kind of configuration method, device, terminal and the storage medium of frequency range parameter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |