CN107861861A - Short message interface lookup method and device - Google Patents

Short message interface lookup method and device Download PDF

Info

Publication number
CN107861861A
CN107861861A CN201611002251.9A CN201611002251A CN107861861A CN 107861861 A CN107861861 A CN 107861861A CN 201611002251 A CN201611002251 A CN 201611002251A CN 107861861 A CN107861861 A CN 107861861A
Authority
CN
China
Prior art keywords
bag
short message
message interface
return
page
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.)
Granted
Application number
CN201611002251.9A
Other languages
Chinese (zh)
Other versions
CN107861861B (en
Inventor
王胡园
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201611002251.9A priority Critical patent/CN107861861B/en
Publication of CN107861861A publication Critical patent/CN107861861A/en
Application granted granted Critical
Publication of CN107861861B publication Critical patent/CN107861861B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of short message interface lookup method, this method includes:The chained address of examining system is detected based on sensing, crawls the return bag of the tested examining system;According to the keyword database being pre-configured with, search in the return bag whether include major key;If described return in bag includes major key, judge that described return in the page corresponding to bag includes short message interface, obtain the short message interface in the page.The invention also discloses a kind of short message interface to search device.Present invention substantially reduces the workload of safety test personnel, manpower and materials are saved.

Description

Short message interface lookup method and device
Technical field
The present invention relates to Internet technical field, more particularly to a kind of short message interface lookup method and device.
Background technology
, it is necessary to use the local more and more of mobile phone checking in network application of today, such as user's registration, confirmation consumption Information etc., is often required for service end to issue identifying code to mobile phone, is verified.However, mobile phone can be utilized by having rogue program This function of identifying code, it is constantly same cell-phone number requests verification code, wastes the short message resource of enterprise, while cause to user The puzzlement of short message bomb.
Therefore, in order to avoid malice short message bomb, each web station system, application software system etc. are when coming into operation, safety Test man requires to look up the short message interface in each system, the security of detecting system.However, safety test person can only pass through at present Manually search the short message interface in tested examining system, workload is very big, the time of serious waste safety test person and essence Power.
The content of the invention
It is a primary object of the present invention to provide a kind of short message interface lookup method and device, it is intended to solve artificial lookup quilt The technical problem that the short message interface of detecting system is wasted time and energy.
To achieve the above object, the present invention provides a kind of short message interface lookup method, the short message interface lookup method bag Include following steps:
The chained address of examining system is detected based on sensing, crawls the return bag of the tested examining system;
According to the keyword database being pre-configured with, search in the return bag whether include major key;
If described return in bag includes major key, judge that described return connects in the page corresponding to bag comprising short message Mouthful, obtain the short message interface in the page.
Preferably, the short message interface lookup method also includes:
Wrapped according to described return, the subpage frame for crawling the return bag corresponding page returns to bag;
According to the keyword database being pre-configured with, search the subpage frame and return in bag whether include major key;
If the subpage frame, which is returned in bag, includes major key, judge to include short message interface in the subpage frame, obtain Take the short message interface in the subpage frame;
Returned and wrapped according to the subpage frame, the subordinate's subpage frame for crawling the subpage frame returns to bag.
Preferably, the short message interface lookup method also includes:
If the page corresponding to the return bag does not include subpage frame, or the subpage frame does not include subordinate's subpage frame, then stops Only crawl return bag.
Preferably, if described return in bag includes major key, described return in the page corresponding to bag is judged Comprising short message interface, the step of obtaining the short message interface in the page, includes:
If described return includes major key in bag, according to the interactive tag being pre-configured with, described return in bag is detected Whether the information for being related to the interactive tag is included;
If described return in bag comprising the information for being related to the interactive tag, described return in the page corresponding to bag is judged Comprising short message interface, the short message interface in the page is obtained.
Preferably, if described return in bag includes major key, described return in the page corresponding to bag is judged Comprising short message interface, the step of obtaining the short message interface in the page, includes:
If described return in bag includes major key, detect in the return bag whether include default additional key Word;
If described return in bag includes the alternate key, judge that described return in the page corresponding to bag includes short message Interface, obtain the short message interface in the page.
In addition, to achieve the above object, the present invention also provides a kind of short message interface and searches device, the short message interface is searched Device includes:
Reptile mould is fast, for based on the chained address for being detected examining system is pointed to, crawling the return bag of the tested examining system;
Searching modul, for according to the keyword database being pre-configured with, searching in the return bag whether include main pass Key word;
Acquisition module, if including major key for described return in bag, judge the page corresponding to the return bag In include short message interface, obtain the short message interface in the page.
Preferably, the reptile mould is additionally operable to soon,
Wrapped according to described return, the subpage frame for crawling the return bag corresponding page returns to bag;
The searching modul, it is additionally operable to according to the keyword database being pre-configured with, searches the subpage frame and return in bag Whether major key is included;
The acquisition module, include major key if being additionally operable to the subpage frame and returning in bag, judge the subpage Short message interface is included in face, obtains the short message interface in the subpage frame;
The reptile mould is fast, is additionally operable to be returned according to the subpage frame and wraps, the subordinate's subpage frame for crawling the subpage frame returns Return bag.
Preferably, the reptile mould is additionally operable to soon,
If the page corresponding to the return bag does not include subpage frame, or the subpage frame does not include subordinate's subpage frame, then stops Only crawl return bag.
Preferably, the acquisition module is additionally operable to,
If described return includes major key in bag, according to the interactive tag being pre-configured with, described return in bag is detected Whether the information for being related to the interactive tag is included;If described return in bag comprising the information for being related to the interactive tag, sentence Fixed described return in the page corresponding to bag includes short message interface, obtains the short message interface in the page.
Preferably, the acquisition module is additionally operable to,
If described return in bag includes major key, detect in the return bag whether include default additional key Word;If described return in bag includes the alternate key, judge that described return in the page corresponding to bag includes short message interface, Obtain the short message interface in the page.
A kind of the short message interface lookup method and device that the embodiment of the present invention proposes, by using reptile, based on sensing quilt The chained address of detecting system, the return bag of tested examining system is crawled, include in obtained return bag and crawl the complete of the page Content information, the information integrity for detecting short message interface is ensured, avoid failing to report;Then, according to the keyword being pre-configured with Database, search in the return bag whether include major key, the major key described in keyword database is to be related to The major key of short message interacting, it can effectively identify and whether return in bag comprising the content for relating to short message interacting;If return Include major key in bag, namely return in bag comprising the content for relating to short message interacting, then judge to return to page corresponding to bag Short message interface is included in face, and obtains the short message interface in this page, the automation for realizing short message interface is searched.The present invention is logical The page that reptile crawls tested examining system automatically is crossed, whether the return bag of the tested examining system of analysis, which has to include, is related to short message interacting Major key, without manually analyzing the page of tested examining system, the workload of safety test personnel is greatly reduced, saved Manpower and materials.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of short message interface lookup method first embodiment of the present invention;
Fig. 2 is the schematic flow sheet of short message interface lookup method second embodiment of the present invention;
Fig. 3 is the schematic flow sheet of short message interface lookup method 3rd embodiment of the present invention;
Fig. 4 is the schematic flow sheet of short message interface lookup method fourth embodiment of the present invention;
Fig. 5 is that short message interface of the present invention searches device first embodiment, second embodiment, 3rd embodiment and the 4th implementation The high-level schematic functional block diagram of example.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Reference picture 1, short message interface lookup method first embodiment of the present invention provides a kind of short message interface lookup method, described Short message interface lookup method includes:
Step S10, the chained address based on the tested examining system of sensing, the return bag of the tested examining system is crawled.
The present embodiment crawls each page of tested examining system by reptile, detects in each page whether include short message interface, So as to realize that the automation of short message interface in tested examining system is searched, cost of labor is reduced.
Specifically, as a kind of embodiment, first, the chained address of examining system is detected according to the sensing being pre-configured with, Using crawler technology, the return bag of tested examining system is crawled.
Wherein, the URL (Uniform of tested examining system homepage can be directed to by pointing to the chained address of tested examining system Resource Locator, URL) address etc., tested examining system can be linked to, is initially accessed so as to be used as The tested examining system of point incision, capture each content of pages of tested examining system, the detection for short message interface.Tested examining system can To be web station system, software systems etc..
When crawling the content of pages of tested examining system, the return bag that tested examining system returns is captured, return includes Every content information of the page, for example, picture in the page in the URL of subpage frame, the page, in the page each functional module letter Breath etc..
Step S20, according to the keyword database being pre-configured with, search in the return bag whether include major key.
It should be noted that various linguistic forms, the semantic master for being related to short message interacting are recorded in keyword database Keyword, for example, mobile phone, cell-phone number, phone number, mobile phone (mobile phone), mobile (phone), mobile ID (identification, identifier) etc..
Then after the return bag of tested examining system is crawled, search and whether return in bag comprising major key namely the lookup page Every content information in whether include major key.
Do not include any major key that keyword database is recorded in bag if returning, illustrate in the page that currently crawls Not comprising the content for being related to short message interacting, judge that the current bag that returns does not include major key.
If returning to any one or more major keys recorded comprising keyword database in bag, illustrate currently to crawl The page in comprising being related to the content of short message interacting, it may be determined that current return in bag includes major key.For example, return in bag Have and include this major key of mobile in an ID, then can determine that current return in bag includes major key.
If step S30, described return in bag includes major key, judge that described return includes in the page corresponding to bag Short message interface, obtain the short message interface in the page.
Because short message interface is generally required for transmission of the phone number for target progress short message verification code, announcement information etc., Therefore, major key is included in bag if returning, the content for being related to short message interacting is included in the page that can determine currently to crawl, Now, judge to return in the page corresponding to bag to include short message interface, the transmission and/or reception of short message can be carried out, further Ground, it may can also carry out reception status report of short message etc..
It is determined that after comprising the page of short message interface, according to the position of the major key found in the page, this is obtained Functional module or interface of the keyword belonging in the page, obtain the short message interface in the page.
In the present embodiment, using reptile, based on the chained address for pointing to tested examining system, returning for tested examining system is crawled Bag is returned, includes the complete content information for crawling the page in obtained return bag, ensures complete for the information that detects short message interface Whole property, avoids failing to report;Then, according to the keyword database being pre-configured with, search in the return bag whether include main key Word, the major key described in keyword database are to be related to the major key of short message interacting, can effectively identify return Whether the content for relating to short message interacting is included in bag;If returning and including major key in bag, namely return and include in bag It is related to the content of short message interacting, then judges to include short message interface in the page corresponding to return bag, and obtain the short message in this page Interface, the automation for realizing short message interface are searched.The present embodiment crawls the page of tested examining system by reptile automatically, analysis Whether the return bag of tested examining system has comprising the major key for being related to short message interacting, without manually analyzing tested examining system The page, greatly reduce the workload of safety test personnel, save manpower and materials.
Further, reference picture 2, short message interface lookup method second embodiment of the present invention provide a kind of short message interface and searched Method, based on the embodiment shown in above-mentioned Fig. 1, the short message interface lookup method also includes:
Step S40, wrapped according to described return, the subpage frame for crawling the return bag corresponding page returns to bag;
Step S50, according to the keyword database being pre-configured with, search the subpage frame and return in bag whether include main pass Key word;
If step S60, described subpage frame, which is returned in bag, includes major key, judge to include short message in the subpage frame Interface, obtain the short message interface in the subpage frame;
Step S70, returned and wrapped according to the subpage frame, the subordinate's subpage frame for crawling the subpage frame returns to bag.
Based on the chained address for pointing to tested examining system, after the return bag for crawling tested examining system, according to being pre-configured with Keyword database, search and return in bag whether include major key, detection return whether included in the page corresponding to bag it is short Believe interface, meanwhile, wrapped according to returning, crawl the subpage frame for returning to bag corresponding page, to return to the page corresponding to bag as point of penetration, And then whether each page for detecting tested examining system includes short message interface, realizes the complete detection to being detected examining system.
Specifically, as a kind of embodiment, based on the every content information for returning to the page in bag, each subpage frame is obtained Chained address, according to the chained address of each subpage frame, crawl the return bag of each subpage frame.
Then, according to the keyword database being pre-configured with, each subpage frame is searched respectively and returns in bag whether include main pass Key word.
If subpage frame, which is returned in bag, includes major key, judge to include short message interface in this subpage frame, obtain this son Short message interface in the page;If subpage frame returns in bag and do not contain major key, this subpage frame is marked not contain short message interface.
Then, according to the return bag of each subpage frame, continue to crawl subordinate's subpage frame of each subpage frame, detection subordinate subpage frame Whether short message interface is included, and by that analogy, the pages at different levels for crawling tested examining system carry out the detection of short message interface.
As a kind of embodiment, if the page corresponding to the return bag does not include subpage frame, or the subpage frame does not wrap Subpage frame containing subordinate, then stop crawling return bag.
If that is, based on the chained address for pointing to tested examining system, the page does not include subpage corresponding to the return bag crawled Face, then stop crawling to being detected the system page;If the page corresponding to returning to bag includes subpage frame, but subpage frame no longer includes Subordinate's subpage frame, then stop crawling to being detected the system page, by that analogy, each page for being detected examining system is climbed Take to there is no just stop crawling to being detected the system page during subordinate's subpage frame.
Hereby it is achieved that the complete detection to being detected examining system.
In the present embodiment, after the return bag of tested examining system is crawled, the subpage frame for crawling return bag corresponding page returns Return bag;Then, according to the keyword database being pre-configured with, search subpage frame and return in bag whether include major key;It is if sub The page, which is returned in bag, includes major key, then judges to include short message interface in subpage frame, the short message obtained in this subpage frame connects Mouthful.Also, after obtaining subpage frame and returning to bag, returned and wrapped according to subpage frame, the subordinate's subpage frame for crawling subpage frame returns to bag, enters The detection of row short message interface, there is stopping page during subordinate's subpage frame to crawl until the page crawled does not include.Thus, the present embodiment Each page that tested examining system can be crawled returns to bag, realizes the detection to being detected each page of examining system, avoids Short message interface is failed to report.
Further, reference picture 3, short message interface lookup method 3rd embodiment of the present invention provide a kind of short message interface and searched Method, based on the embodiment (the present embodiment is by taking Fig. 1 as an example) shown in above-mentioned Fig. 1 or Fig. 2, the step S30 includes:
If step S31, described return in bag include major key, the interactive tag that basis is pre-configured with, described in detection Whether return in bag comprising the information for being related to the interactive tag;
If step S32, described return in bag comprising the information for being related to the interactive tag, judge that the return bag is corresponding The page in include short message interface, obtain the short message interface in the page.
After it is determined that returning and including major key in bag, to avoid reporting short message interface by mistake, then to return bag carry out it is further Ground analysis verification.
Specifically, as a kind of embodiment, according to the interactive tag being pre-configured with, for example (,) it is short message verification code label, short Believe notified tag etc., whether detection is returned in bag comprising the information for being related to each interactive tag.Wherein, the interactive tag being pre-configured with It can be the forms such as keyword, core code, be easy to detection to return to bag.
The interactive tag being pre-configured with can have one or more, be related in return is wrapped any one or more default During interactive tag, you can judge have in this return bag comprising the information for being related to interactive tag.Appoint if returning and not including to be related in bag The information for interactive tag of anticipating, then judge that this returns to bag and collected not comprising the information for being related to interactive tag.
If returning has the information comprising interactive tag is related in bag, due to returning in bag and including classes such as " cell-phone numbers " The major key of type, the information of the type interactive tag such as short message verification code, SMS notification is also related to, then can extremely determine to work as The short message interface with short message interacting function is included in the preceding page, now, judges that this is returned in the page corresponding to bag and includes short message Interface.
Then, according to keyword and the position for the information for being related to interactive tag, it is determined that affiliated functional module or interface is Short message interface.
Thus, the short message interface in the page has been obtained.
Further, when detection subpage frame returns to bag and subordinate's subpage frame returns to bag, if including main key in return bag Word, then and then detect whether, also comprising the information for relating to interactive tag, to include major key simultaneously in bag is returned and be related to During the information of interactive tag, short message interface just is included in the page corresponding to judgement, obtains the short message interface in the page.
In the present embodiment, major key is included in bag if returning, according to the interactive tag being pre-configured with, detection returns Whether comprising the information for being related to interactive tag in bag, bag is returned to further detection;It is related to interactive mark if returning and being included in bag The information of label, then judge to return to include short message interface in the page corresponding to bag, obtain the short message interface in the page.The present embodiment leads to Default interactive tag is crossed, the further verification to returning to bag comprising major key is realized, avoids to whether being wrapped in the page Erroneous judgement containing short message interface, improve the accuracy for obtaining short message interface.
Further, reference picture 4, short message interface lookup method fourth embodiment of the present invention provide a kind of short message interface and searched Method, based on the embodiment (the present embodiment is by taking Fig. 1 as an example) shown in above-mentioned Fig. 1 or Fig. 2, the step S30 includes:
If step S33, described return in bag includes major key, described whether return in bag comprising default auxiliary is detected Help keyword;
If step S34, described return in bag includes the alternate key, described return in the page corresponding to bag is judged Comprising short message interface, the short message interface in the page is obtained.
Also include as a kind of embodiment, in keyword database default semantic " to set length/length to be The keyword of 11 " multilingual form, using semantic for " keyword that setting length/length is 11 " is as additional key Word.
After it is determined that including major key in return bag, whether detection return includes alternate key in wrapping.
If return has comprising alternate key in bag, due to returning in bag and including the main pass of types such as " cell-phone numbers " Key word, the alternate key of cell-phone number length setting is also related to, then can extremely determine to include in current page has short message The short message interface of interactive function, now, judge that this is returned in the page corresponding to bag and include short message interface.
Then, according to the position of keyword and alternate key, it is determined that affiliated functional module or interface are short message interface.
Thus, the short message interface in the page has been obtained.
Further, when detection subpage frame returns to bag and subordinate's subpage frame returns to bag, if including main key in return bag Word, then and then detect whether also to include alternate key, when including major key and alternate key simultaneously in returning to bag, Short message interface is included in the page corresponding to just judging, obtains the short message interface in the page.
Preferably, in order to further lift the accuracy rate that short message interface reports, when including major key in returning to bag, Further whether detection is returned comprising the information for being related to interactive tag in bag, and whether detection returns in bag and closed comprising default auxiliary Key word.
If return and major key is included in bag, and comprising the information for being related to interactive tag, and return in bag comprising default Alternate key, then judge to return to include short message interface in the page corresponding to bag, obtain the short message interface in the page.
In the present embodiment, major key is included in bag if returning, detection returns in bag whether include default auxiliary Keyword, further verified to returning to bag;Alternate key is included in bag if returning, judges to return to the page corresponding to bag In include short message interface, obtain the short message interface in the page.The auxiliary that the present embodiment is related to phone number length by combining is closed Key word, the further verification to returning to bag comprising major key is realized, avoided to whether including short message interface in the page Erroneous judgement, improve the accuracy for obtaining short message interface.
Reference picture 5, short message interface of the present invention searches device first embodiment and provides a kind of short message interface lookup device, described Short message interface, which searches device, to be included:
Reptile mould fast 10, for based on the chained address for pointing to tested examining system, crawling the return of the tested examining system Bag.
The present embodiment crawls each page of tested examining system by reptile, detects in each page whether include short message interface, So as to realize that the automation of short message interface in tested examining system is searched, cost of labor is reduced.
Specifically, as a kind of embodiment, first, reptile mould fast 10 is according to the tested examining system of the sensing being pre-configured with Chained address, using crawler technology, crawl the return bag of tested examining system.
Wherein, the URL (Uniform of tested examining system homepage can be directed to by pointing to the chained address of tested examining system Resource Locator, URL) address etc., tested examining system can be linked to, is initially accessed so as to be used as The tested examining system of point incision, capture each content of pages of tested examining system, the detection for short message interface.Tested examining system can To be web station system, software systems etc..
Reptile mould fast 10 captures the return bag that tested examining system returns, returned when crawling the content of pages of tested examining system Return in bag and include every content information of the page, such as picture in the page in the URL of subpage frame, the page, each work(in the page Information of energy module etc..
Searching modul 20, for according to the keyword database being pre-configured with, searching described whether return in bag comprising master Keyword.
It should be noted that various linguistic forms, the semantic master for being related to short message interacting are recorded in keyword database Keyword, for example, mobile phone, cell-phone number, phone number, mobile phone (mobile phone), mobile (phone), mobile ID (identification, identifier) etc..
Then after the return bag of tested examining system is crawled, searching modul 20, which is searched, returns in bag whether include major key Search in every content information of the page and whether include major key.
Do not include any major key that keyword database is recorded in bag if returning, illustrate in the page that currently crawls Not comprising the content for being related to short message interacting, searching modul 20 judges that the current bag that returns does not include major key.
If returning to any one or more major keys recorded comprising keyword database in bag, illustrate currently to crawl The page in comprising the content of short message interacting is related to, searching modul 20 can determine that current return in bag includes major key.Example Such as, return to have in bag and include this major key of mobile in an ID, then can determine that current return in bag includes main key Word.
Acquisition module 30, if including major key for described return in bag, judge page corresponding to the return bag Short message interface is included in face, obtains the short message interface in the page.
Because short message interface is generally required for transmission of the phone number for target progress short message verification code, announcement information etc., Therefore, major key is included in bag if returning, the content for being related to short message interacting is included in the page that can determine currently to crawl, Now, acquisition module 30, which judges to return in the page corresponding to bag, includes short message interface, can carry out the transmission of short message and/or connect Receive, further, may can also carry out reception status report of short message etc..
It is determined that after comprising the page of short message interface, acquisition module 30 is according to the position of the major key found in the page Put, obtain functional module or interface of this keyword belonging in the page, obtain the short message interface in the page.
In the present embodiment, reptile mould fast 10 crawls tested examining system based on the chained address for pointing to tested examining system Bag is returned, includes the complete content information for crawling the page in obtained return bag, ensures the information for detecting short message interface Integrality, avoid failing to report;Then, according to the keyword database being pre-configured with, search described return in bag is searching modul 20 No to include major key, the major key described in keyword database is to be related to the major key of short message interacting, Ke Yiyou Whether effect identifies returns in bag comprising the content for relating to short message interacting;If returning in bag and including major key, namely return Return comprising the content for relating to short message interacting in bag, then the judgement of acquisition module 30 returns connects in the page corresponding to bag comprising short message Mouthful, and the short message interface in this page is obtained, the automation for realizing short message interface is searched.The present embodiment is climbed automatically by reptile The page of tested examining system is taken, whether the return bag for analyzing tested examining system has comprising the major key for being related to short message interacting, nothing The page of tested examining system need to be manually analyzed, the workload of safety test personnel is greatly reduced, saves manpower and materials.
Further, reference picture 5, short message interface of the present invention search device second embodiment and provide a kind of short message interface lookup Device, device first embodiment is searched based on the invention described above short message interface, the reptile mould fast 10 is additionally operable to,
Wrapped according to described return, the subpage frame for crawling the return bag corresponding page returns to bag;
The searching modul 20, it is additionally operable to according to the keyword database being pre-configured with, searches the subpage frame and return to bag In whether include major key;
The acquisition module 30, include major key if being additionally operable to the subpage frame and returning in bag, judge the son Short message interface is included in the page, obtains the short message interface in the subpage frame;
The reptile mould fast 10, it is additionally operable to be returned according to the subpage frame and wraps, crawl subordinate's subpage frame of the subpage frame Return to bag.
In reptile mould fast 10 based on the chained address for pointing to tested examining system, after the return bag for crawling tested examining system, look into Module 20 is looked for search according to the keyword database being pre-configured with and return to whether include major key in bag, detection returns to bag pair Whether short message interface is included in the page answered, meanwhile, reptile mould fast 10 crawls the subpage for returning to bag corresponding page according to bag is returned Face, to return to the page corresponding to bag as point of penetration, and then whether each page for detecting tested examining system includes short message interface, Realize the complete detection to being detected examining system.
Specifically, as a kind of embodiment, reptile mould fast 10 is obtained based on the every content information for returning to the page in bag The chained address of each subpage frame, according to the chained address of each subpage frame, crawl the return bag of each subpage frame.
Then, according to the keyword database being pre-configured with, searching each subpage frame respectively and returning in bag is searching modul 20 It is no to include major key.
If subpage frame, which returns, includes major key in bag, acquisition module 30 judges to connect comprising short message in this subpage frame Mouthful, obtain the short message interface in this subpage frame;If subpage frame returns in bag and do not contain major key, this subpage frame is marked to be free of There is short message interface.
Then, reptile mould fast 10 continues to crawl subordinate's subpage frame of each subpage frame, searched according to the return bag of each subpage frame Module 20 detects whether subordinate's subpage frame includes short message interface, and by that analogy, the pages at different levels for crawling tested examining system are carried out The detection of short message interface.
As a kind of embodiment, reptile mould fast 10 is additionally operable to, if the page corresponding to the return bag does not include subpage frame, Or the subpage frame does not include subordinate's subpage frame, then stop crawling return bag.
If that is, based on the chained address for pointing to tested examining system, the page does not include subpage corresponding to the return bag crawled Face, then fast 10 stopping of reptile mould crawl to being detected the system page;If the page corresponding to returning to bag includes subpage frame, but subpage Face no longer includes subordinate's subpage frame, then reptile mould fast 10 stops crawling to being detected the system page, by that analogy, to being detected Each page of system is crawled to there is no during subordinate's subpage frame, and reptile mould fast 10 just stops to being detected the system page Crawl.
Hereby it is achieved that the complete detection to being detected examining system.
In the present embodiment, reptile mould fast 10 crawls after the return bag of tested examining system is crawled and returns to bag corresponding page Subpage frame return bag;Then, according to the keyword database being pre-configured with, searching subpage frame and returning in bag is searching modul 20 It is no to include major key;If subpage frame, which returns, includes major key in bag, acquisition module 30 is judged in subpage frame comprising short Believe interface, obtain the short message interface in this subpage frame.Also, after obtaining subpage frame and returning to bag, reptile mould fast 10 is according to subpage Face returns to bag, and the subordinate's subpage frame for crawling subpage frame returns to bag, carries out the detection of short message interface, until the page crawled does not include There is stopping page during subordinate's subpage frame to crawl.Thus, the present embodiment can crawl each page return bag of tested examining system, The detection to being detected each page of examining system is realized, avoids failing to report for short message interface.
Further, reference picture 5, short message interface of the present invention search device 3rd embodiment and provide a kind of short message interface lookup Device, device first embodiment is searched based on the invention described above short message interface or second embodiment, the acquisition module 30 are also used In,
If described return includes major key in bag, according to the interactive tag being pre-configured with, described return in bag is detected Whether the information for being related to the interactive tag is included;If described return in bag comprising the information for being related to the interactive tag, sentence Fixed described return in the page corresponding to bag includes short message interface, obtains the short message interface in the page.
After it is determined that including major key in return bag, to avoid reporting short message interface by mistake, then acquisition module 30 is to returning to bag Carry out further analysis verification.
Specifically, as a kind of embodiment, acquisition module 30 is according to the interactive tag being pre-configured with, such as short-message verification Whether code label, SMS notification label etc., detection are returned in bag comprising the information for being related to each interactive tag.Wherein, it is pre-configured with Interactive tag can be the forms such as keyword, core code, be easy to detection return bag.
The interactive tag being pre-configured with can have one or more, be related in return is wrapped any one or more default During interactive tag, acquisition module 30 is that can determine that to have comprising the information for being related to interactive tag in this return bag.If return in bag not Comprising the information for being related to any interactive tag, then this return of the judgement of acquisition module 30, which is wrapped, collects the letter not comprising interactive tag is related to Breath.
If returning has the information comprising interactive tag is related in bag, due to returning in bag and including classes such as " cell-phone numbers " The major key of type, the information of the type interactive tag such as short message verification code, SMS notification is also related to, then can extremely determine to work as The short message interface with short message interacting function is included in the preceding page, now, acquisition module 30 judges that this returns to the page corresponding to bag In include short message interface.
Then, acquisition module 30 is according to keyword and the position for the information for being related to interactive tag, it is determined that affiliated function mould Block or interface are short message interface.
Thus, the short message interface in the page has been obtained.
Further, when detection subpage frame returns to bag and subordinate's subpage frame returns to bag, if including main key in return bag Word, then acquisition module 30 and then detect whether also comprising relating to the information of interactive tag, return wrap in include main pass simultaneously Key word and when being related to the information of interactive tag, acquisition module 30 just judge corresponding to short message interface, the acquisition page are included in the page In short message interface.
In the present embodiment, major key is included in bag if returning, acquisition module 30 is marked according to the interaction being pre-configured with Whether label, detection are returned in bag comprising the information for being related to interactive tag, and bag is returned to further detection;Included if returning in bag It is related to the information of interactive tag, then acquisition module 30, which judges to return, includes short message interface in the page corresponding to bag, obtain in the page Short message interface.The present embodiment realizes the further verification that bag is returned to including major key by default interactive tag, The erroneous judgement to whether including short message interface in the page is avoided, improves the accuracy for obtaining short message interface.
Further, reference picture 5, short message interface of the present invention search device fourth embodiment and provide a kind of short message interface lookup Device, device first embodiment is searched based on the invention described above short message interface or second embodiment, the acquisition module 30 are also used In,
If described return in bag includes major key, detect in the return bag whether include default additional key Word;If described return in bag includes the alternate key, judge that described return in the page corresponding to bag includes short message interface, Obtain the short message interface in the page.
Also include as a kind of embodiment, in keyword database default semantic " to set length/length to be The keyword of 11 " multilingual form, using semantic for " keyword that setting length/length is 11 " is as additional key Word.
After it is determined that including major key in return bag, whether the detection return of acquisition module 30 includes additional key in wrapping Word.
If return has comprising alternate key in bag, due to returning in bag and including the main pass of types such as " cell-phone numbers " Key word, the alternate key of cell-phone number length setting is also related to, then can extremely determine to include in current page has short message The short message interface of interactive function, now, acquisition module 30 judge that this is returned in the page corresponding to bag and include short message interface.
Then, acquisition module 30 is according to the position of keyword and alternate key, it is determined that affiliated functional module or interface For short message interface.
Thus, the short message interface in the page has been obtained.
Further, when detection subpage frame returns to bag and subordinate's subpage frame returns to bag, if including main key in return bag Word, then acquisition module 30 and then detect whether also to include alternate key, return wrap in simultaneously including major key and auxiliary When helping keyword, acquisition module 30 just judge corresponding to short message interface is included in the page, obtain the short message interface in the page.
Preferably, in order to further lift the accuracy rate that short message interface reports, when including major key in returning to bag, Further whether detection is returned comprising the information for being related to interactive tag in bag acquisition module 30, and whether detection is returned in bag comprising pre- If alternate key.
If return and major key is included in bag, and comprising the information for being related to interactive tag, and return in bag comprising default Alternate key, then acquisition module 30, which judges to return, includes short message interface in the page corresponding to bag, the short message obtained in the page connects Mouthful.
In the present embodiment, major key is included in bag if returning, whether the detection of acquisition module 30 returns includes in bag Default alternate key, further verified to returning to bag;If return in bag and include alternate key, acquisition module 30 Judge to return and short message interface is included in the page corresponding to bag, obtain the short message interface in the page.The present embodiment is related to by combining The alternate key of phone number length, the further verification to returning to bag comprising major key is realized, is avoided to the page In whether include the erroneous judgement of short message interface, improve the accuracy for obtaining short message interface.
The alternative embodiment of the present invention is these are only, is not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of short message interface lookup method, it is characterised in that the short message interface lookup method comprises the following steps:
The chained address of examining system is detected based on sensing, crawls the return bag of the tested examining system;
According to the keyword database being pre-configured with, search in the return bag whether include major key;
If described return in bag includes major key, judge that described return in the page corresponding to bag includes short message interface, obtain Take the short message interface in the page.
2. short message interface lookup method as claimed in claim 1, it is characterised in that the short message interface lookup method also wraps Include:
Wrapped according to described return, the subpage frame for crawling the return bag corresponding page returns to bag;
According to the keyword database being pre-configured with, search the subpage frame and return in bag whether include major key;
If the subpage frame, which is returned in bag, includes major key, judge to include short message interface in the subpage frame, obtain institute State the short message interface in subpage frame;
Returned and wrapped according to the subpage frame, the subordinate's subpage frame for crawling the subpage frame returns to bag.
3. short message interface lookup method as claimed in claim 2, it is characterised in that the short message interface lookup method also wraps Include:
If the page corresponding to the return bag does not include subpage frame, or the subpage frame does not include subordinate's subpage frame, then stops climbing Return is taken to wrap.
4. the short message interface lookup method as described in claim 1,2 or 3, it is characterised in that if described return is wrapped in bag Containing major key, then judge that described return in the page corresponding to bag includes short message interface, the short message obtained in the page connects The step of mouth, includes:
If described return in bag include major key, according to the interactive tag being pre-configured with, detect it is described return wrap in whether Include the information for being related to the interactive tag;
If described return in bag comprising the information for being related to the interactive tag, judge that described return includes in the page corresponding to bag Short message interface, obtain the short message interface in the page.
5. the short message interface lookup method as described in claim 1,2 or 3, it is characterised in that if described return is wrapped in bag Containing major key, then judge that described return in the page corresponding to bag includes short message interface, the short message obtained in the page connects The step of mouth, includes:
If described return in bag includes major key, detect in the return bag whether include default alternate key;
If described return in bag includes the alternate key, judge that described return connects in the page corresponding to bag comprising short message Mouthful, obtain the short message interface in the page.
6. a kind of short message interface searches device, it is characterised in that the short message interface, which searches device, to be included:
Reptile mould is fast, for based on the chained address for being detected examining system is pointed to, crawling the return bag of the tested examining system;
Searching modul, for according to the keyword database being pre-configured with, searching in the return bag whether include major key;
Acquisition module, if including major key for described return in bag, judge that described return is wrapped in the page corresponding to bag Containing short message interface, the short message interface in the page is obtained.
7. short message interface as claimed in claim 6 searches device, it is characterised in that the reptile mould is additionally operable to soon,
Wrapped according to described return, the subpage frame for crawling the return bag corresponding page returns to bag;
The searching modul, be additionally operable to according to the keyword database that is pre-configured with, search the subpage frame return in bag whether Include major key;
The acquisition module, include major key if being additionally operable to the subpage frame and returning in bag, judge in the subpage frame Comprising short message interface, the short message interface in the subpage frame is obtained;
The reptile mould is fast, is additionally operable to be returned according to the subpage frame and wraps, the subordinate's subpage frame for crawling the subpage frame returns to bag.
8. short message interface as claimed in claim 7 searches device, it is characterised in that the reptile mould is additionally operable to soon,
If the page corresponding to the return bag does not include subpage frame, or the subpage frame does not include subordinate's subpage frame, then stops climbing Return is taken to wrap.
9. the short message interface as described in claim 6,7 or 8 searches device, it is characterised in that the acquisition module is additionally operable to,
If described return in bag include major key, according to the interactive tag being pre-configured with, detect it is described return wrap in whether Include the information for being related to the interactive tag;If described return in bag comprising the information for being related to the interactive tag, institute is judged State in the page corresponding to return bag and include short message interface, obtain the short message interface in the page.
10. the short message interface as described in claim 6,7 or 8 searches device, it is characterised in that the acquisition module is additionally operable to,
If described return in bag includes major key, detect in the return bag whether include default alternate key;If Described return in bag includes the alternate key, then judges that described return in the page corresponding to bag includes short message interface, obtain Short message interface in the page.
CN201611002251.9A 2016-11-14 2016-11-14 Short message interface searching method and device Active CN107861861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611002251.9A CN107861861B (en) 2016-11-14 2016-11-14 Short message interface searching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611002251.9A CN107861861B (en) 2016-11-14 2016-11-14 Short message interface searching method and device

Publications (2)

Publication Number Publication Date
CN107861861A true CN107861861A (en) 2018-03-30
CN107861861B CN107861861B (en) 2020-11-24

Family

ID=61698936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611002251.9A Active CN107861861B (en) 2016-11-14 2016-11-14 Short message interface searching method and device

Country Status (1)

Country Link
CN (1) CN107861861B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040107177A1 (en) * 2002-06-17 2004-06-03 Covill Bruce Elliott Automated content filter and URL translation for dynamically generated web documents
CN101355587A (en) * 2008-09-17 2009-01-28 杭州华三通信技术有限公司 Method and apparatus for obtaining URL information as well as method and system for implementing searching engine
CN101510195A (en) * 2008-02-15 2009-08-19 刘峰 Website safety protection and test diagnosis system structure method based on crawler technology
CN101635718A (en) * 2009-08-26 2010-01-27 中兴通讯股份有限公司 Network crawler system and method for acquiring resource as well as network resource gripping device
US20120290622A1 (en) * 2011-05-11 2012-11-15 Searchviews LLC Sentiment and factor-based analysis in contextually-relevant user-generated data management
CN103401835A (en) * 2013-07-01 2013-11-20 北京奇虎科技有限公司 Method and device for presenting safety detection results of microblog page
CN103457924A (en) * 2012-06-05 2013-12-18 珠海市君天电子科技有限公司 Method and system for detecting point-to-point and instantaneously-effective phishing website
US20140095521A1 (en) * 2012-10-01 2014-04-03 DISCERN, Inc. Data augmentation
CN103902889A (en) * 2012-12-26 2014-07-02 腾讯科技(深圳)有限公司 Malicious message cloud detection method and server

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040107177A1 (en) * 2002-06-17 2004-06-03 Covill Bruce Elliott Automated content filter and URL translation for dynamically generated web documents
CN101510195A (en) * 2008-02-15 2009-08-19 刘峰 Website safety protection and test diagnosis system structure method based on crawler technology
CN101355587A (en) * 2008-09-17 2009-01-28 杭州华三通信技术有限公司 Method and apparatus for obtaining URL information as well as method and system for implementing searching engine
CN101635718A (en) * 2009-08-26 2010-01-27 中兴通讯股份有限公司 Network crawler system and method for acquiring resource as well as network resource gripping device
US20120290622A1 (en) * 2011-05-11 2012-11-15 Searchviews LLC Sentiment and factor-based analysis in contextually-relevant user-generated data management
CN103457924A (en) * 2012-06-05 2013-12-18 珠海市君天电子科技有限公司 Method and system for detecting point-to-point and instantaneously-effective phishing website
US20140095521A1 (en) * 2012-10-01 2014-04-03 DISCERN, Inc. Data augmentation
CN103902889A (en) * 2012-12-26 2014-07-02 腾讯科技(深圳)有限公司 Malicious message cloud detection method and server
CN103401835A (en) * 2013-07-01 2013-11-20 北京奇虎科技有限公司 Method and device for presenting safety detection results of microblog page

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LIUJINGQIU: ""Fiddler如何抓取接口"", 《HTTPS://BLOG.CSDN.NET/LIUJINGQIU/ARTICLE/DETAILS/52712176》 *

Also Published As

Publication number Publication date
CN107861861B (en) 2020-11-24

Similar Documents

Publication Publication Date Title
CN104767757B (en) Various dimensions safety monitoring method and system based on WEB service
CN102739663A (en) Detection method and scanning engine of web pages
CN106101145A (en) A kind of website vulnerability detection method and device
CN109768992B (en) Webpage malicious scanning processing method and device, terminal device and readable storage medium
CN103297394B (en) Website security detection method and device
CN107948120B (en) Vulnerability detection method and device
CN103442361B (en) Method for detecting safety of mobile application, and mobile terminal
CN106294134A (en) The collapse localization method of code and device
CN105589807B (en) Component capability leakage dynamic testing method and system between a kind of application program
CN105787366A (en) Android software visualization safety analysis method based on module relations
US20130179421A1 (en) System and Method for Collecting URL Information Using Retrieval Service of Social Network Service
CN113518077A (en) Malicious web crawler detection method, device, equipment and storage medium
CN105187632B (en) Method and device for determining mobile phone number
CN108494762A (en) Web access method, device and computer readable storage medium, terminal
CN106569860A (en) Application management method and terminal
CN107145780A (en) Malware detection method and device
CN105868290A (en) Search result presentation method and apparatus
CN104468459B (en) A kind of leak detection method and device
CN110472165A (en) URL extracting method, device, equipment and computer readable storage medium
CN113221032A (en) Link risk detection method, device and storage medium
CN110020161B (en) Data processing method, log processing method and terminal
CN103220277B (en) The monitoring method of cross-site scripting attack, Apparatus and system
CN103336693B (en) The creation method of refer chain, device and security detection equipment
CN104980409A (en) Internet behavior management method and device
CN109740014A (en) Management method, terminal device and the storage medium of screenshot

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant