WO2018149374A1 - 一种页面漏洞的修复方法及装置 - Google Patents
一种页面漏洞的修复方法及装置 Download PDFInfo
- Publication number
- WO2018149374A1 WO2018149374A1 PCT/CN2018/076259 CN2018076259W WO2018149374A1 WO 2018149374 A1 WO2018149374 A1 WO 2018149374A1 CN 2018076259 W CN2018076259 W CN 2018076259W WO 2018149374 A1 WO2018149374 A1 WO 2018149374A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- mobile terminal
- address
- page
- resource
- preset value
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/57—Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F21/577—Assessing vulnerabilities and evaluating computer system security
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1433—Vulnerability analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/972—Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Definitions
- the present application relates to the field of communications, and in particular, to a method and apparatus for repairing a page vulnerability.
- HTML5 HyperText Markup Language
- H5 HyperText Markup Language
- the page application (referred to as web application) is based on the page. Before displaying the page, you need to get some resources for page rendering. If you need to get these resources online before each page is displayed, it will reduce the response speed of the page. Therefore, you can download the required resources to the local of the mobile terminal as a local resource, which can speed up the response of the web application.
- the present invention is directed to providing a method and apparatus for repairing a page vulnerability, which aims to solve the problem of slow response in repairing a page vulnerability in the prior art.
- the present application provides a method for repairing a page vulnerability, and the method includes:
- the mobile terminal reads the local address, the online address, and the preset identifier in the local database, where the local address is the address of the local resource in the page application, the online address is the address of the repair resource on the server, and the repair resource corresponds to the local resource.
- the preset identifier is used to indicate whether the mobile terminal has downloaded the repair resource, and the server sends the first preset value of the online address and the preset identifier to the mobile terminal in advance, and the mobile terminal receives the delivered first After a preset value, the first preset value is written into the local database
- the mobile terminal If it is detected that the assignment of the preset identifier is the first preset value, the mobile terminal reads the corresponding repair resource online by using the online address to render the page.
- the present application provides another method for repairing a page vulnerability, the method comprising:
- the server monitors whether the page vulnerability of the mobile terminal includes a page vulnerability through a preset channel
- the server determines an online address of the repair resource
- the server delivers the online address of the repair resource to the mobile terminal
- the server monitors whether the mobile terminal downloads the repair resource through the channel, and the mobile terminal reads the corresponding repair resource online through the online address after the repair resource is not downloaded, to render the page.
- the present application implements a jump of a page vulnerability to a repair resource. Since the jump is to download the repair resource, the access to the page can be realized without waiting for the download and repair resource to be completed. Therefore, when a page vulnerability occurs.
- the local application does not store the repair resource.
- the web application can jump to the online resource to download the repair resource. You can directly render the page through the online resource to ensure the normal use of the web application.
- 1 is a schematic diagram of a page vulnerability repairing system provided by an embodiment of the present application
- 2 is a flowchart of a method for repairing a page vulnerability according to an embodiment of the present application
- FIG. 3 is a flowchart of another method for repairing a page vulnerability according to an embodiment of the present application.
- FIG. 4 is a structural block diagram of a device for repairing a page vulnerability according to an embodiment of the present application
- FIG. 5 is a structural block diagram of another apparatus for repairing a page vulnerability according to an embodiment of the present application.
- FIG. 1 is a schematic diagram of a page vulnerability repairing system provided by an embodiment of the present application.
- the system includes a server 110 and a mobile terminal 120.
- the following describes the page vulnerability from the perspectives of the server 110 and the mobile terminal 120, respectively. Repair method.
- FIG. 2 is a flowchart of a method for repairing a page vulnerability according to an embodiment of the present disclosure.
- the method may be a mobile terminal. As shown in FIG. 2, the method includes step S210 and step S220.
- Step S210 The mobile terminal reads a local address, an online address, and a preset identifier in the local database, where the local address is an address of a local resource in the page application, and the online address is an address of the repair resource on the server, and the resource is repaired.
- the preset identifier is used to indicate whether the mobile terminal has downloaded the repair resource, and the server pre-sends the first preset value of the online address and the preset identifier to the mobile terminal, and the mobile terminal receives the After the first preset value is sent, the first preset value is written into the local database.
- the local resource is stored in the local address of the mobile terminal, and there is a page vulnerability in the local resource.
- the server may provide an online address for repairing the resource, and the mobile terminal downloads the local address to fix the page vulnerability.
- the flag can indicate whether the mobile terminal downloads the repair resource to the local.
- a page vulnerability may cause a display or function error of a web application.
- the web application needs to be checked.
- the page vulnerability may be automatically detected by a server or a web application, or may be manually detected. After identifying the page vulnerability, you can record the page location and file location of the page vulnerability, and provide repair resources. Before the web application renders the page, the repair resource is downloaded to the mobile terminal, and the repair resource is used to replace the page vulnerability, so as to avoid errors.
- the mobile terminal may write a first preset value of the preset identifier in the local database, a channel is set between the server and the mobile terminal, and the server monitors the mobile terminal through the channel. If the server monitors the page application to include a page vulnerability, the online address of the repair file and the first preset value of the preset identifier are sent.
- a long connection is established between the server and the mobile terminal through a proprietary channel, through the underlying code of the operating system
- the server can know the usage of the page application in the mobile terminal, such as whether a page vulnerability occurs, and whether the page vulnerability has been fixed.
- the mobile terminal can read the preset identifier in the local database; if the assignment of the preset identifier is the first preset value, the mobile terminal determines that the page vulnerability is not fixed, if the assignment of the preset identifier is the second The default value, the mobile terminal determines that the page vulnerability has been fixed.
- the preset identifier is used to indicate the repair status.
- the first preset value is set to 1
- the second preset value is set to 0, that is, when the preset identifier is 1 ⁇ , the page is indicated.
- the vulnerability is not fixed; when the default identifier is 0, it indicates that the page vulnerability has been fixed.
- the local database includes a relative address of the local resource corresponding to the page vulnerability, an online address of the repair resource in the server, and a preset identifier, and the web application reads the database before viewing each page. Whether there is a page vulnerability on this page. If it exists, the preset identifier of the page is further obtained. If the page vulnerability is fixed, the access is directly based on the local resource address; if not, the address of the repair resource in the server is obtained.
- the local resources can be stored in:
- file ⁇ / data / user / 0 / $ ⁇ appPackageName ⁇ / files / cache_dir / h5Js folder below.
- the relative address is a resource address in the folder.
- the relative address of a page in the local resource is home/page/index.html
- the local address corresponding to the local address may be:
- the structure of the local database can be as follows: []
- modifying the version refers to modifying the version number corresponding to the page.
- the modification instructions are a description of the modifications to the page vulnerability.
- the value of the identifier is 1 and the table is unmodified. A value of 0 indicates that it has been modified.
- the corresponding repair resource may also be downloaded through the online address.
- the repair resource can be read directly from the local next time.
- the speed of reading the repair resource from the local is generally higher than the speed of reading the repair resource from the server.
- the preset identifier is sent by the server to the mobile terminal, and then written by the mobile terminal to the local database. Further, after the mobile terminal downloads the corresponding repair resource through the online address, the assignment of the preset identifier can be modified. Specifically, the mobile terminal may write a second preset value of the preset identifier in the local database, and if the server detects that the mobile terminal has downloaded the repair resource, the second preset value of the preset identifier is delivered, and the mobile terminal After receiving the delivered second preset value, the second preset value is written into the local database.
- the assignment of the preset identifier is modified. Then, before the page is loaded next time, the page can be determined according to the assignment of the preset identifier, so that the local resource can be directly accessed.
- the web application After loading the home/page/index.html page, the web application first queries the local database. If there is a corresponding record in the database that needs to be repaired, the path of the read data is replaced by a relative address. The online address is translated into a corresponding interface, and the online address content is downloaded to the local device. After the download is completed, the assignment of the preset identifier in the local database is modified. [0045] S220. If it is detected that the assignment of the preset identifier is the first preset value, the mobile terminal reads the corresponding repair resource online by using the online address to render the page.
- the repair resource on the server can be read online, and the repaired resource can correctly render the page, thereby ensuring correct display of the web application.
- the embodiment of the present application implements a jump of a page vulnerability to a repair resource. Since the jump is to download the repair resource, the access to the page can be realized without waiting for the download and decompression to be completed. Therefore, when When a page vulnerability occurs and the repair resource is not stored locally, the web application can jump the access path to the online resource to download the repair resource. The page can be directly rendered through the online resource to ensure the normal use of the web application.
- the method for implementing the jump is to determine a correspondence between a page vulnerability and a repair resource, and select an online or local resource according to a preset indicator in the database, and the jump mode does not need to modify the original page.
- the character in the vulnerability is to determine a correspondence between a page vulnerability and a repair resource, and select an online or local resource according to a preset indicator in the database, and the jump mode does not need to modify the original page.
- the local jump of the local resource to the repair resource of the page vulnerability is performed after the repair resource is downloaded in the prior art.
- the embodiment of the present application may jump between the local file and the online file.
- the embodiment of the present application provides a repair resource for online access and a repair resource for downloading to the local, so that the web application is not restarted after downloading the repair resource, thereby reducing the waiting time.
- the web application will also download the repair resources to the local, so that the next time the web application is launched, the local resources can be directly used instead of accessing the online resources on the server through the network, thereby further speeding up the access.
- the embodiment of the present application can enable the web application to download the repair resource while accessing the online read repair resource.
- One of the reasons why the prior art does not provide online resources is that if all the resources access the online resources, the amount of data is too large, which affects the response speed of the web application.
- the embodiment of the present application has Other resources can be accessed directly locally, so there is less reliance on online resources.
- the reason that other resources can be directly accessed locally is that a mapping relationship between the page vulnerability and the repair resource is established, so that the local resource can be accessed mainly, and An unrepaired page vulnerability exists in the local resource, and a jump is made to access the online repair resource in the server, thereby avoiding page vulnerabilities and Maximum guaranteed response speed.
- FIG. 3 is a flowchart of another method for repairing a page vulnerability according to an embodiment of the present application.
- the execution body of the method may be a server. As shown in FIG. 3, the method includes steps 8310 to 8355.
- Step S310 The server monitors, by using a preset channel, whether a page fault of the mobile terminal is included in the page application.
- the server and the mobile terminal establish a long connection through a proprietary channel, and through the underlying code of the operating system, if the underlying code of the Android system, the server can know the usage of the page application in the mobile terminal, for example, whether a page vulnerability occurs, and Whether the page vulnerability has been fixed, etc.
- Step S320 If a page vulnerability is detected in the page application, the repair resource corresponding to the page fault of the page application is obtained to fix the page vulnerability.
- the repair resource may be manually uploaded by the bursting personnel or the repair system is automatically generated by a certain method. After the recovery resource is generated, the issuer or the repair system uploads the repair resource to the server.
- whether the page vulnerability is repaired may be indicated by a preset identifier, specifically;
- the server sends the first preset value to the mobile terminal, and the mobile terminal writes the first preset value in the local database, and reads the repair resource online through the online address.
- the local address of the repair resource is obtained, and the local address and the second preset value are sent to the mobile terminal, and the mobile terminal writes the local address and the second in the local database.
- the default value, and the repair resource is read by the local address.
- the server may send the preset identifier to the mobile terminal, where the mobile terminal writes the first preset value of the preset identifier in the local database, and after downloading the repair resource to the local, modifying the preset identifier Assigned to the second preset value.
- the server writes the preset value of the preset identifier to the local database. If the mobile terminal downloads the repair resource, the assignment of the preset identifier is modified, and then the next time the page is loaded, the preset identifier is viewed. Assignment, you can see if the page vulnerability is fixed, so you can determine whether to read the resources in the local database or read the resources on the server.
- Step S330 the server determines the online address of the repair resource.
- the server may read the location where the repair resource is stored, that is, the online address.
- Step S340 The server delivers the online address of the repair resource to the mobile terminal.
- the mobile terminal After the server sends the online address to the mobile terminal, the mobile terminal writes the online address to the local data.
- the library the next time the page application is run, the mobile terminal can read the online address from the local database.
- Step S350 The server monitors whether the mobile terminal downloads the repair resource through the channel, and the mobile terminal reads the corresponding repair resource online by using the online address without downloading the repair resource to render the page.
- the corresponding repair resource may also be downloaded through an online address. After downloading to the local, the repair resource can be read directly from the local next time. The speed of reading the repair resource from the local is generally higher than the speed of reading the repair resource from the server.
- the online address is written to the local database on the mobile terminal by using a communication mechanism with the mobile terminal, and the mobile terminal can read and download the repair resource according to the online address, and the embodiment of the present application can be provided for
- the repair resource read online can be used to download to the local repair resource, and the repair resource read online can be an executable file, and the repair resource for download can be in the form of a compressed package.
- the embodiment of the present application implements a jump of a page vulnerability to a repair resource. Since the jump is to download the repair resource, the access to the page can be realized without waiting for the download and repair resource to be completed. Therefore, when the page appears Vulnerabilities and local storage resources are not stored.
- the web application can jump to the online resources to download the repair resources. You can directly render the page through online resources to ensure the normal use of the web application.
- FIG. 4 is a structural block diagram of a device for repairing a page vulnerability according to an embodiment of the present disclosure.
- the device may be used to perform a method for repairing a page vulnerability in the embodiment shown in FIG. 2, as shown in FIG.
- the device includes a read module 410 and a rendering module 420.
- the reading module 410 is configured to read a local address, an online address, and a preset identifier in the local database, where the local address is an address of a local resource in the page application, and the online address is an address of the repair resource on the server, and the repair is performed.
- the resource corresponds to a page vulnerability in the local resource
- the preset identifier is used to indicate whether the mobile terminal has downloaded the repair resource, and the server pre-sends the first preset value of the online address and the preset identifier to the mobile terminal, and the mobile terminal receives the After the first preset value is issued, the first preset value is written into the local database.
- the rendering module 420 is configured to detect that the assignment of the preset identifier is the first preset value, by using an online address.
- the device further includes: a downloading module, configured to download the corresponding repair resource by using an online address.
- a downloading module configured to download the corresponding repair resource by using an online address.
- the device further includes: a first writing module, configured to write a preset identifier in the local database The first preset value, a channel is set between the server and the mobile terminal, and the server monitors the mobile terminal through the channel. If the server monitors the page application including a page vulnerability, the online address of the repair file and the preset identifier are delivered. a preset value; a second write module, configured to write a second preset value of the preset identifier in the local database, and if the server detects that the mobile terminal has downloaded the repair resource, the second identifier is sent After the preset value is received, the mobile terminal writes the second preset value into the local database after receiving the second preset value that is delivered.
- a first writing module configured to write a preset identifier in the local database The first preset value, a channel is set between the server and the mobile terminal, and the server monitors the mobile terminal through the channel. If the server monitors the page application including a page vulnerability, the online address of the repair file and the preset
- the embodiment of the present application implements a jump of a page vulnerability to a repair resource. Since the jump is to download the repair resource, the access to the page can be realized without waiting for the download and repair resource to be completed. Therefore, when the page appears Vulnerabilities and local storage resources are not stored.
- the web application can jump to the online resources to download the repair resources. You can directly render the page through online resources to ensure the normal use of the web application.
- FIG. 5 is a structural block diagram of another apparatus for repairing a page vulnerability according to an embodiment of the present disclosure.
- the apparatus may be used to perform a method for repairing a page vulnerability in the embodiment shown in FIG. 3, as shown in FIG.
- the device includes a monitoring module 510, an obtaining module 520, a determining module 530, a first sending module 540, and a rendering module 550.
- the monitoring module 510 is configured to monitor, by using a preset channel, whether a page vulnerability of the mobile terminal is included in the page application.
- the obtaining module 520 is configured to include a page vulnerability in the snooped page application, and obtain a repair resource corresponding to the page vulnerability to fix the page vulnerability.
- the determining module 530 is configured to determine an online address of the repair resource.
- the first sending module 540 is configured to send the online address of the repair resource to the mobile terminal.
- the rendering module 550 is configured to monitor whether the mobile terminal downloads the repair resource by using the channel, and the mobile terminal reads the corresponding repair resource online by using the online address to download the page after the repair resource is not downloaded.
- the device further includes: a second sending module, configured to send the first preset value to the mobile terminal, where the mobile terminal writes the first preset value in the local database, and passes the online address
- the third sending module is configured to: after detecting that the mobile terminal has downloaded the repairing resource, obtain the local address of the repairing resource, and send the local address and the second preset value to the mobile terminal, the mobile terminal The local address and the second preset value are written in the local database, and the repair resource is read through the local address.
- the embodiment of the present application implements a jump of a page vulnerability to a repair resource, because the jump is a download and repair Before the source, the access to the page can be realized without waiting for the download and repair resources to be completed. Therefore, when a page vulnerability occurs and the repair resource is not stored locally, the web application can jump the access path to the online resource to implement the download repair. The peers of the resource can directly render the page through online resources, thus ensuring the normal use of the web application.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Computing Systems (AREA)
- Environmental & Geological Engineering (AREA)
- Information Transfer Between Computers (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
一种页面漏洞的修复方法及装置,该方法包括:移动终端读取本地数据库中的本地地址、在线地址和预设标识符,其中,本地地址是页面应用中本地资源的地址,在线地址是服务器上修复资源的地址,修复资源对应本地资源中的页面漏洞,预设标识符用于指示移动终端是否已经下载修复资源,服务器预先向移动终端下发在线地址和预设标识符的第一预设值,移动终端在接收到下发的第一预设值之后,将第一预设值写入本地数据库中 (S210);若检测到预设标识符的赋值是第一预设值,则移动终端通过在线地址,在线读取对应的修复资源,以渲染页面(S220)。当出现页面漏洞而本地没有存储修复资源时,web应用可以跳转到在线资源,从而保证web应用的正常使用。
Description
一种页面漏洞的修复方法及装置
[0001] 本申请申明享有 2017年 2月 16日递交的申请号为 201710083516.0、 名称为 "一种 页面漏洞的修复方法及装置 "中国专利申请的优先权, 该中国专利申请的整体内 容以参考的方式结合在本申请中。
技术领域
[0002] 本申请涉及通信领域, 特别是涉及一种页面漏洞的修复方法及装置。
背景技术
[0003] 基于第 5次修改后的超级文本标记语言 (HyperText Markup
Language, 简称为 HTML5或 H5) 幵发的页面应用程序 (简称为 web应用) , 是 建立在页面的基础上的。 展示页面之前, 需要获取一些资源进行页面渲染。 如 果每次展示页面前都需要在线获取这些资源, 会降低页面的响应速度, 因此, 可以将所需资源下载到移动终端的本地, 作为本地资源, 这样可以加快 web应用 的响应速度。
[0004] 现有技术中, 如果发现本地资源中出现页面漏洞 (bug) , 软件幵发方会限制 w eb应用的使用, 只有在客户端下载了补丁压缩包之后, 解压并用补丁压缩包中的 修复资源替换掉页面漏洞后, web应用才能正常启动, 软件幵发方往往不会单独 为一个页面漏洞幵发补丁压缩包, 所以一个补丁压缩包中一般包括多个 bug的修 复资源, 因此, 下载补丁压缩包通常需要用户等待较长吋间。
[0005] 针对现有技术中修复页面漏洞需先下载和解压体积较大的补丁压缩包, 才能启 动 web应用, 因此修复页面漏洞吋响应较慢的问题, 目前业界没有理想的解决方 式。
技术问题
[0006] 本申请目的在于提供一种页面漏洞的修复方法及装置, 旨在解决现有技术中修 复页面漏洞吋响应较慢的问题。
问题的解决方案
技术解决方案
[0007] 本申请提供了一种页面漏洞的修复方法, 该方法包括:
[0008] 移动终端读取本地数据库中的本地地址、 在线地址和预设标识符, 其中, 本地 地址是页面应用中本地资源的地址, 在线地址是服务器上修复资源的地址, 修 复资源对应本地资源中的页面漏洞, 预设标识符用于指示移动终端是否已经下 载修复资源, 服务器预先向移动终端下发在线地址和预设标识符的第一预设值 , 移动终端在接收到下发的第一预设值之后, 将第一预设值写入本地数据库中
[0009] 若检测到预设标识符的赋值是第一预设值, 则移动终端通过在线地址, 在线读 取对应的修复资源, 以渲染页面。
[0010] 本申请提供了另一种页面漏洞的修复方法, 该方法包括:
[0011] 服务器通过预设的信道监听移动终端的页面应用中是否包括页面漏洞;
[0012] 若监听到页面应用中包括页面漏洞, 则获取页面漏洞对应的修复资源, 以修复 页面漏洞;
[0013] 服务器确定修复资源的在线地址;
[0014] 服务器将修复资源的在线地址下发至移动终端;
[0015] 服务器通过信道监听移动终端是否下载修复资源, 移动终端在未下载修复资源 吋, 通过在线地址, 在线读取对应的修复资源, 以渲染页面
发明的有益效果
有益效果
[0016] 本申请实现了页面漏洞到修复资源的跳转, 由于跳转吋机是下载修复资源前, 所以无需等待完成下载修复资源, 即可实现对页面的访问, 因此, 当出现页面 漏洞而本地没有存储修复资源吋, web应用可以将访问路径跳转到在线资源中, 以实现下载修复资源的同吋, 可以直接通过在线资源, 渲染页面, 从而保证 web 应用的正常使用。
对附图的简要说明
附图说明
[0017] 图 1是本申请实施例提供的页面漏洞的修复系统的示意图;
[0018] 图 2是本申请实施例提供的页面漏洞的修复方法的流程图;
[0019] 图 3是本申请实施例提供的另一种页面漏洞的修复方法的流程图;
[0020] 图 4是本申请实施例提供的一种页面漏洞的修复装置的结构框图;
[0021] 图 5是本申请实施例提供的另一种页面漏洞的修复装置的结构框图。
本发明的实施方式
[0022] 为了使本申请要解决的技术问题、 技术方案及有益效果更加清楚明白, 以下结 合附图及实施例, 对本申请进行进一步详细说明。 应当理解, 此处所描述的具 体实施例仅仅用以解释本申请, 并不用于限定本申请。
[0023] 图 1是本申请实施例提供的页面漏洞的修复系统的示意图, 如图 1所示, 该系统 包括服务器 110和移动终端 120, 下面分别从服务器 110和移动终端 120的角度描 述页面漏洞的修复方法。
[0024] 图 2是本申请实施例提供的一种页面漏洞的修复方法的流程图, 该方法的执行 主体可以是移动终端, 如图 2所示, 该方法包括步骤 S210和步骤 S220。
[0025] 步骤 S210, 移动终端读取本地数据库中的本地地址、 在线地址和预设标识符, 其中, 本地地址是页面应用中本地资源的地址, 在线地址是服务器上修复资源 的地址, 修复资源对应本地资源中的页面漏洞, 预设标识符用于指示移动终端 是否已经下载修复资源, 服务器预先向移动终端下发在线地址和预设标识符的 第一预设值, 移动终端在接收到下发的第一预设值之后, 将第一预设值写入本 地数据库中。
[0026] 移动终端的本地地址中存储了本地资源, 本地资源中有吋会存在页面漏洞, 此 吋服务器会提供修复资源的在线地址, 供移动终端下载到本地, 以修复页面漏 洞, 预设标识符可以指示移动终端是否将修复资源下载至本地。
[0027] 页面漏洞会导致 web应用的显示或功能出现错误, 为了更好的用户体验, 需要 对 web应用进行检査, 页面漏洞可以是服务器或 web应用自动检测出来, 也可以 是人工检测出来的, 在找出页面漏洞后, 可以记录页面漏洞的页面位置和文件 位置等, 并及吋提供修复资源。 web应用在渲染页面前, 将修复资源下载至移动 终端, 使用修复资源替代页面漏洞, 从而避免出现错误。
[0028] 作为一种优选方式, 在本步骤之前, 移动终端可以在本地数据库中写入预设标 识符的第一预设值, 服务器与移动终端之间设有信道, 服务器通过信道监听移 动终端, 若服务器监听到页面应用中包括页面漏洞, 则下发修复文件的在线地 址以及预设标识符的第一预设值。
[0029] 服务器与移动终端之间通过专有的信道建立长连接, 通过操作系统底层的代码
, 如果安卓系统底层代码, 服务器可以获知移动终端中页面应用的使用情况, 例如是否出现页面漏洞, 以及页面漏洞是否已经修复等。
[0030] 移动终端可以读取本地数据库中的预设标识符; 若预设标识符的赋值是第一预 设值, 则移动终端确定页面漏洞未修复, 若预设标识符的赋值是第二预设值, 则移动终端确定页面漏洞已修复。
[0031] 预设标识符用于表示修复状态, 本申请实施例可以将第一预设值设为 1, 第二 预设值设为 0, 即, 当预设标识符为 1吋, 表示页面漏洞未修复; 当预设标识符 为 0吋, 表示页面漏洞已修复。
[0032] 修复资源与页面漏洞之间存在对应关系, 在页面还未修复之前, 当需要读取页 面漏洞所涉及的数据吋, 会跳转到修复资源中, 从而避免错误。
[0033] 具体地, 本地数据库中包括页面漏洞对应的本地资源的相对地址、 服务器中修 复资源的在线地址以及预设标识符, web应用在加载每个页面前, 会先读取数据 库, 査看该页面是否存在页面漏洞。 如果存在, 则进一步获得该页面的预设标 识符, 如果页面漏洞为已修复, 则直接根据本地资源地址进行访问; 如果未修 复, 则获取服务器中修复资源的地址。
[0034] 在一个优选示例中, 可以将本地资源的存放在:
[0035] file:〃/data/user/0/${appPackageName}/files/cache_dir/h5Js文件夹下面。
[0036] 相对地址是该文件夹下的资源地址, 例如本地资源中的一个页面的相对地址为 home/page/index.html, 那么存放在本地对应的本地地址可以为:
[0037] file:///data/user/0/${appPackageName}/files/cache_dir/h5js/home/page/index.html [0038] 如果 web应用的相对地址 home/page/index.html中出现了页面漏洞, 那么在使用 的过程中会收到服务器的修复信息, 信息内容可以会存放在本地数据库中。
[0039] 本地数据库的结构可以如下:
[]
[] [表 i]
[0040] 其中, 修改版本是指修改页面对应的版本号。 修改说明是对页面漏洞的修改说 明。 标识符的值为 1表未修改, 为 0表示已修改。
[0041] 优选地, 在移动终端获取修复资源的在线地址之后, 还可以通过在线地址下载 对应的修复资源。 下载到本地后, 下次可以直接从本地读取该修复资源, 从本 地读取修复资源速度一般会明显高于从服务器读取修复资源的速度。
[0042] 预设标识符是服务器下发给移动终端, 然后由移动终端写入本地数据库的, 进 一步地, 在移动终端通过在线地址下载对应的修复资源之后, 可以修改预设标 识符的赋值。 具体地, 移动终端可以在本地数据库中写入预设标识符的第二预 设值, 若服务器监听到移动终端已下载修复资源, 则下发预设标识符的第二预 设值, 移动终端在接收到下发的第二预设值之后, 将第二预设值写入本地数据 库中。
[0043] 在下载完毕之后, 对预设标识符的赋值进行修改, 那么下次加载该页面前, 根 据预设标识符的赋值可以确定该页面已修复, 因此可以直接访问本地资源。
[0044] 例如, web应用在加载 home/page/index.html页面吋, 会先去査询下本地数据库 , 如果数据库中存在对应一条需要修复的记录, 则将读取数据的路径有相对地 址替换成在线地址, 并渲染成相应的界面, 同吋下载在线地址内容到本地, 下 载完成后修改本地数据库中预设标识符的赋值。
[0045] S220, 若检测到预设标识符的赋值是第一预设值, 则移动终端通过在线地址, 在线读取对应的修复资源, 以渲染页面。
[0046] 通过从步骤 S210中得到的修复资源的在线地址, 可以对服务器上的修复资源进 行在线读取, 通过该修复资源, 可以对页面进行正确地渲染, 从而确保 web应用 的正确显示。
[0047] 本申请实施例实现了页面漏洞到修复资源的跳转, 由于跳转吋机是下载修复资 源前, 所以无需等待完成下载和解压修复资源, 即可实现对页面的访问, 因此 , 当出现页面漏洞而本地没有存储修复资源吋, web应用可以将访问路径跳转到 在线资源中, 以实现下载修复资源的同吋, 可以直接通过在线资源, 渲染页面 , 从而保证 web应用的正常使用。
[0048] 具体地, 本方案实现跳转的方式是确定页面漏洞与修复资源之间的对应关系, 并根据数据库中的预设指示符, 选择在线或本地资源, 该跳转方式不用修改原 页面漏洞中的字符。
[0049] 且相比于现有技术下载修复资源后, 进行页面漏洞所涉本地资源到修复资源的 本地跳转, 本申请实施例可以在本地文件和在线文件之间的跳转。
[0050] 进一步地, 本申请实施例提供用于在线访问的修复资源和用于下载到本地的修 复资源, 因此不用等下载完修复资源再启动 web应用, 减少了等待的吋间。 同吋 , web应用也会将修复资源下载到本地, 以使下次启动 web应用吋, 可以直接使 用本地资源, 以取代通过网络访问服务器上的在线资源的方式, 进一步加快了 访问速度。
[0051] 综上, 本申请实施例可以让 web应用一边访问在线读取修复资源, 一边下载该 修复资源。 现有技术没有提供在线资源的原因之一在于, 如果所有的资源全部 访问在线资源, 则数据量太多, 影响 web应用的响应速度, 本申请实施例中除了 页面漏洞所涉的本地资源以外, 其他资源都可以直接在本地访问, 因此对在线 资源的依赖较小。 本申请实施例中, 除了页面漏洞所涉本地资源以外, 其他资 源都能够直接在本地访问的原因是在页面漏洞和修复资源之间建立了对应关系 , 因此能够以访问本地资源为主, 并在本地资源中存在未修复的页面漏洞吋进 行跳转, 从而访问服务器中的在线的修复资源, 因此既能避幵页面漏洞, 又能
最大程度的保证响应速度。
[0052] 图 3是本申请实施例提供的另一种页面漏洞的修复方法的流程图, 该方法的执 行主体可以是服务器, 如图 3所示, 该方法包括步骤 8310至步骤8350。
[0053] 步骤 S310, 服务器通过预设的信道监听移动终端的页面应用中是否包括页面漏 洞。
[0054] 服务器与移动终端之间通过专有的信道建立长连接, 通过操作系统底层的代码 , 如果安卓系统底层代码, 服务器可以获知移动终端中页面应用的使用情况, 例如是否出现页面漏洞, 以及页面漏洞是否已经修复等。
[0055] 步骤 S320, 若监听到页面应用中包括页面漏洞, 则获取页面应用程序的页面漏 洞对应的修复资源, 以修复页面漏洞。
[0056] 修复资源可以是幵发人员人工上传的或修复系统通过一定方式自动生成的。 生 成修复资源后, 幵发人员或修复系统会将该修复资源上传至服务器。
[0057] 优选地, 可以通过预设标识符指示页面漏洞是否修复, 具体地;
[0058] 服务器将第一预设值下发至移动终端, 移动终端在本地数据库中写入第一预设 值, 并通过在线地址, 在线读取修复资源。
[0059] 若检测到移动终端已下载修复资源, 则获取修复资源的本地地址, 并将本地地 址和第二预设值下发至移动终端, 移动终端在本地数据库中写入本地地址和第 二预设值, 并通过本地地址读取修复资源。
[0060] 服务器可以将预设标识符下发至移动终端, 移动终端在本地数据库中写入预设 标识符的第一预设值, 并在下载修复资源至本地之后, 修改预设标识符的赋值 为第二预设值。 服务器将预设标识符的预设值写入本地数据库, 如果移动终端 下载了修复资源, 则对预设标识符的赋值进行修改, 那么下次加载该页面以前 , 通过査看预设标识符的赋值, 即可了解页面漏洞是否修复, 从而可以确定是 读取本地数据库中的资源还是读取服务器上的资源。
[0061] 步骤 S330, 服务器确定修复资源的在线地址。
[0062] 服务器在获取修复资源后, 可以读取存储该修复资源的位置, 即在线地址。
[0063] 步骤 S340, 服务器将修复资源的在线地址下发至移动终端。
[0064] 服务器将在线地址下发给移动终端之后, 移动终端将该在线地址写入本地数据
库, 下次运行页面应用吋, 移动终端可以从本地数据库中读取该在线地址。
[0065] 步骤 S350, 服务器通过信道监听移动终端是否下载修复资源, 移动终端在未下 载修复资源吋, 通过在线地址, 在线读取对应的修复资源, 以渲染页面。
[0066] 优选地, 还可以通过在线地址, 下载对应的修复资源。 下载到本地后, 下次可 以直接从本地读取该修复资源, 从本地读取修复资源速度一般会明显高于从服 务器读取修复资源的速度。
[0067] 通过与移动终端之间的通信机制, 将在线地址写到移动终端上的本地数据库中 , 移动终端可以根据该在线地址读取和下载修复资源, 本申请实施例可以同吋 提供用于在线读取的修复资源可用于下载至本地的修复资源, 在线读取的修复 资源可以是可执行文件, 供下载的修复资源可以是压缩包形式。
[0068] 本申请实施例实现了页面漏洞到修复资源的跳转, 由于跳转吋机是下载修复资 源前, 所以无需等待完成下载修复资源, 即可实现对页面的访问, 因此, 当出 现页面漏洞而本地没有存储修复资源吋, web应用可以将访问路径跳转到在线资 源中, 以实现下载修复资源的同吋, 可以直接通过在线资源, 渲染页面, 从而 保证 web应用的正常使用。
[0069] 图 4是本申请实施例提供的一种页面漏洞的修复装置的结构框图, 该装置可以 用来执行图 2所示实施例中的页面漏洞的修复方法, 如图 4所示, 该装置包括读 取模块 410和渲染模块 420。
[0070] 读取模块 410用于读取本地数据库中的本地地址、 在线地址和预设标识符, 其 中, 本地地址是页面应用中本地资源的地址, 在线地址是服务器上修复资源的 地址, 修复资源对应本地资源中的页面漏洞, 预设标识符用于指示移动终端是 否已经下载修复资源, 服务器预先向移动终端下发在线地址和预设标识符的第 一预设值, 移动终端在接收到下发的第一预设值之后, 将第一预设值写入本地 数据库中。
[0071] 渲染模块 420用于在检测到预设标识符的赋值是第一预设值吋, 通过在线地址
, 在线读取对应的修复资源, 以渲染页面。
[0072] 优选地, 该装置还包括: 下载模块, 用于通过在线地址下载对应的修复资源。
[0073] 优选地, 该装置还包括: 第一写入模块, 用于在本地数据库中写入预设标识符
的第一预设值, 服务器与移动终端之间设有信道, 服务器通过信道监听移动终 端, 若服务器监听到页面应用中包括页面漏洞, 则下发修复文件的在线地址以 及预设标识符的第一预设值; 第二写入模块, 用于在本地数据库中写入预设标 识符的第二预设值, 若服务器监听到移动终端已下载修复资源, 则下发预设标 识符的第二预设值, 移动终端在接收到下发的第二预设值之后, 将第二预设值 写入本地数据库中。
[0074] 本申请实施例实现了页面漏洞到修复资源的跳转, 由于跳转吋机是下载修复资 源前, 所以无需等待完成下载修复资源, 即可实现对页面的访问, 因此, 当出 现页面漏洞而本地没有存储修复资源吋, web应用可以将访问路径跳转到在线资 源中, 以实现下载修复资源的同吋, 可以直接通过在线资源, 渲染页面, 从而 保证 web应用的正常使用。
[0075] 图 5是本申请实施例提供的另一种页面漏洞的修复装置的结构框图, 该装置可 以用来执行图 3所示实施例中的页面漏洞的修复方法, 如图 5所示, 该装置包括 监听模块 510、 获取模块 520、 确定模块 530、 第一下发模块 540和渲染模块 550。
[0076] 监听模块 510用于通过预设的信道监听移动终端的页面应用中是否包括页面漏 洞。
[0077] 获取模块 520用于在监听到页面应用中包括页面漏洞吋, 获取页面漏洞对应的 修复资源, 以修复页面漏洞。
[0078] 确定模块 530用于确定修复资源的在线地址。
[0079] 第一下发模块 540用于将修复资源的在线地址下发至移动终端。
[0080] 渲染模块 550用于通过信道监听移动终端是否下载修复资源, 移动终端在未下 载修复资源吋, 通过在线地址, 在线读取对应的修复资源, 以渲染页面。
[0081] 优选地, 该装置还包括: 第二下发模块, 用于将第一预设值下发至移动终端, 移动终端在本地数据库中写入第一预设值, 并通过在线地址, 在线读取修复资 源; 第三下发模块, 用于在检测到移动终端已下载修复资源吋, 获取修复资源 的本地地址, 并将本地地址和第二预设值下发至移动终端, 移动终端在本地数 据库中写入本地地址和第二预设值, 并通过本地地址读取修复资源。
[0082] 本申请实施例实现了页面漏洞到修复资源的跳转, 由于跳转吋机是下载修复资
源前, 所以无需等待完成下载修复资源, 即可实现对页面的访问, 因此, 当出 现页面漏洞而本地没有存储修复资源吋, web应用可以将访问路径跳转到在线资 源中, 以实现下载修复资源的同吋, 可以直接通过在线资源, 渲染页面, 从而 保证 web应用的正常使用。
以上仅为本申请的较佳实施例而已, 并不用以限制本申请, 凡在本申请的精神 和原则之内所作的任何修改、 等同替换和改进等, 均应包含在本申请的保护范 围之内。
Claims
[权利要求 1] 一种页面漏洞的修复方法, 其特征在于, 包括:
移动终端读取本地数据库中的本地地址、 在线地址和预设标识符, 其 中, 所述本地地址是页面应用中本地资源的地址, 所述在线地址是服 务器上修复资源的地址, 所述修复资源对应所述本地资源中的页面漏 洞, 所述预设标识符用于指示所述移动终端是否已经下载所述修复资 源, 所述服务器预先向所述移动终端下发所述在线地址和所述预设标 识符的第一预设值, 所述移动终端在接收到下发的所述第一预设值之 后, 将所述第一预设值写入所述本地数据库中; 若检测到所述预设标识符的赋值是所述第一预设值, 则所述移动终端 通过所述在线地址, 在线读取对应的所述修复资源, 以渲染所述页面
[权利要求 2] 如权利要求 1所述的方法, 其特征在于, 在所述检测到所述预设标识 符的赋值是所述第一预设值之后, 还包括:
所述移动终端通过所述在线地址下载对应的所述修复资源。
[权利要求 3] 如权利要求 2所述的方法, 其特征在于,
在所述移动终端读取本地数据库中的本地地址、 在线地址和预设标识 符之前, 还包括:
所述移动终端在所述本地数据库中写入所述预设标识符的第一预设值 , 所述服务器与所述移动终端之间设有信道, 所述服务器通过所述信 道监听所述移动终端, 若所述服务器监听到所述页面应用中包括页面 漏洞, 则下发所述修复文件的所述在线地址以及所述预设标识符的所 述第一预设值;
在所述移动终端通过所述在线地址下载对应的所述修复资源之后, 还 包括:
所述移动终端在所述本地数据库中写入所述预设标识符的第二预设值 , 若所述服务器监听到所述移动终端已下载所述修复资源, 则下发所 述预设标识符的所述第二预设值, 所述移动终端在接收到下发的所述
第二预设值之后, 将所述第二预设值写入所述本地数据库中。
[权利要求 4] 一种页面漏洞的修复方法, 其特征在于, 包括:
服务器通过预设的信道监听所述移动终端的页面应用中是否包括页面 漏洞;
若监听到所述页面应用中包括页面漏洞, 则获取所述页面漏洞对应的 修复资源, 以修复所述页面漏洞;
所述服务器确定所述修复资源的在线地址;
所述服务器将所述修复资源的在线地址下发至移动终端;
所述服务器通过所述信道监听所述移动终端是否下载所述修复资源, 所述移动终端在未下载所述修复资源吋, 通过所述在线地址, 在线读 取对应的所述修复资源, 以渲染所述页面。
[权利要求 5] 如权利要求 4所述的方法, 其特征在于, 在所述获取页面应用程序的 页面漏洞对应的修复资源之后, 还包括:
所述服务器将第一预设值下发至移动终端, 所述移动终端在本地数据 库中写入所述第一预设值, 并通过所述在线地址, 在线读取所述修复 资源;
若检测到所述移动终端已下载所述修复资源, 则获取所述修复资源的 本地地址, 并将所述本地地址和第二预设值下发至移动终端, 所述移 动终端在本地数据库中写入所述本地地址和所述第二预设值, 并通过 所述本地地址读取所述修复资源。
[权利要求 6] —种页面漏洞的修复装置, 其特征在于, 包括:
读取模块, 用于读取本地数据库中的本地地址、 在线地址和预设标识 符, 其中, 所述本地地址是页面应用中本地资源的地址, 所述在线地 址是服务器上修复资源的地址, 所述修复资源对应所述本地资源中的 页面漏洞, 所述预设标识符用于指示所述移动终端是否已经下载所述 修复资源, 所述服务器预先向所述移动终端下发所述在线地址和所述 预设标识符的第一预设值, 所述移动终端在接收到下发的所述第一预 设值之后, 将所述第一预设值写入所述本地数据库中;
渲染模块, 用于在检测到所述预设标识符的赋值是所述第一预设值吋 , 通过所述在线地址, 在线读取对应的所述修复资源, 以渲染所述页 面。
[权利要求 7] 如权利要求 6所述的装置, 其特征在于, 还包括:
下载模块, 用于通过所述在线地址下载对应的所述修复资源。
[权利要求 8] 如权利要求 7所述的装置, 其特征在于, 还包括:
第一写入模块, 用于在所述本地数据库中写入所述预设标识符的第一 预设值, 所述服务器与所述移动终端之间设有信道, 所述服务器通过 所述信道监听所述移动终端, 若所述服务器监听到所述页面应用中包 括页面漏洞, 则下发所述修复文件的所述在线地址以及所述预设标识 符的所述第一预设值;
第二写入模块, 用于在所述本地数据库中写入所述预设标识符的第二 预设值, 若所述服务器监听到所述移动终端已下载所述修复资源, 则 下发所述预设标识符的所述第二预设值, 所述移动终端在接收到下发 的所述第二预设值之后, 将所述第二预设值写入所述本地数据库中。
[权利要求 9] 一种页面漏洞的修复装置, 其特征在于, 包括:
监听模块, 用于通过预设的信道监听所述移动终端的页面应用中是否 包括页面漏洞;
获取模块, 用于在监听到所述页面应用中包括页面漏洞吋, 获取所述 页面漏洞对应的修复资源, 以修复所述页面漏洞; 确定模块, 用于确定所述修复资源的在线地址; 第一下发模块, 用于将所述修复资源的在线地址下发至移动终端; 渲染模块, 用于通过所述信道监听所述移动终端是否下载所述修复资 源, 所述移动终端在未下载所述修复资源吋, 通过所述在线地址, 在 线读取对应的所述修复资源, 以渲染所述页面。
[权利要求 10] 如权利要求 9所述的装置, 其特征在于, 还包括:
第二下发模块, 用于将第一预设值下发至移动终端, 所述移动终端在 本地数据库中写入所述第一预设值, 并通过所述在线地址, 在线读取
所述修复资源;
第三下发模块, 用于在检测到所述移动终端已下载所述修复资源吋, 获取所述修复资源的本地地址, 并将所述本地地址和第二预设值下发 至移动终端, 所述移动终端在本地数据库中写入所述本地地址和所述 第二预设值, 并通过所述本地地址读取所述修复资源。
[权利要求 11] 一种终端设备, 其特征在于, 所述终端设备包括存储器、 处理器以及 存储在所述存储器中并可在所述处理器上运行的计算机可读指令, 所 述处理器执行所述计算机可读指令吋实现如下步骤:
读取本地数据库中的本地地址、 在线地址和预设标识符, 其中, 所述 本地地址是页面应用中本地资源的地址, 所述在线地址是服务器上修 复资源的地址, 所述修复资源对应所述本地资源中的页面漏洞, 所述 预设标识符用于指示移动终端是否已经下载所述修复资源, 所述服务 器预先向所述移动终端下发所述在线地址和所述预设标识符的第一预 设值, 所述移动终端在接收到下发的所述第一预设值之后, 将所述第 一预设值写入所述本地数据库中;
若检测到所述预设标识符的赋值是所述第一预设值, 则所述移动终端 通过所述在线地址, 在线读取对应的所述修复资源, 以渲染所述页面
[权利要求 12] 根据权利要求 11所述的终端设备, 其特征在于, 其特征在于, 在所述 检测到所述预设标识符的赋值是所述第一预设值之后, 所述处理器执 行所述计算机可读指令吋还实现如下步骤:
通过所述在线地址下载对应的所述修复资源。
[权利要求 13] 根据权利要求 12所述的终端设备, 其特征在于, 在所述读取本地数据 库中的本地地址、 在线地址和预设标识符之前, 所述处理器执行所述 计算机可读指令吋实现如下步骤:
在所述本地数据库中写入所述预设标识符的第一预设值, 所述服务器 与所述移动终端之间设有信道, 所述服务器通过所述信道监听所述移 动终端, 若所述服务器监听到所述页面应用中包括页面漏洞, 则下发
所述修复文件的所述在线地址以及所述预设标识符的所述第一预设值 通过所述在线地址下载对应的所述修复资源之后, 所述处理器执行所 述计算机可读指令吋实现如下步骤:
在所述本地数据库中写入所述预设标识符的第二预设值, 若所述服务 器监听到所述移动终端已下载所述修复资源, 则下发所述预设标识符 的所述第二预设值, 所述移动终端在接收到下发的所述第二预设值之 后, 将所述第二预设值写入所述本地数据库中。
[权利要求 14] 一种终端设备, 其特征在于, 所述终端设备包括存储器、 处理器以及 存储在所述存储器中并可在所述处理器上运行的计算机可读指令, 所 述处理器执行所述计算机可读指令吋实现如下步骤:
通过预设的信道监听所述移动终端的页面应用中是否包括页面漏洞; 若监听到所述页面应用中包括页面漏洞, 则获取所述页面漏洞对应的 修复资源, 以修复所述页面漏洞;
确定所述修复资源的在线地址;
将所述修复资源的在线地址下发至移动终端;
通过所述信道监听所述移动终端是否下载所述修复资源, 所述移动终 端在未下载所述修复资源吋, 通过所述在线地址, 在线读取对应的所 述修复资源, 以渲染所述页面。
[权利要求 15] 根据权利要求 14所述的终端设备, 其特征在于, 在所述获取页面应用 程序的页面漏洞对应的修复资源之后, 所述处理器执行所述计算机可 读指令吋实现如下步骤:
将第一预设值下发至移动终端, 所述移动终端在本地数据库中写入所 述第一预设值, 并通过所述在线地址, 在线读取所述修复资源; 若检测到所述移动终端已下载所述修复资源, 则获取所述修复资源的 本地地址, 并将所述本地地址和第二预设值下发至移动终端, 所述移 动终端在本地数据库中写入所述本地地址和所述第二预设值, 并通过 所述本地地址读取所述修复资源。
[权利要求 16] —种计算机可读存储介质, 所述计算机可读存储介质存储有计算机可 读指令, 其特征在于, 所述计算机可读指令被处理器执行吋实现如下 步骤:
读取本地数据库中的本地地址、 在线地址和预设标识符, 其中, 所述 本地地址是页面应用中本地资源的地址, 所述在线地址是服务器上修 复资源的地址, 所述修复资源对应所述本地资源中的页面漏洞, 所述 预设标识符用于指示移动终端是否已经下载所述修复资源, 所述服务 器预先向所述移动终端下发所述在线地址和所述预设标识符的第一预 设值, 所述移动终端在接收到下发的所述第一预设值之后, 将所述第 一预设值写入所述本地数据库中;
若检测到所述预设标识符的赋值是所述第一预设值, 则所述移动终端 通过所述在线地址, 在线读取对应的所述修复资源, 以渲染所述页面
[权利要求 17] 根据权利要求 16所述的计算机可读存储介质, 其特征在于, 在所述检 测到所述预设标识符的赋值是所述第一预设值之后, 所述计算机可读 指令被处理器执行吋还实现如下步骤:
通过所述在线地址下载对应的所述修复资源。
[权利要求 18] 根据权利要求 17所述的计算机可读存储介质, 其特征在于, 在所述读 取本地数据库中的本地地址、 在线地址和预设标识符之前, 所述计算 机可读指令被处理器执行吋还实现如下步骤:
在所述本地数据库中写入所述预设标识符的第一预设值, 所述服务器 与所述移动终端之间设有信道, 所述服务器通过所述信道监听所述移 动终端, 若所述服务器监听到所述页面应用中包括页面漏洞, 则下发 所述修复文件的所述在线地址以及所述预设标识符的所述第一预设值 通过所述在线地址下载对应的所述修复资源之后, 所述处理器执行所 述计算机可读指令吋实现如下步骤:
在所述本地数据库中写入所述预设标识符的第二预设值, 若所述服务
器监听到所述移动终端已下载所述修复资源, 则下发所述预设标识符 的所述第二预设值, 所述移动终端在接收到下发的所述第二预设值之 后, 将所述第二预设值写入所述本地数据库中。
[权利要求 19] 一种计算机可读存储介质, 所述计算机可读存储介质存储有计算机可 读指令, 其特征在于, 所述计算机可读指令被处理器执行吋实现如下 步骤:
通过预设的信道监听所述移动终端的页面应用中是否包括页面漏洞; 若监听到所述页面应用中包括页面漏洞, 则获取所述页面漏洞对应的 修复资源, 以修复所述页面漏洞;
确定所述修复资源的在线地址;
将所述修复资源的在线地址下发至移动终端;
通过所述信道监听所述移动终端是否下载所述修复资源, 所述移动终 端在未下载所述修复资源吋, 通过所述在线地址, 在线读取对应的所 述修复资源, 以渲染所述页面。
[权利要求 20] 根据权利要求 19所述的计算机可读存储介质, 其特征在于, 在所述获 取页面应用程序的页面漏洞对应的修复资源之后, 所述计算机可读指 令被处理器执行吋还实现如下步骤:
将第一预设值下发至移动终端, 所述移动终端在本地数据库中写入所 述第一预设值, 并通过所述在线地址, 在线读取所述修复资源; 若检测到所述移动终端已下载所述修复资源, 则获取所述修复资源的 本地地址, 并将所述本地地址和第二预设值下发至移动终端, 所述移 动终端在本地数据库中写入所述本地地址和所述第二预设值, 并通过 所述本地地址读取所述修复资源。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US16/097,392 US20190149571A1 (en) | 2017-02-16 | 2018-02-11 | Method and device for repairing page vulnerability |
| SG11201809820YA SG11201809820YA (en) | 2017-02-16 | 2018-02-11 | Method and device for repairing page vulnerability |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710083516.0 | 2017-02-16 | ||
| CN201710083516.0A CN107784230B (zh) | 2017-02-16 | 2017-02-16 | 页面漏洞的修复方法及装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018149374A1 true WO2018149374A1 (zh) | 2018-08-23 |
Family
ID=61437754
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/076259 Ceased WO2018149374A1 (zh) | 2017-02-16 | 2018-02-11 | 一种页面漏洞的修复方法及装置 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20190149571A1 (zh) |
| CN (1) | CN107784230B (zh) |
| SG (1) | SG11201809820YA (zh) |
| WO (1) | WO2018149374A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110581849A (zh) * | 2019-09-06 | 2019-12-17 | 中国平安人寿保险股份有限公司 | 历史已修复漏洞的监测方法、装置、设备及存储介质 |
| CN113342389A (zh) * | 2021-05-31 | 2021-09-03 | 深圳市腾讯网络信息技术有限公司 | 一种服务的更新方法、装置及计算机可读存储介质 |
| CN115129355A (zh) * | 2022-09-01 | 2022-09-30 | 平安银行股份有限公司 | 页面修复方法及其系统、计算机设备 |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11252172B1 (en) * | 2018-05-10 | 2022-02-15 | State Farm Mutual Automobile Insurance Company | Systems and methods for automated penetration testing |
| CN109729138A (zh) * | 2018-06-01 | 2019-05-07 | 平安普惠企业管理有限公司 | 客户端资源更新方法、设备、客户端及存储介质 |
| CN115688114B (zh) * | 2022-10-25 | 2026-03-24 | 西安四叶草信息技术有限公司 | 一种漏洞修复方法及装置 |
| CN117014178B (zh) * | 2023-06-05 | 2024-06-18 | 深圳市前海望潮科技有限公司 | 一种用于网络安全的漏洞检测系统 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130204981A1 (en) * | 2010-06-24 | 2013-08-08 | Amazon Technologies, Inc. | Url rescue by identifying information related to an item referenced in an invalid url |
| CN103377194A (zh) * | 2012-04-16 | 2013-10-30 | 苏州工业园区进一科技有限公司 | 加速网页访问的方法、装置和浏览器 |
| CN104899320A (zh) * | 2015-06-18 | 2015-09-09 | 安一恒通(北京)科技有限公司 | 网页修复方法、终端、服务器及系统 |
| WO2015195408A1 (en) * | 2014-06-19 | 2015-12-23 | Thomson Licensing | Method and apparatus for detecting a state of selectable values of a web page |
| CN105868354A (zh) * | 2016-03-29 | 2016-08-17 | 北京小米移动软件有限公司 | 网页修复方法及装置 |
-
2017
- 2017-02-16 CN CN201710083516.0A patent/CN107784230B/zh active Active
-
2018
- 2018-02-11 WO PCT/CN2018/076259 patent/WO2018149374A1/zh not_active Ceased
- 2018-02-11 SG SG11201809820YA patent/SG11201809820YA/en unknown
- 2018-02-11 US US16/097,392 patent/US20190149571A1/en not_active Abandoned
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130204981A1 (en) * | 2010-06-24 | 2013-08-08 | Amazon Technologies, Inc. | Url rescue by identifying information related to an item referenced in an invalid url |
| CN103377194A (zh) * | 2012-04-16 | 2013-10-30 | 苏州工业园区进一科技有限公司 | 加速网页访问的方法、装置和浏览器 |
| WO2015195408A1 (en) * | 2014-06-19 | 2015-12-23 | Thomson Licensing | Method and apparatus for detecting a state of selectable values of a web page |
| CN104899320A (zh) * | 2015-06-18 | 2015-09-09 | 安一恒通(北京)科技有限公司 | 网页修复方法、终端、服务器及系统 |
| CN105868354A (zh) * | 2016-03-29 | 2016-08-17 | 北京小米移动软件有限公司 | 网页修复方法及装置 |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110581849A (zh) * | 2019-09-06 | 2019-12-17 | 中国平安人寿保险股份有限公司 | 历史已修复漏洞的监测方法、装置、设备及存储介质 |
| CN110581849B (zh) * | 2019-09-06 | 2022-11-11 | 中国平安人寿保险股份有限公司 | 历史已修复漏洞的监测方法、装置、设备及存储介质 |
| CN113342389A (zh) * | 2021-05-31 | 2021-09-03 | 深圳市腾讯网络信息技术有限公司 | 一种服务的更新方法、装置及计算机可读存储介质 |
| CN115129355A (zh) * | 2022-09-01 | 2022-09-30 | 平安银行股份有限公司 | 页面修复方法及其系统、计算机设备 |
| CN115129355B (zh) * | 2022-09-01 | 2023-05-26 | 平安银行股份有限公司 | 页面修复方法及其系统、计算机设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107784230B (zh) | 2019-06-07 |
| CN107784230A (zh) | 2018-03-09 |
| SG11201809820YA (en) | 2018-12-28 |
| US20190149571A1 (en) | 2019-05-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018149374A1 (zh) | 一种页面漏洞的修复方法及装置 | |
| CN110058873B (zh) | 应用页面更新方法、装置、设备和存储介质 | |
| US9542302B2 (en) | System and method for remote debugging of an application in an image forming apparatus over a network | |
| JP5838527B2 (ja) | ファームウェアを更新するための方法、装置、および通信デバイス | |
| CN108287836B (zh) | 一种资源缓存方法及装置 | |
| CN106126423B (zh) | 游戏应用程序的测试方法、装置及系统 | |
| CN110968331B (zh) | 应用程序运行的方法和装置 | |
| CN114328197B (zh) | 一种小程序插件调试方法、系统及计算机可读存储介质 | |
| CN107256161B (zh) | 基于electron技术的客户端升级方法 | |
| CN102687472B (zh) | 发送、接收数据的处理装置及方法 | |
| CN107632901A (zh) | 一种应用程序运行异常的自修复方法及装置 | |
| WO2021223544A1 (zh) | 一种启动应用的方法和相关装置 | |
| CN112068925A (zh) | 一种基于WebUploader组件的文件上传方法、装置、电子设备和可读存储介质 | |
| CN108182149A (zh) | 嵌入式浏览器调试方法、调试终端及计算机可读存储介质 | |
| CN107918587B (zh) | 一种应用程序的调试方法及系统 | |
| CN110851194B (zh) | 一种用于获取实现新接口的代码的方法和装置 | |
| CN114328210A (zh) | 一种测试方法、装置及计算机可读存储介质 | |
| CN113722116B (zh) | 一种调试消息的传输方法、装置、设备及介质 | |
| CN114153665A (zh) | 一种基于协议接口的测试方法以及测试装置 | |
| CN109308288B (zh) | 数据处理方法及装置 | |
| CN104036193A (zh) | 一种应用程序的本地跨域漏洞检测方法及装置 | |
| CN109408133A (zh) | 一种启动组件的方法和设备 | |
| US8191041B2 (en) | Javascript pre-processing framework | |
| WO2017096889A1 (zh) | 系统升降级的方法和装置 | |
| CN111752593A (zh) | 动态获取浏览器代理地址方法、装置、设备及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18753725 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/11/2019) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18753725 Country of ref document: EP Kind code of ref document: A1 |
