WO2020238092A1 - Link shell adding and jumping method and apparatus, and electronic device and storage medium - Google Patents

Link shell adding and jumping method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2020238092A1
WO2020238092A1 PCT/CN2019/120603 CN2019120603W WO2020238092A1 WO 2020238092 A1 WO2020238092 A1 WO 2020238092A1 CN 2019120603 W CN2019120603 W CN 2019120603W WO 2020238092 A1 WO2020238092 A1 WO 2020238092A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
link data
webpage link
webpage
dependent
Prior art date
Application number
PCT/CN2019/120603
Other languages
French (fr)
Chinese (zh)
Inventor
许剑勇
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2020238092A1 publication Critical patent/WO2020238092A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Definitions

  • the present disclosure relates to the technical field of application programs, and in particular to a method, device, electronic device, and storage medium for linking and shelling jump.
  • Web pages with different functions in existing applications require some blocking mechanisms for safe web browsing, which is the use of web pages, for example, a login is required to enter the inside of the web page for further access.
  • the inventor realizes that this kind of login using the interception mechanism is implemented by the HTML5 program itself, which is likely to cause inconsistent HTML5 and Native experience, and it is inconvenient to configure.
  • HTML5 webpages need to handle interception information similar to login. Intercept the dependent processing results, once the web page does not need to rely on, you also need to modify the HTML5 code.
  • This application discloses a method, a device, an electronic device and a storage medium for link packing and redirection, which enable webpages to automatically process interception information, facilitate webpage pairing, and ensure that login interception uses a local interface to achieve experience consistency.
  • a linking and shelling jump method including:
  • the target page Acquiring the first webpage link data of the target page to be redirected, wherein the target page has at least one interception page associated with it, and the interception page is used to verify the access authority of the access terminal;
  • the control command represented by the shell data is executed to jump to the target page through the verification of the intercepted page.
  • this application also discloses a link packer jump device, including:
  • Obtaining module configured to execute to obtain the first webpage link data of the target page to be jumped, wherein the target page has at least one interception page associated with it, and the interception page is used to verify the access authority of the access terminal;
  • Processing module configured to perform adding shell data to the first webpage link data to generate second webpage link data
  • Execution module configured to execute the control instruction represented by the shell data to jump to the target page through the verification of the intercepted page.
  • the present application also discloses a computer device including a memory and a processor.
  • the memory stores computer-readable instructions.
  • the processor executes Steps of the link packer jump method described in any one of the above.
  • the present application also discloses a storage medium storing computer-readable instructions.
  • the computer-readable instructions When the computer-readable instructions are executed by one or more processors, the one or more processors execute any of the above The steps of the link packer jump method.
  • the storage medium may be a non-volatile storage medium, or referred to as a non-volatile computer readable storage medium.
  • the technical solutions provided by the embodiments of the present disclosure can achieve the purpose of skipping the intercepted page, automatically performing page jumps, and directly logging in, thereby ensuring the consistency of the jumped pages.
  • Fig. 1 is a flow chart of a method for link packing and jumping in this application
  • Fig. 2 is a schematic diagram of a method for generating second webpage link data by packing the first webpage link data according to the present application
  • FIG. 3 is a schematic diagram of a method for packing the encoded first webpage link data according to the first preset format according to the present application
  • Figure 4 is a schematic flow chart of the method for completing the shelling of the present application.
  • FIG. 5 is a schematic diagram of a method for jumping according to the second webpage link data after being packed in this application
  • Figure 6 is a block diagram of the link packer jump device of the present application.
  • FIG. 7 is a block diagram of the basic structure of the computer equipment of this application.
  • Fig. 1 shows a method for linking and shelling jump according to an exemplary embodiment, including:
  • the target page is the page that needs to be redirected for the user to browse.
  • an intercept page will be inserted, such as a login interface. You need to enter the account password correctly to see the target page The specific information of the target page or the content of the target page need to be verified.
  • This intercepted page is usually accompanied by the web link data of the target page.
  • the link of the target page disclosed in this application is called the first webpage link data
  • the first webpage link data is a kind of URL link data
  • the form of the URL link is: protocol name: //host.domain name/path/file
  • the protocol includes: file local system file, http: WWW server and ftp: ftp server, etc. If you want to obtain the specified link data, you can use the crawler to monitor the data and obtain it in time.
  • a feasible step includes:
  • HttpDownLoadHelper class The contents of the HttpDownLoadHelper class are as follows:
  • HtmlDocument doc new HtmlDocument()
  • HtmlNode rootNode doc.DocumentNode
  • HtmlNodeCollection titleNodes rootNode.SelectNodes("corresponding label"); storage data:
  • the code of the NewsList object is as follows:
  • the above is one of the specific implementation methods of obtaining the link data of the first webpage to be jumped by using the HtmlDocument object.
  • there are many ways to obtain the link to be jumped any of which can be captured Just link the data of the first webpage to be jumped.
  • Packing through shell data generally refers to a method of protecting program resources.
  • the shell on the software surface is a piece of code that is executed before the original program.
  • the code of the original program may be compressed and encrypted during the packing process. When the packed file is executed, this code as the added shell runs before the original program. It restores the compressed and encrypted code to the original program code, and then returns the execution right to the original code.
  • Shells at the software level are divided into encrypted shells, compressed shells, disguised shells, multi-layered shells, etc. The purpose is to hide the real entry point of the program and prevent it from being cracked.
  • the purpose is to attach the shell software to the executable file to be protected to achieve a certain purpose.
  • FIG. 2 please refer to FIG. 2 for the link to the first webpage.
  • the method of adding shell data to the data to generate the second webpage link data includes:
  • the URL webpage is encoded so that the link data of the first webpage conforms to the url specification, because Chinese and many characters are not allowed to appear in the url in the standard url specification.
  • ASCII control characters, some non-ASCII characters, some reserved characters, some unsafe characters, such as "space”, in order to prevent ambiguity, need to be converted to "+”, based on the above rules, you can follow the character corresponding to the character Encoding, which does not meet the above rules, is converted to percent encode.
  • This conversion rule belongs to hexadecimal, and the result of encoding illegal characters is three bytes (%+hexadecimal characters*2). Percent encode literally points out that it uses% as the encoding mark. The essence of URL encode is to use percent encode correctly.
  • the key questions for correct URL encoding are: when, what content, what filtering principle is used, and how to generate percent encoding.
  • the practice was to convert the character stream into a byte stream. According to the one-to-one correspondence between ASCII characters and bytes, they can be converted to each other. Use the integer value of the corresponding ASCII character as the last two hexadecimal characters of% to form percent coding.
  • the current practice includes specifying or using UTF8 by default to convert into a byte stream, and each byte is encoded into a percent encoding.
  • the URL encoding of Chinese “NetEase” is %e7%bd%91%e6%98%93, and The UTF8 byte stream is e7 bd 91 e6 93, and the one-to-one correspondence can be seen.
  • the encoded first webpage link data is obtained.
  • the encoded first webpage link data is packed in a first preset format.
  • the first preset format is a pre-preset rule for shelling, which includes sequentially superimposing the acquired layer-dependent data of the shell in the shell software that needs to be added in a certain order in a superimposed manner.
  • the method for shelling the encoded first webpage link data according to a first preset format includes:
  • the purpose of shelling is to attach the shell of the shell software to the executable file to be protected to achieve a certain purpose.
  • the shell to be added is actually a kind of data, which is appended to the original web page link data for encapsulation .
  • the dependent data here is actually a configuration parameter. When there is only one configuration parameter, directly add the configuration parameter to the original web link. If there are many configuration parameters This constitutes multiple layers of dependent data. In this application, if the shell to be added is obtained, all dependent data on the shell is actually obtained.
  • the dependent data After obtaining all the dependent data of the shell to be added, the dependent data needs to be sorted, so that the dependent data is sequentially superimposed on the first webpage link data in a specific manner. Since dependent data is a configuration parameter, there may be a sequential relationship between different configuration information. Therefore, this specific way of sequentially superimposing dependent data can be sorting based on the sequential relationship between dependent data. In another embodiment, the dependent data does not have a sequential relationship, but there is a relationship between the size of the included range. Therefore, this specific way of sequentially superimposing the dependent data may be based on the dependent data included The size of the range is superimposed in order from large to small, or superimposed in sequence from small to large. In another embodiment, the dependent data is in a parallel relationship.
  • a feasible solution is to arrange the dependent data in a specified manner, for example, first superimpose the dependent data related to time, and then add the dependent data related to the name. Data, and then overlay dependent data related to the address, etc.
  • Another feasible solution is random sorting and stacking.
  • the method of sequentially stacking dependent data on the basis of the first webpage link data to complete the shelling further includes:
  • S2223 Relocate the first webpage link data to be packed according to the dependent data, and save and generate the second webpage link data.
  • the encoded first webpage link data is loaded into the corresponding PE structure, and the PE structure loads the program data into the memory to facilitate address conversion and facilitate program execution. Since the PE structure stores the relevant program information of the first webpage link data in the memory, the encoded offset address of the first webpage link data can be obtained, and the offset address is in the computer After the memory is segmented, the offset of the coded address loaded by the relevant program of the first webpage link data relative to the first address of the segment after the computer memory is segmented.
  • the dependent data of each layer is stored in the offset address obtained above, and then the dependent data is sequentially superimposed in a specific manner, which is equivalent to Relocate the encoded first webpage link data.
  • the dependent data is superimposed, it is equivalent to the relocation of the first webpage link data.
  • the relocated data is saved, and the relocated link is The data is the link data of the second webpage, and the shelling operation is completed at this time.
  • the server After the shelling operation is completed, when the server receives an instruction to open the current website, the shelled second webpage link data is redirected. Further, referring to FIG. 5, the method of jumping according to the second webpage link data after being packed includes:
  • S3400 Reload the decoded third webpage link data and complete the jump.
  • the second preset format here is a preset format for reading the second webpage link data during the execution of the webpage jump, including but not limited to the reverse order of superimposing the dependent data, that is, When you want to jump to the second webpage link data after packing, first remove the outermost dependent data, and then sequentially remove the dependent data of the inner layer, until the first webpage link data in the encoding state is obtained , And then decode it to obtain the decoded third webpage link data, and complete the jump according to the obtained third webpage link data.
  • the decoded third webpage link data here is actually unencoded
  • the first webpage link data that is, after talking about encoding, packing, unpacking and decoding, it reverts to the original first webpage link, thus ensuring the consistency of the webpage. This method can also ensure that the login interception uses the local interface to Achieve experience consistency.
  • the http url link by shelling and unpacking the http url link, it is finally a url link, which is convenient for jump configuration, and all the dependent information is also in the Url.
  • the link is encoded, and the schema can be used to pack it.
  • This url can be used for background configuration like normal url.
  • the routing terminal of the application will jump to the branch with the path path of /web after receiving the shelled url link data, and take out the dependency.
  • the interception order of the dependency is implemented first. When the conditions are met, the first is removed.
  • This application is mainly used to redirect webpages with editing permissions, such as corporate internal webpages.
  • HTTP webpages can be added with the help of local routing.
  • the terminal helps to achieve the decoupling of web pages and dependencies, so as to achieve the purpose of skipping the interception page, automatically jumping to the page, and directly logging in.
  • the first webpage link data before the packer and the third webpage link data after the packer The jumped pages are consistent to ensure the consistency of the jumped pages.
  • this application also discloses a link packer jump device, including:
  • the obtaining module 1000 configured to execute the first webpage link data configured to obtain the target page to be jumped, wherein the target page has at least one intercepted page associated with it, and the intercepted page is used to verify the access terminal Access rights;
  • the first webpage link data is a kind of URL link data.
  • the form of the URL link is: protocol name: //host. domain name/path/file name.
  • the protocols include: file local system file, http: WWW server and ftp: ftp server If you want to obtain the specified link data, you can monitor the data by crawling and obtain it in time.
  • Processing module 2000 configured to execute adding shell data to the first webpage link data to generate second webpage link data
  • Shelling generally refers to a method of protecting program resources.
  • the shell of the software is a piece of code that is executed before the original program.
  • the code of the original program may be compressed and encrypted during the packing process. When the packed file is executed, this code as the added shell runs before the original program. It restores the compressed and encrypted code to the original program code, and then returns the execution right to the original code.
  • Shells at the software level are divided into encrypted shells, compressed shells, disguised shells, multi-layered shells, etc. The purpose is to hide the real entry point of the program and prevent it from being cracked.
  • the execution module 3000 is configured to execute the control instruction represented by the shell data to jump to the target page through the verification of the intercepted page.
  • the server After the shelling operation is completed, when the server receives an instruction to open the current website, the shelled second webpage link data is redirected.
  • the processing module includes:
  • Encoding module configured to perform encoding of the first webpage link data
  • Packing module configured to pack the encoded first webpage link data according to a first preset format.
  • the URL webpage is encoded so that the first webpage link data conforms to the url specification, because Chinese and many characters are not allowed to appear in the url in the standard url specification.
  • ASCII control characters, some non-ASCII characters, some reserved characters, some unsafe characters, such as "space”, in order to prevent ambiguity, need to be converted to "+”, based on the above rules, you can follow the character corresponding to the character Encoding, which does not meet the above rules, is converted into percent encode.
  • This conversion rule belongs to hexadecimal, and the result of encoding illegal characters is three bytes (%+hexadecimal characters*2). Percent encode literally clearly points out that it uses% as an encoding mark. The essence of URL encode is to use percent encode correctly.
  • the key questions for correct URL encoding are: when, what content, what filtering principle is used, and how to generate percent encoding.
  • the practice was to convert the character stream into a byte stream. According to the one-to-one correspondence between ASCII characters and bytes, they can be converted to each other. Use the integer value of the corresponding ASCII character as the last two hexadecimal characters of% to form percent coding.
  • the current practice includes specifying or using UTF8 by default to convert into a byte stream, and each byte is encoded into a percent encoding.
  • the URL encoding of Chinese “NetEase” is %e7%bd%91%e6%98%93, and The UTF8 byte stream is e7 bd 91 e6 93, and the one-to-one correspondence can be seen.
  • the encoded first webpage link data is obtained.
  • the encoded first webpage link data is packed according to the first preset format.
  • the first preset format is a pre-preset rule for shelling, which includes sequentially superimposing the acquired layer-dependent data of the shell in the shell software that needs to be added in a certain order.
  • the shelling module includes:
  • Dependency acquisition module configured to execute and acquire the dependent data of each layer of the shell to be added
  • the superposition module is configured to sequentially superimpose dependent data on the basis of the first webpage link data to complete the shelling.
  • the purpose of shelling is to attach the shell of the shell software to the executable file to be protected to achieve a certain purpose.
  • the shell to be added is actually a kind of data, which is appended to the original web page link data for encapsulation .
  • the dependent data here is actually a configuration parameter. When there is only one configuration parameter, directly add the configuration parameter to the original web link. If there are many configuration parameters This constitutes multiple layers of dependent data. In this application, if the shell to be added is acquired, all dependent data on the shell is actually acquired.
  • dependent data After obtaining all the dependent data of the shell to be added, the dependent data needs to be sorted, so that the dependent data is sequentially superimposed on the first webpage link data in a specific manner. Since dependent data is a configuration parameter, there may be a sequential relationship between different configuration information. Therefore, this specific way of sequentially superimposing dependent data may be sorting based on the sequential relationship between dependent data. In another embodiment, there is no sequential relationship between the dependent data, but there is a relationship in the size of the included range. Therefore, this specific way of sequentially superimposing dependent data may be based on the dependent data included The size of the range is superimposed in order from large to small, or superimposed in sequence from small to large. In another embodiment, the dependent data are in a parallel relationship. Therefore, a feasible solution is to arrange in a specified manner, for example, to superimpose time-related dependent data first, and then add name-related dependencies Data, and then overlay dependent data related to the address, etc. Another feasible solution is random sorting and stacking.
  • the overlay module includes:
  • Address obtaining module configured to perform obtaining the offset address of the first webpage link data after encoding
  • Storage module configured to execute storing the layer-dependent data of the shell to be added in the offset address
  • the relocation module is configured to perform relocation of the first webpage link data to be packed according to the dependent data, and save and generate the second webpage link data.
  • the encoded first webpage link data is loaded into the corresponding PE structure, and the PE structure loads the program data into the memory to facilitate address conversion and facilitate program execution. Since the PE structure stores the relevant program information of the first webpage link data in the memory, the encoded offset address of the first webpage link data can be obtained, and the offset address is in the computer After the memory is segmented, the offset of the coded address loaded by the relevant program of the first webpage link data relative to the first address of the segment after the computer memory is segmented.
  • the dependent data of each layer is stored in the offset address obtained above, and then the dependent data is sequentially superimposed in a specific manner, which is equivalent to the encoded
  • the first webpage link data is relocated.
  • the relocated data is saved, and the relocated link data is the first Second, the webpage link data, and the packer operation is now complete.
  • the execution module includes:
  • the second webpage obtaining module configured to execute and obtain the second webpage link data
  • Dependency extraction module configured to execute to extract the dependent data sequentially according to the second preset format to generate third webpage link data
  • Decoding module configured to perform decoding of the third webpage link data
  • Jump module configured to perform reloading of the decoded third webpage link data and complete the jump.
  • the second preset format here is a preset format for reading the second webpage link data during the execution of the webpage jump, including but not limited to the reverse order of superimposing the dependent data, that is, When you want to jump to the second webpage link data after packing, first remove the outermost dependent data, and then sequentially remove the dependent data of the inner layer, until the first webpage link data in the encoding state is obtained , And then decode it to obtain the decoded third webpage link data, and complete the jump according to the obtained third webpage link data.
  • the decoded third webpage link data here is actually unencoded The link data of the first webpage, after talking about encoding, shelling, unpacking, and decoding, is restored to the original link of the first webpage, thereby ensuring the consistency of the webpage.
  • FIG. 7 Please refer to FIG. 7 for the basic structural block diagram of the computer equipment provided by the embodiment of the present application.
  • the computer device includes a processor, a nonvolatile storage medium, a memory, and a network interface connected through a system bus.
  • the non-volatile storage medium of the computer device stores an operating system, a database, and computer-readable instructions.
  • the database may store control information sequences.
  • the processor can realize a A kind of link packer jump method.
  • the processor of the computer equipment is used to provide calculation and control capabilities, and supports the operation of the entire computer equipment.
  • a computer-readable instruction may be stored in the memory of the computer device, and when the computer-readable instruction is executed by the processor, the processor may execute a link-packing jump method.
  • the network interface of the computer device is used to connect and communicate with the terminal.
  • FIG. 7 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
  • the computer device receives the status information of the prompt behavior sent by the associated client, that is, whether the associated terminal opens the prompt and whether the lender closes the prompt task.
  • the corresponding preset instruction is sent to the associated terminal, so that the associated terminal can execute corresponding operations according to the preset instruction, thereby realizing effective supervision of the associated terminal.
  • the server side controls the associated terminal to continue ringing to prevent the prompt task of the associated terminal from being automatically terminated after a period of time.
  • the present application also provides a storage medium storing computer-readable instructions.
  • the computer-readable instructions are executed by one or more processors, the one or more processors execute the link packer described in any of the above embodiments. Jump method.
  • the computer program can be stored in a computer readable storage medium. When executed, it may include the processes of the above-mentioned method embodiments.
  • the aforementioned storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present application relates to a link shell adding and jumping method and apparatus, and an electronic device and a storage medium. The method comprises: acquiring first web page link data of a target page to jump to, wherein the target page is provided with at least one intercept page accompanying same, and the intercept page is used for verifying the access permission of an access terminal; adding shell data to the first web page link data so as to generate second web page link data; and executing a control instruction represented by the shell data, so as to jump to the target page by means of verification via the intercept page. According to the present application, by means of adding a shell to and removing a shell from a URL web page link in a web page, with regard to HTTP web pages, decoupling between the web page and dependency can be achieved with the help of a local routing terminal by means of adding the dependency, thereby achieving the aims of jumping over the intercept page, automatically carrying out page jumping and directly carrying out login.

Description

链接加壳跳转方法、装置、电子设备和存储介质Link packing jump method, device, electronic equipment and storage medium
本申请要求于2019年05月24日提交中国专利局、申请号为201910441327.5、申请名称为“链接加壳跳转方法、装置、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on May 24, 2019, the application number is 201910441327.5, and the application name is "Link Packing Jump Method, Device, Electronic Equipment and Storage Medium", and its entire content Incorporated in this application by reference.
技术领域Technical field
本公开涉及应用程序技术领域,尤其涉及一种链接加壳跳转方法、装置、电子设备和存储介质。The present disclosure relates to the technical field of application programs, and in particular to a method, device, electronic device, and storage medium for linking and shelling jump.
背景技术Background technique
随着技术的发展,很多服务和资讯信息通过应用程序获取和进行,应用程序内的功能越来越多,不同功能主页都有单独的页面进行显示。With the development of technology, many services and information are obtained and carried out through the application program. There are more and more functions in the application program. The homepages of different functions have separate pages for display.
现有的应用程序不同的功能的网页,需要一些拦截机制以进行安全的网页浏览是网页的使用,例如需要进行登录后才能进入网页内部进行进一步的访问。发明人意识到,这种采用了拦截机制的登录是通过HTML5程序自己实现登录,容易造成HTML5和NATIVE体验不一致,而且不方便配置,HTML5网页内部需要自己处理类似于登录这样的拦截信息,网页的拦截依赖处理结果,一旦网页不需要依赖,则还需要修改HTML5代码。Web pages with different functions in existing applications require some blocking mechanisms for safe web browsing, which is the use of web pages, for example, a login is required to enter the inside of the web page for further access. The inventor realizes that this kind of login using the interception mechanism is implemented by the HTML5 program itself, which is likely to cause inconsistent HTML5 and Native experience, and it is inconvenient to configure. HTML5 webpages need to handle interception information similar to login. Intercept the dependent processing results, once the web page does not need to rely on, you also need to modify the HTML5 code.
发明内容Summary of the invention
本申请公开提供一种链接加壳跳转方法、装置、电子设备和存储介,使网页自动处理拦截信息,方便进行网页配对,可保证登录拦截采用本地界面以达到体验一致性。This application discloses a method, a device, an electronic device and a storage medium for link packing and redirection, which enable webpages to automatically process interception information, facilitate webpage pairing, and ensure that login interception uses a local interface to achieve experience consistency.
根据本公开实施例的第一方面,提供一种链接加壳跳转方法,包括:According to the first aspect of the embodiments of the present disclosure, there is provided a linking and shelling jump method, including:
获取待跳转的目标页面的第一网页链接数据,其中,所述目标页面具有至少一个与其伴生的拦截页面,所述拦截页面用于验证访问终端的访问权限;Acquiring the first webpage link data of the target page to be redirected, wherein the target page has at least one interception page associated with it, and the interception page is used to verify the access authority of the access terminal;
对所述第一网页链接数据添加壳数据以生成第二网页链接数据;Adding shell data to the first webpage link data to generate second webpage link data;
执行所述壳数据所表征的控制指令,以通过所述拦截页面的验证,跳转至所述目标页面。The control command represented by the shell data is executed to jump to the target page through the verification of the intercepted page.
另一方面,本申请还公开一种链接加壳跳转装置,包括:On the other hand, this application also discloses a link packer jump device, including:
获取模块:被配置为执行获取待跳转的目标页面的第一网页链接数据,其中,所述目标页面具有至少一个与其伴生的拦截页面,所述拦截页面用于验证访问终端的访问权限;Obtaining module: configured to execute to obtain the first webpage link data of the target page to be jumped, wherein the target page has at least one interception page associated with it, and the interception page is used to verify the access authority of the access terminal;
处理模块:被配置为执行对所述第一网页链接数据添加壳数据以生成第二网页链接数据;Processing module: configured to perform adding shell data to the first webpage link data to generate second webpage link data;
执行模块:被配置为执行执行所述壳数据所表征的控制指令,以通过所述拦截页面的验证,跳转至所述目标页面。Execution module: configured to execute the control instruction represented by the shell data to jump to the target page through the verification of the intercepted page.
另一方面,本申请还公开一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行上述任一项所述的的链接加壳跳转方法的步骤。On the other hand, the present application also discloses a computer device including a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor executes Steps of the link packer jump method described in any one of the above.
另一方面,本申请还公开一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述任一项所述的的链接加壳跳转方法的步骤。可选的,该存储介质可以非易失性存储介质,或者称为计算机非易失性可读存储介质。On the other hand, the present application also discloses a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute any of the above The steps of the link packer jump method. Optionally, the storage medium may be a non-volatile storage medium, or referred to as a non-volatile computer readable storage medium.
本公开的实施例提供的技术方案能够实现跳过拦截页面,自动进行页面跳转,直接进行登录的目的,保证了跳转页面的一致性。The technical solutions provided by the embodiments of the present disclosure can achieve the purpose of skipping the intercepted page, automatically performing page jumps, and directly logging in, thereby ensuring the consistency of the jumped pages.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The drawings here are incorporated into the specification and constitute a part of the specification, show embodiments that conform to the application, and are used together with the specification to explain the principle of the application.
图1是本申请一种链接加壳跳转方法的流程图;Fig. 1 is a flow chart of a method for link packing and jumping in this application;
图2是本申请对第一网页链接数据进行加壳生成第二网页链接数据的方法示意图;Fig. 2 is a schematic diagram of a method for generating second webpage link data by packing the first webpage link data according to the present application;
图3是本申请对编码后的第一网页链接数据按照第一预设格式进行加壳的方法示意图;FIG. 3 is a schematic diagram of a method for packing the encoded first webpage link data according to the first preset format according to the present application;
图4是本申请完成加壳的方法流程示意图;Figure 4 is a schematic flow chart of the method for completing the shelling of the present application;
图5是本申请根据加壳后的第二网页链接数据进行跳转的方法示意图;FIG. 5 is a schematic diagram of a method for jumping according to the second webpage link data after being packed in this application;
图6是本申请链接加壳跳转装置框图;Figure 6 is a block diagram of the link packer jump device of the present application;
图7是本申请计算机设备基本结构框图。Figure 7 is a block diagram of the basic structure of the computer equipment of this application.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。The exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings.
图1是根据一示例性实施例示出的一种链接加壳跳转方法,包括:Fig. 1 shows a method for linking and shelling jump according to an exemplary embodiment, including:
S1000、获取待跳转的目标页面的第一网页链接数据,其中,所述目标页面具有至少一个与其伴生的拦截页面,所述拦截页面用于验证访问终端的访问权限;S1000. Obtain the first webpage link data of the target page to be redirected, where the target page has at least one interception page associated with it, and the interception page is used to verify the access authority of the access terminal;
目标页面为需要进行跳转,供用户浏览的页面,现有的页面中,当输入了网页链接信息后,会插入一个拦截页面,比如一个登陆界面,需要正确输入账号密码后方可看到目标页面的具体信息,或者需要进行验证后方可看到目标页面的内容,这个拦截页面通常与目标页面的网页链接数据伴生的。The target page is the page that needs to be redirected for the user to browse. In the existing page, when the webpage link information is entered, an intercept page will be inserted, such as a login interface. You need to enter the account password correctly to see the target page The specific information of the target page or the content of the target page need to be verified. This intercepted page is usually accompanied by the web link data of the target page.
本申请中公开的目标页面的链接称之为第一网页链接数据,所述第一网页链接数据为一种URL链接数据,URL链接的形式是:协议名://主机.域名/路径/文件名,其中协议包括:file本地系统文件、http:WWW服务器和ftp:ftp服务器等,要想获取指定链接数据,可采用爬虫的方式对数据进行监控,并及时获取。例如,使用HtmlDocument对象,引用using HtmlAgilityPack;在一实施例中,一种可行的步骤包括:The link of the target page disclosed in this application is called the first webpage link data, and the first webpage link data is a kind of URL link data, and the form of the URL link is: protocol name: //host.domain name/path/file The protocol includes: file local system file, http: WWW server and ftp: ftp server, etc. If you want to obtain the specified link data, you can use the crawler to monitor the data and obtain it in time. For example, using the HtmlDocument object, referencing using HtmlAgilityPack; in one embodiment, a feasible step includes:
步骤一:获取链接地址内容:var html=HttpDownLoadHelper.GetUtf8Html("链接地址");Step 1: Get the content of the link address: var html=HttpDownLoadHelper.GetUtf8Html("link address");
HttpDownLoadHelper类中的内容如下:The contents of the HttpDownLoadHelper class are as follows:
public class HttpDownLoadHelperpublic class HttpDownLoadHelper
{{
///<summary>///<summary>
///根据URL获取一个页面的Html内容///Acquire the Html content of a page according to the URL
///</summary>///</summary>
///<param name="url"></param>///<param name="url"></param>
///<returns></returns>///<returns></returns>
public static string GetUtf8Html(string url)public static string GetUtf8Html(string url)
{{
WebClient wc=new WebClient();WebClient wc=new WebClient();
wc.Encoding=Encoding.UTF8;wc.Encoding=Encoding.UTF8;
var html=wc.DownloadString(url);var html=wc.DownloadString(url);
return html;return html;
}}
}}
步骤二:Step two:
判断获取到的内容是否为空?Determine whether the obtained content is empty?
步骤三:Step three:
获取数据:retrieve data:
·实例化"HtmlDocument【HTML文档】"对象·Instantiate the "HtmlDocument [HTML document]" object
HtmlDocument doc=new HtmlDocument();HtmlDocument doc=new HtmlDocument();
·载入获取到的内容·Load the acquired content
doc.LoadHtml(html);doc.LoadHtml(html);
·获取文档中的根节点·Get the root node in the document
HtmlNode rootNode=doc.DocumentNode;HtmlNode rootNode=doc.DocumentNode;
·从根节点中通过标签获取指定的内容。· Obtain the specified content from the root node through the label.
HtmlNodeCollection titleNodes=rootNode.SelectNodes("对应的标签");存储数据:HtmlNodeCollection titleNodes=rootNode.SelectNodes("corresponding label"); storage data:
·创建一个存放数据的List集合· Create a List collection to store data
List<NewsList>newsList=new List<NewsList>();List<NewsList>newsList=new List<NewsList>();
NewsList对象的代码如下:The code of the NewsList object is as follows:
Figure PCTCN2019120603-appb-000001
Figure PCTCN2019120603-appb-000001
Figure PCTCN2019120603-appb-000002
Figure PCTCN2019120603-appb-000002
以上是一种采用HtmlDocument对象获取得到待跳转的第一网页链接数据的其中一种具体的实现方法,除此之外,获取待跳转的方法还有多种,任意一种能够抓取得到待跳转的第一网页链接数据即可。The above is one of the specific implementation methods of obtaining the link data of the first webpage to be jumped by using the HtmlDocument object. In addition, there are many ways to obtain the link to be jumped, any of which can be captured Just link the data of the first webpage to be jumped.
S2000、对所述第一网页链接数据添加壳数据以生成第二网页链接数据;S2000. Add shell data to the first webpage link data to generate second webpage link data;
通过壳数据进行加壳一般是指保护程序资源的方法,软件成面上的壳是一段执行于原始程序前的代码。原始程序的代码在加壳的过程中可能被压缩、加密。当加壳后的文件执行时,作为所添加的壳这段代码先于原始程序运行,他把压缩、加密后的代码还原成原始程序代码,然后再把执行权交还给原始代码。软件层面上的壳分为加密壳、压缩壳、伪装壳、多层壳等类,目的都是为了隐藏程序真正的入口点,防止被破解。Packing through shell data generally refers to a method of protecting program resources. The shell on the software surface is a piece of code that is executed before the original program. The code of the original program may be compressed and encrypted during the packing process. When the packed file is executed, this code as the added shell runs before the original program. It restores the compressed and encrypted code to the original program code, and then returns the execution right to the original code. Shells at the software level are divided into encrypted shells, compressed shells, disguised shells, multi-layered shells, etc. The purpose is to hide the real entry point of the program and prevent it from being cracked.
加壳过程中一般需要编写壳软件,目的是把壳软件附加到要保护的可执行文件中以实现某种目的,在一实施例中,请参阅图2,所述对所述第一网页链接数据添加壳数据以生成第二网页链接数据的方法包括:In the process of packing, it is generally necessary to write shell software. The purpose is to attach the shell software to the executable file to be protected to achieve a certain purpose. In one embodiment, please refer to FIG. 2 for the link to the first webpage. The method of adding shell data to the data to generate the second webpage link data includes:
S2100、对所述第一网页链接数据进行编码;S2100. Encoding the first webpage link data;
对URL网页进行编码以使所述第一网页链接数据符合url的规范,因为在标准的url规范中中文和很多的字符是不允许出现在url中的。例如ASCII的控制字符、一些非ASCII字符、一些保留字符、一些不安全的字符,例如“空格”,为了防止引起歧义,需要被转化为“+”,基于以上规则,则可按照字 符对应的字符编码,将不符合上述规则的,转化为percent encode编码的形式,这种转换规则属于十六进制,对非法字符的编码结果为三个字节(%+16进制字符*2)。percent encode从字面上语义明确的指出其使用%做编码标识,URL encode的实质就是正确的使用percent encode。正确完成URL encode的关键问题在于:什么时候,对哪些内容,采用何种过滤原则,以及如何生成percent编码。在WWW最初时,做法是将字符流转换成字节流,按照ASCII字符与字节一一对应可相互转换,使用对应ASCII字符的整型值作为%的后两个16进制字符,构成percent编码。现下做法包括,指定或系统默认的使用UTF8转成字节流,每个字节编成一个percent编码,例如中文“网易”的URL编码为%e7%bd%91%e6%98%93,而其UTF8字节流为e7 bd 91 e6 93,可以看出其一一对应关系。The URL webpage is encoded so that the link data of the first webpage conforms to the url specification, because Chinese and many characters are not allowed to appear in the url in the standard url specification. For example, ASCII control characters, some non-ASCII characters, some reserved characters, some unsafe characters, such as "space", in order to prevent ambiguity, need to be converted to "+", based on the above rules, you can follow the character corresponding to the character Encoding, which does not meet the above rules, is converted to percent encode. This conversion rule belongs to hexadecimal, and the result of encoding illegal characters is three bytes (%+hexadecimal characters*2). Percent encode literally points out that it uses% as the encoding mark. The essence of URL encode is to use percent encode correctly. The key questions for correct URL encoding are: when, what content, what filtering principle is used, and how to generate percent encoding. At the beginning of the WWW, the practice was to convert the character stream into a byte stream. According to the one-to-one correspondence between ASCII characters and bytes, they can be converted to each other. Use the integer value of the corresponding ASCII character as the last two hexadecimal characters of% to form percent coding. The current practice includes specifying or using UTF8 by default to convert into a byte stream, and each byte is encoded into a percent encoding. For example, the URL encoding of Chinese "NetEase" is %e7%bd%91%e6%98%93, and The UTF8 byte stream is e7 bd 91 e6 93, and the one-to-one correspondence can be seen.
S2200、对编码后的所述第一网页链接数据按照第一预设格式进行加壳。S2200. Pack the encoded first webpage link data according to a first preset format.
通过步骤S2100进行编码后,得到编码后的第一网页连接数据,在一实施例中,编码后的第一网页链接数据按照第一预设格式进行加壳。第一预设格式为事先预设的一种加壳的规则,包括以叠加的方式将获取的需要添加的壳软件中壳体的各层依赖数据按照一定的顺序依次叠加。After encoding in step S2100, the encoded first webpage link data is obtained. In one embodiment, the encoded first webpage link data is packed in a first preset format. The first preset format is a pre-preset rule for shelling, which includes sequentially superimposing the acquired layer-dependent data of the shell in the shell software that needs to be added in a certain order in a superimposed manner.
具体的,请参阅图3,所述对编码后的所述第一网页链接数据按照第一预设格式进行加壳的方法包括:Specifically, referring to FIG. 3, the method for shelling the encoded first webpage link data according to a first preset format includes:
S2210、获取待添加的壳体的各层依赖数据;S2210. Obtain the dependency data of each layer of the shell to be added;
加壳的目的是把壳软件的壳体附加到要保护的可执行文件中以实现某种目的,待添加的壳体实际上是一种数据,将这些数据附加在原网页链接数据中以进行封装。需要说明的是,壳体由多层依赖数据构成,这里的依赖数据实际上为一种配置参数,当配置参数只有一个时,直接将该配置参数添加至原网页链接中,若配置参数有多个,则构成了多层依赖数据,本申请中,获取待添加的壳体,实则获取该壳体上的所有依赖数据。The purpose of shelling is to attach the shell of the shell software to the executable file to be protected to achieve a certain purpose. The shell to be added is actually a kind of data, which is appended to the original web page link data for encapsulation . It should be noted that the shell is composed of multiple layers of dependent data. The dependent data here is actually a configuration parameter. When there is only one configuration parameter, directly add the configuration parameter to the original web link. If there are many configuration parameters This constitutes multiple layers of dependent data. In this application, if the shell to be added is obtained, all dependent data on the shell is actually obtained.
S2220、在所述第一网页链接数据的基础上依次叠加依赖数据以完成加壳。S2220. On the basis of the first webpage link data, the dependent data is sequentially superimposed to complete the shelling.
当获取了待添加的壳体的所有依赖数据后,需要对这些依赖数据进行排序,以按照特定的方式对这些依赖数据依次叠加在第一网页链接数据中。由于依赖数据为一种配置参数,不同的配置信息之间可能存在先后的关系,因此,这种 使依赖数据依次叠加的特定方式可以是根据依赖数据之间的先后关系进行的排序。在另一实施例中,依赖数据之间不存在先后的关系,但是存在所包含的范围的大小的关系,因此,这种使依赖数据依次叠加的特定方式可以是根据所述依赖数据所包含的范围的大小,从大到小依次叠加,或者从小到大依次叠加的方式进行叠加。在另一实施例中,依赖数据之间为并列的关系,因此,一种可行的方案为,按照指定的方式进行排列,例如,先叠加与时间相关的依赖数据,再添加与名称相关的依赖数据,其后叠加与地址相关的依赖数据等等。另一种可行的方案为随机排序叠加。After obtaining all the dependent data of the shell to be added, the dependent data needs to be sorted, so that the dependent data is sequentially superimposed on the first webpage link data in a specific manner. Since dependent data is a configuration parameter, there may be a sequential relationship between different configuration information. Therefore, this specific way of sequentially superimposing dependent data can be sorting based on the sequential relationship between dependent data. In another embodiment, the dependent data does not have a sequential relationship, but there is a relationship between the size of the included range. Therefore, this specific way of sequentially superimposing the dependent data may be based on the dependent data included The size of the range is superimposed in order from large to small, or superimposed in sequence from small to large. In another embodiment, the dependent data is in a parallel relationship. Therefore, a feasible solution is to arrange the dependent data in a specified manner, for example, first superimpose the dependent data related to time, and then add the dependent data related to the name. Data, and then overlay dependent data related to the address, etc. Another feasible solution is random sorting and stacking.
进一步的,请参阅图4,所述在所述第一网页链接数据的基础上依次叠加依赖数据以完成加壳的方法还包括:Further, referring to FIG. 4, the method of sequentially stacking dependent data on the basis of the first webpage link data to complete the shelling further includes:
S2221、获取编码后的所述第一网页链接数据的偏移地址;S2221. Obtain the encoded offset address of the first webpage link data.
S2222、将所述待添加的壳体的各层依赖数据存储在所述偏移地址中;S2222: Store the layer-dependent data of the shell to be added in the offset address;
S2223、依据所述依赖数据重定位所述待加壳的第一网页链接数据,并保存生成第二网页链接数据。S2223: Relocate the first webpage link data to be packed according to the dependent data, and save and generate the second webpage link data.
编码后的第一网页链接数据装入在对应的PE结构中,PE结构将所述程序数据载入内存中以方便进行地址转换并利于程序的执行。由于PE结构将所述第一网页链接数据的相关程序信息存入在内存中,因此,则可获取编码后的所述第一网页链接数据的偏移地址,所述偏移地址为在计算机中内存分段后,编码后的所述第一网页链接数据的相关程序所载入的地址相对于计算机内存分段后段首地址的偏移量。The encoded first webpage link data is loaded into the corresponding PE structure, and the PE structure loads the program data into the memory to facilitate address conversion and facilitate program execution. Since the PE structure stores the relevant program information of the first webpage link data in the memory, the encoded offset address of the first webpage link data can be obtained, and the offset address is in the computer After the memory is segmented, the offset of the coded address loaded by the relevant program of the first webpage link data relative to the first address of the segment after the computer memory is segmented.
在步骤S2210中获取了待添加的壳体的各层依赖数据后,将各层依赖数据存储在上述获取的偏移地址中,之后,再将所述依赖数据按照特定方式依次叠加,即相当于对编码后的所述第一网页链接数据进行重定位,当所述依赖数据叠加完毕,相当于所述第一网页链接数据重新定位完毕,对重定位后的数据进行保存,重定位后的链接数据则为第二网页链接数据,此时完成加壳操作。After obtaining the dependent data of each layer of the shell to be added in step S2210, the dependent data of each layer is stored in the offset address obtained above, and then the dependent data is sequentially superimposed in a specific manner, which is equivalent to Relocate the encoded first webpage link data. When the dependent data is superimposed, it is equivalent to the relocation of the first webpage link data. The relocated data is saved, and the relocated link is The data is the link data of the second webpage, and the shelling operation is completed at this time.
S3000、执行所述壳数据所表征的控制指令,以通过所述拦截页面的验证,跳转至所述目标页面。S3000. Execute the control instruction represented by the shell data to jump to the target page through the verification of the intercepted page.
当完成了加壳操作后,在服务器接收到打开当前网址的指令时,对加壳后的所述第二网页链接数据进行跳转。进一步的,请参阅图5,所述根据加壳后 的所述第二网页链接数据进行跳转的方法包括:After the shelling operation is completed, when the server receives an instruction to open the current website, the shelled second webpage link data is redirected. Further, referring to FIG. 5, the method of jumping according to the second webpage link data after being packed includes:
S3100、获取所述第二网页链接数据;S3100. Obtain the second webpage link data;
S3200、按照第二预设格式依次取出所述依赖数据以生成第三网页链接数据;S3200. Extract the dependent data in sequence according to the second preset format to generate third webpage link data;
S3300、对所述第三网页链接数据进行解码;S3300. Decode the third webpage link data;
S3400、重新加载解码后的所述第三网页链接数据并完成跳转。S3400: Reload the decoded third webpage link data and complete the jump.
这里的第二预设格式为在执行网页跳转过程中对所述第二网页链接数据进行读取的一种预设的格式,包括但不限于与所述依赖数据进行叠加的相反顺序,即当要对加壳后的所述第二网页链接数据进行跳转时,先脱去最外层的依赖数据,再依次脱去里层的依赖数据,直至获得编码状态下的第一网页链接数据,再对其进行解码以得到解码后的第三网页链接数据,根据获得的第三网页链接数据完成跳转,需要说明的是,这里的解码后的第三网页链接数据实际上就是未编码的第一网页链接数据,即讲过编码、加壳、脱壳和解码后,又回复到了原来的第一网页链接,从而保证网页的一致性,通过此方法,也可保证登录拦截采用本地界面以达到体验一致性。The second preset format here is a preset format for reading the second webpage link data during the execution of the webpage jump, including but not limited to the reverse order of superimposing the dependent data, that is, When you want to jump to the second webpage link data after packing, first remove the outermost dependent data, and then sequentially remove the dependent data of the inner layer, until the first webpage link data in the encoding state is obtained , And then decode it to obtain the decoded third webpage link data, and complete the jump according to the obtained third webpage link data. It should be noted that the decoded third webpage link data here is actually unencoded The first webpage link data, that is, after talking about encoding, packing, unpacking and decoding, it reverts to the original first webpage link, thus ensuring the consistency of the webpage. This method can also ensure that the login interception uses the local interface to Achieve experience consistency.
具体的,在一实施例中,通过对http的url链接进行加壳和脱壳处理,最终还是一个url链接,这样方便用于跳转配置,而且所有依赖信息也在Url里,对http的url链接做编码处理,可使用schema对其进行加壳,schema就是定义启动应用程序的url链接,如patoa代表启动一账通app,加壳格式为:patoa://pingan.com/web?url=encodeHttpUrl&dependency2=xxx&dependency1=xxx,这样就形成了一个加壳后的schema url。这个url可以和普通url一样使用用于后台配置。应用程序的路由终端拿到这个加壳后的url链接数据就会跳转到路径path为/web的分支,取出依赖,依赖的拦截顺序是最末端的先实现,当满足条件后,脱去第一个依赖变成patoa://pingan.com/web?url=encodeHttpUrl&dependency2=xxx,此Url链接数据再次进入路由终端脱去第二层dependency2,直至Url完全脱去依赖,路由终端就会对encdeHttpUrl做解码,并启动网页浏览器,加载该Http Url链接数据进行跳转。Specifically, in one embodiment, by shelling and unpacking the http url link, it is finally a url link, which is convenient for jump configuration, and all the dependent information is also in the Url. The link is encoded, and the schema can be used to pack it. The schema is to define the URL link that starts the application. For example, patoa stands for launching the One Account app, and the shell format is: patoa://pingan.com/web? url=encodeHttpUrl&dependency2=xxx&dependency1=xxx, thus forming a schema url after packing. This url can be used for background configuration like normal url. The routing terminal of the application will jump to the branch with the path path of /web after receiving the shelled url link data, and take out the dependency. The interception order of the dependency is implemented first. When the conditions are met, the first is removed. A dependency becomes patoa://pingan.com/web? url=encodeHttpUrl&dependency2=xxx, this Url link data enters the routing terminal again to remove the second layer of dependency2, until Url is completely removed from the dependency, the routing terminal will decode encdeHttpUrl, start the web browser, and load the Http Url link data. Jump.
本申请主要用于具有编辑权限的网页的跳转,比如企业内部网页,通过对 这些网页中的URL网页链接做加壳、脱壳处理,对HTTP网页都可以以添加依赖的方式,借助本地路由终端帮助达到网页和依赖的解耦,从而实现跳过拦截页面,自动进行页面跳转,直接进行登录的目的,其在加壳前的第一网页链接数据与脱壳后的第三网页链接数据跳转的页面是一致的,保证跳转页面的一致性。This application is mainly used to redirect webpages with editing permissions, such as corporate internal webpages. By shelling and unpacking the URL webpage links in these webpages, HTTP webpages can be added with the help of local routing. The terminal helps to achieve the decoupling of web pages and dependencies, so as to achieve the purpose of skipping the interception page, automatically jumping to the page, and directly logging in. The first webpage link data before the packer and the third webpage link data after the packer The jumped pages are consistent to ensure the consistency of the jumped pages.
另一方面,请参阅图6,本申请还公开一种链接加壳跳转装置,包括:On the other hand, please refer to FIG. 6, this application also discloses a link packer jump device, including:
获取模块1000:被配置为执行被配置为执行获取待跳转的目标页面的第一网页链接数据,其中,所述目标页面具有至少一个与其伴生的拦截页面,所述拦截页面用于验证访问终端的访问权限;The obtaining module 1000: configured to execute the first webpage link data configured to obtain the target page to be jumped, wherein the target page has at least one intercepted page associated with it, and the intercepted page is used to verify the access terminal Access rights;
第一网页链接数据为一种URL链接数据,URL链接的形式是:协议名://主机.域名/路径/文件名,其中协议包括:file本地系统文件、http:WWW服务器和ftp:ftp服务器等,要想获取指定链接数据,可采用爬虫的方式对数据进行监控,并及时获取。The first webpage link data is a kind of URL link data. The form of the URL link is: protocol name: //host. domain name/path/file name. The protocols include: file local system file, http: WWW server and ftp: ftp server If you want to obtain the specified link data, you can monitor the data by crawling and obtain it in time.
处理模块2000:被配置为执行对所述第一网页链接数据添加壳数据以生成第二网页链接数据;Processing module 2000: configured to execute adding shell data to the first webpage link data to generate second webpage link data;
加壳一般是指保护程序资源的方法,软件成面上的壳是一段执行于原始程序前的代码。原始程序的代码在加壳的过程中可能被压缩、加密。当加壳后的文件执行时,作为所添加的壳这段代码先于原始程序运行,他把压缩、加密后的代码还原成原始程序代码,然后再把执行权交还给原始代码。软件层面上的壳分为加密壳、压缩壳、伪装壳、多层壳等类,目的都是为了隐藏程序真正的入口点,防止被破解。Shelling generally refers to a method of protecting program resources. The shell of the software is a piece of code that is executed before the original program. The code of the original program may be compressed and encrypted during the packing process. When the packed file is executed, this code as the added shell runs before the original program. It restores the compressed and encrypted code to the original program code, and then returns the execution right to the original code. Shells at the software level are divided into encrypted shells, compressed shells, disguised shells, multi-layered shells, etc. The purpose is to hide the real entry point of the program and prevent it from being cracked.
执行模块3000:被配置为执行执行所述壳数据所表征的控制指令,以通过所述拦截页面的验证,跳转至所述目标页面。The execution module 3000 is configured to execute the control instruction represented by the shell data to jump to the target page through the verification of the intercepted page.
当完成了加壳操作后,在服务器接收到打开当前网址的指令时,对加壳后的所述第二网页链接数据进行跳转。After the shelling operation is completed, when the server receives an instruction to open the current website, the shelled second webpage link data is redirected.
可选的,所述处理模块包括:Optionally, the processing module includes:
编码模块:被配置为执行对所述第一网页链接数据进行编码;Encoding module: configured to perform encoding of the first webpage link data;
加壳模块:被配置为执行对编码后的所述第一网页链接数据按照第一预设格式进行加壳。Packing module: configured to pack the encoded first webpage link data according to a first preset format.
对URL网页进行编码以使所述第一网页链接数据符合url的规范,因为在标准的url规范中中文和很多的字符是不允许出现在url中的。例如ASCII的控制字符、一些非ASCII字符、一些保留字符、一些不安全的字符,例如“空格”,为了防止引起歧义,需要被转化为“+”,基于以上规则,则可按照字符对应的字符编码,将不符合上述规则的,转化为percent encode编码的形式,这种转换规则属于十六进制,对非法字符的编码结果为三个字节(%+16进制字符*2)。percent encode从字面上语义明确的指出其使用%做编码标识,URL encode的实质就是正确的使用percent encode。正确完成URL encode的关键问题在于:什么时候,对哪些内容,采用何种过滤原则,以及如何生成percent编码。在WWW最初时,做法是将字符流转换成字节流,按照ASCII字符与字节一一对应可相互转换,使用对应ASCII字符的整型值作为%的后两个16进制字符,构成percent编码。现下做法包括,指定或系统默认的使用UTF8转成字节流,每个字节编成一个percent编码,例如中文“网易”的URL编码为%e7%bd%91%e6%98%93,而其UTF8字节流为e7 bd 91 e6 93,可以看出其一一对应关系。得到编码后的第一网页连接数据,在一实施例中,编码后的第一网页链接数据按照第一预设格式进行加壳。第一预设格式为事先预设的一种加壳的规则,包括以叠加的方式将获取的需要添加的壳软件中壳体的各层依赖数据按照一定的顺序依次叠加。The URL webpage is encoded so that the first webpage link data conforms to the url specification, because Chinese and many characters are not allowed to appear in the url in the standard url specification. For example, ASCII control characters, some non-ASCII characters, some reserved characters, some unsafe characters, such as "space", in order to prevent ambiguity, need to be converted to "+", based on the above rules, you can follow the character corresponding to the character Encoding, which does not meet the above rules, is converted into percent encode. This conversion rule belongs to hexadecimal, and the result of encoding illegal characters is three bytes (%+hexadecimal characters*2). Percent encode literally clearly points out that it uses% as an encoding mark. The essence of URL encode is to use percent encode correctly. The key questions for correct URL encoding are: when, what content, what filtering principle is used, and how to generate percent encoding. At the beginning of the WWW, the practice was to convert the character stream into a byte stream. According to the one-to-one correspondence between ASCII characters and bytes, they can be converted to each other. Use the integer value of the corresponding ASCII character as the last two hexadecimal characters of% to form percent coding. The current practice includes specifying or using UTF8 by default to convert into a byte stream, and each byte is encoded into a percent encoding. For example, the URL encoding of Chinese "NetEase" is %e7%bd%91%e6%98%93, and The UTF8 byte stream is e7 bd 91 e6 93, and the one-to-one correspondence can be seen. The encoded first webpage link data is obtained. In one embodiment, the encoded first webpage link data is packed according to the first preset format. The first preset format is a pre-preset rule for shelling, which includes sequentially superimposing the acquired layer-dependent data of the shell in the shell software that needs to be added in a certain order.
可选的,所述加壳模块包括:Optionally, the shelling module includes:
依赖获取模块:被配置为执行获取待添加的壳体的各层依赖数据;Dependency acquisition module: configured to execute and acquire the dependent data of each layer of the shell to be added;
叠加模块:被配置为执行在所述第一网页链接数据的基础上依次叠加依赖数据以完成加壳。The superposition module is configured to sequentially superimpose dependent data on the basis of the first webpage link data to complete the shelling.
加壳的目的是把壳软件的壳体附加到要保护的可执行文件中以实现某种目的,待添加的壳体实际上是一种数据,将这些数据附加在原网页链接数据中以进行封装。需要说明的是,壳体由多层依赖数据构成,这里的依赖数据实际上为一种配置参数,当配置参数只有一个时,直接将该配置参数添加至原网页链接中,若配置参数有多个,则构成了多层依赖数据,本申请中,获取待添加的壳体,实则获取该壳体上的所有依赖数据。The purpose of shelling is to attach the shell of the shell software to the executable file to be protected to achieve a certain purpose. The shell to be added is actually a kind of data, which is appended to the original web page link data for encapsulation . It should be noted that the shell is composed of multiple layers of dependent data. The dependent data here is actually a configuration parameter. When there is only one configuration parameter, directly add the configuration parameter to the original web link. If there are many configuration parameters This constitutes multiple layers of dependent data. In this application, if the shell to be added is acquired, all dependent data on the shell is actually acquired.
当获取了待添加的壳体的所有依赖数据后,需要对这些依赖数据进行排序, 以按照特定的方式对这些依赖数据依次叠加在第一网页链接数据中。由于依赖数据为一种配置参数,不同的配置信息之间可能存在先后的关系,因此,这种使依赖数据依次叠加的特定方式可以是根据依赖数据之间的先后关系进行的排序。在另一实施例中,依赖数据之间不存在先后的关系,但是存在所包含的范围的大小的关系,因此,这种使依赖数据依次叠加的特定方式可以是根据所述依赖数据所包含的范围的大小,从大到小依次叠加,或者从小到大依次叠加的方式进行叠加。在另一实施例中,依赖数据之间为并列的关系,因此,一种可行的方案为,按照指定的方式进行排列,例如,先叠加与时间相关的依赖数据,再添加与名称相关的依赖数据,其后叠加与地址相关的依赖数据等等。另一种可行的方案为随机排序叠加。After obtaining all the dependent data of the shell to be added, the dependent data needs to be sorted, so that the dependent data is sequentially superimposed on the first webpage link data in a specific manner. Since dependent data is a configuration parameter, there may be a sequential relationship between different configuration information. Therefore, this specific way of sequentially superimposing dependent data may be sorting based on the sequential relationship between dependent data. In another embodiment, there is no sequential relationship between the dependent data, but there is a relationship in the size of the included range. Therefore, this specific way of sequentially superimposing dependent data may be based on the dependent data included The size of the range is superimposed in order from large to small, or superimposed in sequence from small to large. In another embodiment, the dependent data are in a parallel relationship. Therefore, a feasible solution is to arrange in a specified manner, for example, to superimpose time-related dependent data first, and then add name-related dependencies Data, and then overlay dependent data related to the address, etc. Another feasible solution is random sorting and stacking.
可选的,所述叠加模块包括:Optionally, the overlay module includes:
地址获取模块:被配置为执行获取编码后的所述第一网页链接数据的偏移地址;Address obtaining module: configured to perform obtaining the offset address of the first webpage link data after encoding;
存储模块:被配置为执行将所述待添加的壳体的各层依赖数据存储在所述偏移地址中;Storage module: configured to execute storing the layer-dependent data of the shell to be added in the offset address;
重定位模块:被配置为执行依据所述依赖数据重定位所述待加壳的第一网页链接数据,并保存生成第二网页链接数据。The relocation module is configured to perform relocation of the first webpage link data to be packed according to the dependent data, and save and generate the second webpage link data.
编码后的第一网页链接数据装入在对应的PE结构中,PE结构将所述程序数据载入内存中以方便进行地址转换并利于程序的执行。由于PE结构将所述第一网页链接数据的相关程序信息存入在内存中,因此,则可获取编码后的所述第一网页链接数据的偏移地址,所述偏移地址为在计算机中内存分段后,编码后的所述第一网页链接数据的相关程序所载入的地址相对于计算机内存分段后段首地址的偏移量。The encoded first webpage link data is loaded into the corresponding PE structure, and the PE structure loads the program data into the memory to facilitate address conversion and facilitate program execution. Since the PE structure stores the relevant program information of the first webpage link data in the memory, the encoded offset address of the first webpage link data can be obtained, and the offset address is in the computer After the memory is segmented, the offset of the coded address loaded by the relevant program of the first webpage link data relative to the first address of the segment after the computer memory is segmented.
获取了待添加的壳体的各层依赖数据后,将各层依赖数据存储在上述获取的偏移地址中,之后,再将所述依赖数据按照特定方式依次叠加,即相当于对编码后的所述第一网页链接数据进行重定位,当所述依赖数据叠加完毕,相当于所述第一网页链接数据重新定位完毕,对重定位后的数据进行保存,重定位后的链接数据则为第二网页链接数据,此时完成加壳操作。After obtaining the dependent data of each layer of the shell to be added, the dependent data of each layer is stored in the offset address obtained above, and then the dependent data is sequentially superimposed in a specific manner, which is equivalent to the encoded The first webpage link data is relocated. When the dependent data is superimposed, it is equivalent to the relocation of the first webpage link data. The relocated data is saved, and the relocated link data is the first Second, the webpage link data, and the packer operation is now complete.
当完成了加壳操作后,在服务器接收到打开当前网址的指令时,对加壳后 的所述第二网页链接数据进行跳转。可选的,所述执行模块包括:After the shelling operation is completed, when the server receives an instruction to open the current website, the shelled second webpage link data is redirected. Optionally, the execution module includes:
第二网页获取模块:被配置为执行获取所述第二网页链接数据;The second webpage obtaining module: configured to execute and obtain the second webpage link data;
依赖提取模块:被配置为执行按照第二预设格式依次取出所述依赖数据以生成第三网页链接数据;Dependency extraction module: configured to execute to extract the dependent data sequentially according to the second preset format to generate third webpage link data;
解码模块:被配置为执行对所述第三网页链接数据进行解码;Decoding module: configured to perform decoding of the third webpage link data;
跳转模块:被配置为执行重新加载解码后的所述第三网页链接数据并完成跳转。Jump module: configured to perform reloading of the decoded third webpage link data and complete the jump.
这里的第二预设格式为在执行网页跳转过程中对所述第二网页链接数据进行读取的一种预设的格式,包括但不限于与所述依赖数据进行叠加的相反顺序,即当要对加壳后的所述第二网页链接数据进行跳转时,先脱去最外层的依赖数据,再依次脱去里层的依赖数据,直至获得编码状态下的第一网页链接数据,再对其进行解码以得到解码后的第三网页链接数据,根据获得的第三网页链接数据完成跳转,需要说明的是,这里的解码后的第三网页链接数据实际上就是未编码的第一网页链接数据,即讲过编码、加壳、脱壳和解码后,又回复到了原来的第一网页链接,从而保证网页的一致性。The second preset format here is a preset format for reading the second webpage link data during the execution of the webpage jump, including but not limited to the reverse order of superimposing the dependent data, that is, When you want to jump to the second webpage link data after packing, first remove the outermost dependent data, and then sequentially remove the dependent data of the inner layer, until the first webpage link data in the encoding state is obtained , And then decode it to obtain the decoded third webpage link data, and complete the jump according to the obtained third webpage link data. It should be noted that the decoded third webpage link data here is actually unencoded The link data of the first webpage, after talking about encoding, shelling, unpacking, and decoding, is restored to the original link of the first webpage, thereby ensuring the consistency of the webpage.
本申请实施例提供计算机设备基本结构框图请参阅图7。Please refer to FIG. 7 for the basic structural block diagram of the computer equipment provided by the embodiment of the present application.
该计算机设备包括通过系统总线连接的处理器、非易失性存储介质、存储器和网络接口。其中,该计算机设备的非易失性存储介质存储有操作系统、数据库和计算机可读指令,数据库中可存储有控件信息序列,该计算机可读指令被处理器执行时,可使得处理器实现一种链接加壳跳转方法。该计算机设备的处理器用于提供计算和控制能力,支撑整个计算机设备的运行。该计算机设备的存储器中可存储有计算机可读指令,该计算机可读指令被处理器执行时,可使得处理器执行一种链接加壳跳转方法。该计算机设备的网络接口用于与终端连接通信。本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。The computer device includes a processor, a nonvolatile storage medium, a memory, and a network interface connected through a system bus. Wherein, the non-volatile storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database may store control information sequences. When the computer-readable instructions are executed by the processor, the processor can realize a A kind of link packer jump method. The processor of the computer equipment is used to provide calculation and control capabilities, and supports the operation of the entire computer equipment. A computer-readable instruction may be stored in the memory of the computer device, and when the computer-readable instruction is executed by the processor, the processor may execute a link-packing jump method. The network interface of the computer device is used to connect and communicate with the terminal. Those skilled in the art can understand that the structure shown in FIG. 7 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
计算机设备通过接收关联的客户端发送的提示行为的状态信息,即关联终端是否开启提示以及贷款人是否关闭该提示任务。通过验证上述任务条件是否 达成,进而向关联终端发送对应的预设指令,以使关联终端能够根据该预设指令执行相应的操作,从而实现了对关联终端的有效监管。同时,在提示信息状态与预设的状态指令不相同时,服务器端控制关联终端持续进行响铃,以防止关联终端的提示任务在执行一段时间后自动终止的问题。The computer device receives the status information of the prompt behavior sent by the associated client, that is, whether the associated terminal opens the prompt and whether the lender closes the prompt task. By verifying whether the above-mentioned task conditions are fulfilled, the corresponding preset instruction is sent to the associated terminal, so that the associated terminal can execute corresponding operations according to the preset instruction, thereby realizing effective supervision of the associated terminal. At the same time, when the prompt information state is different from the preset state command, the server side controls the associated terminal to continue ringing to prevent the prompt task of the associated terminal from being automatically terminated after a period of time.
本申请还提供一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述任一实施例所述链接加壳跳转方法。The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the link packer described in any of the above embodiments. Jump method.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,前述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random Access Memory,RAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The computer program can be stored in a computer readable storage medium. When executed, it may include the processes of the above-mentioned method embodiments. Among them, the aforementioned storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flowchart of the drawings are shown in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless explicitly stated in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least part of the steps in the flowchart of the drawings may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the order of execution is also It is not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least a part of sub-steps or stages of other steps.
以上所述仅是本申请的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only part of the implementation of this application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of this application, several improvements and modifications can be made, and these improvements and modifications are also Should be regarded as the scope of protection of this application.

Claims (20)

  1. 一种链接加壳跳转方法,其特征在于,包括:A method for link packing and jumping, which is characterized in that it comprises:
    获取待跳转的目标页面的第一网页链接数据,其中,所述目标页面具有至少一个与其伴生的拦截页面,所述拦截页面用于验证访问终端的访问权限;Acquiring the first webpage link data of the target page to be redirected, wherein the target page has at least one interception page associated with it, and the interception page is used to verify the access authority of the access terminal;
    对所述第一网页链接数据添加壳数据以生成第二网页链接数据;Adding shell data to the first webpage link data to generate second webpage link data;
    执行所述壳数据所表征的控制指令,以通过所述拦截页面的验证,跳转至所述目标页面。The control command represented by the shell data is executed to jump to the target page through the verification of the intercepted page.
  2. 根据权利要求1所述的链接加壳跳转方法,其特征在于,所述对所述第一网页链接数据添加壳数据以生成第二网页链接数据的方法包括:4. The link shelling jump method according to claim 1, wherein the method of adding shell data to the first webpage link data to generate the second webpage link data comprises:
    对所述第一网页链接数据进行编码;Encoding the first webpage link data;
    对编码后的所述第一网页链接数据按照第一预设格式进行加壳。Packing the encoded first webpage link data according to a first preset format.
  3. 根据权利要求2所述的链接加壳跳转方法,其特征在于,所述对编码后的所述第一网页链接数据按照第一预设格式进行加壳的方法包括:4. The link shelling jump method according to claim 2, wherein the method of shelling the encoded first webpage link data according to a first preset format comprises:
    获取待添加的壳体的各层依赖数据;Obtain the dependent data of each layer of the shell to be added;
    在所述第一网页链接数据的基础上依次叠加依赖数据以完成加壳。On the basis of the first webpage link data, the dependent data is sequentially superimposed to complete the shelling.
  4. 根据权利要求3所述的链接加壳跳转方法,其特征在于,所述在所述第一网页链接数据的基础上依次叠加依赖数据以完成加壳的方法包括:The method of linking and shelling jump according to claim 3, wherein the method of sequentially superimposing dependent data on the basis of the first webpage link data to complete the shelling comprises:
    获取编码后的所述第一网页链接数据的偏移地址;Acquiring the encoded offset address of the first webpage link data;
    将所述待添加的壳体的各层依赖数据存储在所述偏移地址中;Storing the layer-dependent data of the shell to be added in the offset address;
    依据所述依赖数据重定位所述待加壳的第一网页链接数据,并保存生成第二网页链接数据。Relocate the first webpage link data to be packed according to the dependent data, and save and generate the second webpage link data.
  5. 根据权利要求4所述的链接加壳跳转方法,其特征在于,所述通过拦截页面的验证后,跳转至所述目标页面的方法包括:The method for jumping to the link packer according to claim 4, wherein the method of jumping to the target page after verification of the intercepted page comprises:
    获取所述第二网页链接数据;Acquiring the second webpage link data;
    按照第二预设格式依次取出所述依赖数据以生成第三网页链接数据;Sequentially extracting the dependent data according to the second preset format to generate third webpage link data;
    对所述第三网页链接数据进行解码;Decoding the third webpage link data;
    重新加载解码后的所述第三网页链接数据并完成跳转。Reload the decoded third webpage link data and complete the jump.
  6. 根据权利要求3所述的链接加壳跳转方法,其特征在于,所述在所述第一网页链接数据的基础上依次叠加依赖数据以完成加壳,包括:The method for jumping to link packers according to claim 3, wherein the step of sequentially superposing dependent data on the basis of the link data of the first webpage to complete the packer comprises:
    根据依赖数据之间的先后关系进行排序;Sort according to the sequence of dependent data;
    根据所述先后关系的排序在所述第一网页链接数据的基础上依次叠加依赖数据以完成加壳。The dependent data is sequentially superimposed on the basis of the first webpage link data according to the sequence of the sequence to complete the shelling.
  7. 根据权利要求3所述的链接加壳跳转方法,其特征在于,所述在所述第一网页链接数据的基础上依次叠加依赖数据以完成加壳,包括:The method for jumping to link packers according to claim 3, wherein the step of sequentially superposing dependent data on the basis of the link data of the first webpage to complete the packer comprises:
    获取所述依赖数据所包含的范围的大小;Obtaining the size of the range included in the dependent data;
    根据各层依赖数据所包含的范围的大小,在所述第一网页链接数据的基础上依次叠加依赖数据以完成加壳。According to the size of the range included in the dependent data of each layer, the dependent data is sequentially superimposed on the first webpage link data to complete the packing.
  8. 一种链接加壳跳转装置,其特征在于,包括:A link packer jump device, characterized in that it comprises:
    获取模块:被配置为执行获取待跳转的目标页面的第一网页链接数据,其中,所述目标页面具有至少一个与其伴生的拦截页面,所述拦截页面用于验证访问终端的访问权限;Obtaining module: configured to execute to obtain the first webpage link data of the target page to be jumped, wherein the target page has at least one interception page associated with it, and the interception page is used to verify the access authority of the access terminal;
    处理模块:被配置为执行对所述第一网页链接数据添加壳数据以生成第二网页链接数据;Processing module: configured to perform adding shell data to the first webpage link data to generate second webpage link data;
    执行模块:被配置为执行所述壳数据所表征的控制指令,以通过所述拦截页面的验证,跳转至所述目标页面。Execution module: configured to execute the control instruction represented by the shell data to jump to the target page through the verification of the intercepted page.
  9. 根据权利要求8所述的链接加壳跳转装置,其特征在于,所述处理模块包括:The link packer jump device according to claim 8, wherein the processing module comprises:
    编码模块:被配置为执行对所述第一网页链接数据进行编码;Encoding module: configured to perform encoding of the first webpage link data;
    加壳模块:被配置为执行对编码后的所述第一网页链接数据按照第一预设格式进行加壳。Packing module: configured to pack the encoded first webpage link data according to a first preset format.
  10. 根据权利要求9所述的链接加壳跳转装置,其特征在于,所述加壳模块包括:The link packer jumping device according to claim 9, wherein the packer module comprises:
    依赖获取模块:被配置为执行获取待添加的壳体的各层依赖数据;Dependency acquisition module: configured to execute and acquire the dependent data of each layer of the shell to be added;
    叠加模块:被配置为执行在所述第一网页链接数据的基础上依次叠加依赖数据以完成加壳。The superposition module is configured to sequentially superimpose dependent data on the basis of the first webpage link data to complete the shelling.
  11. 根据权利要求10所述的链接加壳跳转装置,其特征在于,所述叠加模块包括:The link packer jump device according to claim 10, wherein the superimposing module comprises:
    地址获取模块:被配置为执行获取编码后的所述第一网页链接数据的偏移 地址;Address obtaining module: configured to perform obtaining the offset address of the encoded first webpage link data;
    存储模块:被配置为执行将所述待添加的壳体的各层依赖数据存储在所述偏移地址中;Storage module: configured to execute storing the layer-dependent data of the shell to be added in the offset address;
    重定位模块:被配置为执行依据所述依赖数据重定位所述待加壳的第一网页链接数据,并保存生成第二网页链接数据。The relocation module is configured to perform relocation of the first webpage link data to be packed according to the dependent data, and save and generate the second webpage link data.
  12. 根据权利要求11所述的链接加壳跳转装置,其特征在于,所述执行模块包括:The link packer jumping device according to claim 11, wherein the execution module comprises:
    第二网页获取模块:被配置为执行获取所述第二网页链接数据;The second webpage obtaining module: configured to execute and obtain the second webpage link data;
    依赖提取模块:被配置为执行按照第二预设格式依次取出所述依赖数据以生成第三网页链接数据;Dependency extraction module: configured to execute to extract the dependent data sequentially according to the second preset format to generate third webpage link data;
    解码模块:被配置为执行对所述第三网页链接数据进行解码;Decoding module: configured to perform decoding of the third webpage link data;
    跳转模块:被配置为执行重新加载解码后的所述第三网页链接数据并完成跳转。Jump module: configured to perform reloading of the decoded third webpage link data and complete the jump.
  13. 根据权利要求10所述的链接加壳跳转装置,其特征在于,所述叠加模块具体用于:The link packer jump device according to claim 10, wherein the overlay module is specifically configured to:
    根据依赖数据之间的先后关系进行排序;Sort according to the sequence of dependent data;
    根据所述先后关系的排序在所述第一网页链接数据的基础上依次叠加依赖数据以完成加壳。The dependent data is sequentially superimposed on the basis of the first webpage link data according to the sequence of the sequence to complete the shelling.
  14. 根据权利要求10所述的链接加壳跳转装置,其特征在于,所述叠加模块具体用于:The link packer jump device according to claim 10, wherein the overlay module is specifically configured to:
    获取所述依赖数据所包含的范围的大小;Obtaining the size of the range included in the dependent data;
    根据各层依赖数据所包含的范围的大小,在所述第一网页链接数据的基础上依次叠加依赖数据以完成加壳。According to the size of the range included in the dependent data of each layer, the dependent data is sequentially superimposed on the first webpage link data to complete the shelling.
  15. 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下步骤:A computer device includes a memory and a processor. The memory stores computer readable instructions, and when the computer readable instructions are executed by the processor, the processor executes the following steps:
    获取待跳转的目标页面的第一网页链接数据,其中,所述目标页面具有至少一个与其伴生的拦截页面,所述拦截页面用于验证访问终端的访问权限;Acquiring the first webpage link data of the target page to be redirected, wherein the target page has at least one interception page associated with it, and the interception page is used to verify the access authority of the access terminal;
    对所述第一网页链接数据添加壳数据以生成第二网页链接数据;Adding shell data to the first webpage link data to generate second webpage link data;
    执行所述壳数据所表征的控制指令,以通过所述拦截页面的验证,跳转至所述目标页面。The control command represented by the shell data is executed to jump to the target page through the verification of the intercepted page.
  16. 根据权利要求15所述的计算机设备,其特征在于,所述处理器在执行所述对所述第一网页链接数据添加壳数据以生成第二网页链接数据时,具体执行以下步骤:The computer device according to claim 15, wherein when the processor executes the adding shell data to the first webpage link data to generate the second webpage link data, the processor specifically executes the following steps:
    对所述第一网页链接数据进行编码;Encoding the first webpage link data;
    对编码后的所述第一网页链接数据按照第一预设格式进行加壳。Packing the encoded first webpage link data according to a first preset format.
  17. 根据权利要求16所述的计算机设备,其特征在于,所述处理器在执行所述对编码后的所述第一网页链接数据按照第一预设格式进行加壳时,具体执行以下步骤:16. The computer device according to claim 16, wherein the processor specifically executes the following steps when executing the shelling of the encoded first webpage link data according to a first preset format:
    获取待添加的壳体的各层依赖数据;Obtain the dependent data of each layer of the shell to be added;
    在所述第一网页链接数据的基础上依次叠加依赖数据以完成加壳。On the basis of the first webpage link data, the dependent data is sequentially superimposed to complete the shelling.
  18. 根据权利要求17所述的计算机设备,其特征在于,所述处理器在执行所述在所述第一网页链接数据的基础上依次叠加依赖数据以完成加壳时,具体执行以下步骤:18. The computer device according to claim 17, wherein the processor performs the following steps when executing the step of sequentially superimposing dependent data on the basis of the first webpage link data to complete the packing:
    获取编码后的所述第一网页链接数据的偏移地址;Acquiring the encoded offset address of the first webpage link data;
    将所述待添加的壳体的各层依赖数据存储在所述偏移地址中;Storing the layer-dependent data of the shell to be added in the offset address;
    依据所述依赖数据重定位所述待加壳的第一网页链接数据,并保存生成第二网页链接数据。Relocate the first webpage link data to be packed according to the dependent data, and save and generate the second webpage link data.
  19. 根据权利要求18所述的计算机设备,其特征在于,所述处理器在执行所述通过拦截页面的验证后,跳转至所述目标页面时,具体执行以下步骤:18. The computer device according to claim 18, wherein the processor specifically executes the following steps when jumping to the target page after performing the verification of the intercepted page:
    获取所述第二网页链接数据;Acquiring the second webpage link data;
    按照第二预设格式依次取出所述依赖数据以生成第三网页链接数据;Sequentially extracting the dependent data according to the second preset format to generate third webpage link data;
    对所述第三网页链接数据进行解码;Decoding the third webpage link data;
    重新加载解码后的所述第三网页链接数据并完成跳转。Reload the decoded third webpage link data and complete the jump.
  20. 一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如权利要求1至7中任一项权利要求所述的链接加壳跳转方法的步骤。A storage medium storing computer-readable instructions that, when executed by one or more processors, cause one or more processors to execute as described in any one of claims 1 to 7 The steps of the link packer jump method.
PCT/CN2019/120603 2019-05-24 2019-11-25 Link shell adding and jumping method and apparatus, and electronic device and storage medium WO2020238092A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910441327.5A CN110321501A (en) 2019-05-24 2019-05-24 Link shell adding jump method, device, electronic equipment and storage medium
CN201910441327.5 2019-05-24

Publications (1)

Publication Number Publication Date
WO2020238092A1 true WO2020238092A1 (en) 2020-12-03

Family

ID=68119108

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/120603 WO2020238092A1 (en) 2019-05-24 2019-11-25 Link shell adding and jumping method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN110321501A (en)
WO (1) WO2020238092A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321501A (en) * 2019-05-24 2019-10-11 深圳壹账通智能科技有限公司 Link shell adding jump method, device, electronic equipment and storage medium
CN111428442B (en) * 2020-03-25 2023-04-21 北京思特奇信息技术股份有限公司 Data conversion method, system and storage medium without dictionary table
CN112347490A (en) * 2020-06-11 2021-02-09 广州锦行网络科技有限公司 Application program shell adding method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140156613A1 (en) * 2012-09-18 2014-06-05 Squash Compression, LLC Methods and Apparatus for Increasing the Efficiency of Electronic Data Storage and Transmission
CN105677730A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Method and device for reading webpage resources and electronic equipment
CN107729106A (en) * 2017-10-09 2018-02-23 北京京东尚科信息技术有限公司 It is a kind of that the method and apparatus quickly redirected are realized between application component
CN108491247A (en) * 2018-04-10 2018-09-04 武汉斗鱼网络科技有限公司 Method for page jump, device, terminal and computer-readable medium
CN110321501A (en) * 2019-05-24 2019-10-11 深圳壹账通智能科技有限公司 Link shell adding jump method, device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140156613A1 (en) * 2012-09-18 2014-06-05 Squash Compression, LLC Methods and Apparatus for Increasing the Efficiency of Electronic Data Storage and Transmission
CN105677730A (en) * 2015-12-29 2016-06-15 北京金山安全软件有限公司 Method and device for reading webpage resources and electronic equipment
CN107729106A (en) * 2017-10-09 2018-02-23 北京京东尚科信息技术有限公司 It is a kind of that the method and apparatus quickly redirected are realized between application component
CN108491247A (en) * 2018-04-10 2018-09-04 武汉斗鱼网络科技有限公司 Method for page jump, device, terminal and computer-readable medium
CN110321501A (en) * 2019-05-24 2019-10-11 深圳壹账通智能科技有限公司 Link shell adding jump method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110321501A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
WO2020238092A1 (en) Link shell adding and jumping method and apparatus, and electronic device and storage medium
US11593484B2 (en) Proactive browser content analysis
CN104462959B (en) A kind of method for reinforcing and protecting, server and the system of Android application
CN102473171B (en) Information about local machine is conveyed to browser application
Lekies et al. 25 million flows later: large-scale detection of DOM-based XSS
CN104965712B (en) Application program method for reinforcing and protecting, device and mobile terminal
US20160203087A1 (en) Method for providing security for common intermediate language-based program
CN111143869B (en) Application package processing method and device, electronic equipment and storage medium
CN104392181A (en) SO file protection method and device and android installation package reinforcement method and system
US9811676B1 (en) Systems and methods for securely providing information external to documents
CN103530535A (en) Shell adding and removing method for Android platform application program protection
US20130227640A1 (en) Method and apparatus for website scanning
CN107104924B (en) Verification method and device for website backdoor file
CN106815524B (en) Malicious script file detection method and device
CN105959324A (en) Regular matching-based network attack detection method and apparatus
CN106569856A (en) Method and device of loading application view resource file
Magazinius et al. Polyglots: crossing origins by crossing formats
CN104809391B (en) Buffer overflow attack detection device, method and security protection system
CN108197440A (en) A kind of Code obfuscation method, equipment and computer readable storage medium
CN108512898A (en) File push method, apparatus, computer equipment and storage medium
WO2016058291A1 (en) Method and system for packaging mobile application
KR102001046B1 (en) Apparatus and Method of Providing Security, and Apparatus and Method of Executing Security for Common Intermediate Language
CN104980464B (en) A kind of network request processing method, network server and network system
Moshchuk et al. Content-based isolation: rethinking isolation policy design on client systems
CN106293724A (en) A kind of many game managements and edition control method and device

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: 19931038

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19931038

Country of ref document: EP

Kind code of ref document: A1

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 1205 DATED 18/03/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19931038

Country of ref document: EP

Kind code of ref document: A1