CN114500478A - Software distribution method and device and electronic equipment - Google Patents

Software distribution method and device and electronic equipment Download PDF

Info

Publication number
CN114500478A
CN114500478A CN202111597850.0A CN202111597850A CN114500478A CN 114500478 A CN114500478 A CN 114500478A CN 202111597850 A CN202111597850 A CN 202111597850A CN 114500478 A CN114500478 A CN 114500478A
Authority
CN
China
Prior art keywords
request
request message
response
software
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111597850.0A
Other languages
Chinese (zh)
Inventor
彭国洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN202111597850.0A priority Critical patent/CN114500478A/en
Publication of CN114500478A publication Critical patent/CN114500478A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The invention provides a software distribution method, a device and electronic equipment, wherein the method is applied to a terminal and comprises the following steps: acquiring a downloading instruction, wherein the downloading instruction is used for indicating downloading of target software; storing the download instruction in a first cookie field; generating a random request address; generating a request message according to the first cookie field and the random request address, sending the request message to an operator processing center, and sending the request message to a server under the condition that the operator processing center passes verification; receiving a response message returned by the server, wherein the response message is response information given to the terminal after the server analyzes the request message, and the response information contains target software; and analyzing the response message to obtain the target software. The method solves the defect that software distribution fails because an operator intercepts the suffix name of a file or sensitive information used for describing downloaded software in a request message request address through a validation rule to save bandwidth and then prevents software downloading, and realizes normal distribution of software.

Description

Software distribution method and device and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a software distribution method and apparatus, and an electronic device.
Background
Some operators in the content distribution network may intercept the software download in order to save bandwidth, resulting in a failure of the software distribution.
The downloading of the file intercepted by the operator is to intercept the file suffix name or sensitive information of the request address in the request message through the verification rule. When the request address of the terminal contains the file suffix name or sensitive information for describing the downloaded software, the downloading request is intercepted, and the software distribution fails.
Disclosure of Invention
The invention provides a software distribution method, a software distribution device and electronic equipment, which are used for solving the defect of software distribution failure caused by interception of software downloading for saving bandwidth by an operator in the prior art and realizing normal software distribution.
The invention provides a software distribution method, which is applied to a terminal and comprises the following steps:
acquiring a downloading instruction, wherein the downloading instruction is used for indicating downloading of target software;
storing the download instruction in a first cookie field;
generating a random request address;
generating a request message according to the first cookie field and the random request address, sending the request message to an operator processing center, and sending the request message to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message;
receiving a response message returned by the server, wherein the response message is response information which is given to the terminal after the server analyzes the request message, and the response information contains the target software;
and analyzing the response message to obtain the target software.
According to the software distribution method provided by the invention, the downloading instruction comprises the downloading address of the target software;
the step of generating a request message according to the first cookie field and the random request address and sending the request message to an operator processing center includes:
replacing an original request address in the request message with the random request address, wherein the original request address is the target software downloading address in the downloading instruction;
generating the request message according to the random request address and the first cookie field;
and sending the request message to the operator processing center.
According to a software distribution method provided by the present invention, the step of storing the download instruction in the first cookie field includes:
encrypting the downloading instruction to generate encryption request information;
storing the encryption request information in a first cookie field.
According to the software distribution method provided by the invention, the response message comprises response encryption information and a second cookie field;
the step of analyzing the response message to obtain the target software includes:
analyzing the response message to obtain encrypted response information and a second cookie field;
and analyzing the encrypted response information according to the key in the second cookie field to obtain the target software.
The invention also provides a software distribution method, which is applied to the server and comprises the following steps:
receiving a request message sent by a terminal, wherein the request message is generated by the terminal according to a first cookie field and a random request address and sent to an operator processing center, and the request message is sent to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message;
generating a response message, wherein the response message is response information which is given to the terminal after the request message is analyzed, and the response information contains target software;
and sending the response message to the terminal.
According to the software distribution method provided by the invention, the step of processing according to the request message and generating the response message containing the target software comprises the following steps:
analyzing the first cookie field in the request message to obtain a downloading instruction;
determining target software according to the downloading instruction;
encrypting the target software to generate response encryption information and a key;
adding the key to a second cookie field;
and generating a response message according to the response encryption information and the second cookie field.
According to a software distribution method provided by the present invention, the step of analyzing the first cookie field in the request message to obtain a download instruction includes:
analyzing a first cookie field in the request message to obtain encryption request information;
and analyzing the encryption request information to obtain the downloading instruction.
According to the software distribution method provided by the invention, the downloading instruction comprises the downloading address of the target software;
the step of determining the target software according to the downloading instruction comprises the following steps:
and determining the target software according to the target software downloading address.
The invention also provides a software distribution device, which is applied to a terminal and comprises:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a downloading instruction which is used for indicating downloading of target software;
a first processing unit, configured to store the download instruction in a first cookie field; generating a random request address;
a request sending unit, configured to generate a request packet according to the first cookie field and the random request address, send the request packet to an operator processing center, and send the request packet to a server when the operator processing center passes verification, where the operator processing center verifies the random request address in the request packet;
a response receiving unit, configured to receive a response message returned by the server, where the response message is response information that is given to the terminal after the server analyzes the request message, and the response information includes target software;
and the analysis unit is used for analyzing the response message to obtain the target software.
The invention also provides a software distribution device, which is applied to a server and comprises:
the request receiving unit is used for receiving a request message sent by a terminal, wherein the request message is generated by the terminal according to a first cookie field and a random request address and is sent to an operator processing center, and the request message is sent to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message;
the second processing unit is used for generating a response message, the response message is response information which is given to the terminal after the request message is analyzed, and the response information contains target software;
and the response sending unit is used for sending the response message to the terminal.
The present invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the software distribution method as described in any one of the above when executing the program.
The invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the software distribution method as described in any one of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, carries out the steps of the software distribution method as described in any one of the above.
According to the software distribution method, the software distribution device and the electronic equipment, the downloading instruction is obtained and used for indicating downloading of the target software, and the downloading instruction is stored in the first cookie field; generating a random request address, generating a request message according to the first cookie field and the random request address, sending the request message to an operator processing center, and sending the request message to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message, receives a response message returned by the server, the response message is response information which is given to the terminal after the server analyzes the request message, the response information contains the target software, and the response message is analyzed to obtain the target software. By storing the downloading request in the cookie field and generating the random request address, the defect that software distribution fails because an operator intercepts a file suffix name or sensitive information used for describing downloaded software in a request message request address through a verification rule to save bandwidth and then prevents software downloading is overcome, and normal software distribution is realized.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is one of the flow diagrams of a software distribution method provided by the present invention;
FIG. 2 is a second flowchart of a software distribution method provided by the present invention;
FIG. 3 is a third schematic flow chart of a software distribution method provided by the present invention;
FIG. 4 is a software distribution flow diagram provided by the present invention;
FIG. 5 is a schematic structural diagram of a software distribution apparatus provided in the present invention;
FIG. 6 is a second schematic structural diagram of a software distribution apparatus provided in the present invention;
fig. 7 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Some operators in the content distribution network may intercept the software download in order to save bandwidth, resulting in a failure of the software distribution.
The downloading of the file intercepted by the operator is to intercept the file suffix name or sensitive information of the request address in the request message through the verification rule. When the request address of the terminal contains the file suffix name or sensitive information for describing the downloaded software, the downloading request is intercepted, and the software distribution fails.
In the prior art, a terminal needs to download a piece of software from a server, and usually sends a request message to the server by using an HTTP protocol, in an example, the format of the request message is as follows:
GET/download/zmsetup_1.4.0.1055_0805.exe HTTP/1.1
Accept:*/*
User-Agent:Mozilla/4.0(compatible;MSIE 6.0;Windows NT 5.1;SV1)
Host:qianxin.com
Connection:Close
Cache-Control:no-cache
wherein, the download request is GET/download/zmstatup _1.4.0.1055_0805.exe HTTP/1.1 ".
The original request address is "/download/zmsetup _1.4.0.1055_0805.exe HTTP/1.1".
The operator processing center at the operator finds that the sensitive information "download" and the file name suffix "exe" exist in the original request address through the verification rule, and at this time, the operator processing center returns 403 a response message to the terminal by returning 403 the download request refused by the terminal, and the format is as follows:
HTTP/1.1 403OK
Date:Wed,10Nov 2021 04:59:20GMT
Content-Type:application/octet-stream
Content-Length:10243976
the operator intercepts the software download through the above-mentioned prior art, resulting in a failure of software distribution.
Therefore, the problem that in the prior art, an operator intercepts software downloading for saving bandwidth, and normal distribution of the software is realized is to be solved urgently at present.
In order to solve the above problem, the present invention provides a software distribution method, applied to a terminal, as shown in fig. 1, including the following steps:
and S11, acquiring a downloading instruction, wherein the downloading instruction is used for instructing downloading of the target software.
Specifically, the terminal may obtain a download instruction, where the download instruction is used to instruct downloading of the target software.
S12, storing the downloading instruction in a first cookie field;
in particular, the terminal may store the download instruction in a first cookie field.
And S13, generating a random request address.
Specifically, the terminal may generate a random request address, which is used by the operator processing center to verify whether the verification rule is met.
S14, generating a request message according to the first cookie field and the random request address, sending the request message to an operator processing center, and sending the request message to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message.
Specifically, the terminal may generate a request message according to the first cookie field and the random request address, and send the request message to the operator processing center, where the operator processing center verifies the random request address in the request message, and sends the request message to the server when the operator processing center verifies the random request address.
And S15, receiving a response message returned by the server, wherein the response message is response information given to the terminal after the server analyzes the request message, and the response information contains the target software.
Specifically, the terminal may receive a response message returned by the server, where the response message is response information given to the terminal after the server analyzes the request message, and the response information includes the target software.
And S16, analyzing the response message to obtain the target software.
Specifically, the terminal may analyze the response packet to obtain the target software.
In the embodiment of the invention, a terminal acquires a download instruction, wherein the download instruction is used for indicating to download target software, the download instruction is stored in a first cookie field to generate a random request address, a request message is generated according to the first cookie field and the random request address and is sent to an operator processing center, and the request message is sent to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message, receives a response message returned by the server, the response message is response information which is given to the terminal after the server analyzes the request message, the response information contains the target software, and the response message is analyzed to obtain the target software. By storing the downloading request in the cookie field and generating the random request address, the defect that software distribution fails because an operator intercepts a file suffix name or sensitive information used for describing downloaded software in a request message request address through a verification rule to save bandwidth and then prevents software downloading is overcome, and normal software distribution is realized.
According to the software distribution method provided by the invention, the downloading instruction comprises the target software downloading address; the request message is generated according to the first cookie field and the random request address and is sent to an operator processing center, and the method comprises the following steps:
s141, replacing the original request address in the request message with the random request address, wherein the original request address is the target software download address in the download instruction.
Specifically, the request message includes a request address, and the terminal may replace an original request address in the request message with a random request address, where the original request address is a target software download address in the download instruction.
S142, generating the request message according to the random request address and the first cookie field.
Specifically, the terminal may use the random request address as a request address to be requested, and generate a request packet including the random request address and the first cookie field.
S143, sending the request message to the operator processing center, and sending the request message to a server under the condition that the operator processing center passes the verification.
Specifically, the terminal may send the generated request message to the operator processing center.
In the embodiment of the invention, the terminal replaces the target software download address to be requested in the request message with the random request address, generates the request message according to the random request address and the first cookie field with the target software download address, and sends the request message to the operator processing center. Because the file suffix name or sensitive information used for describing the downloaded software exists in the cookie field, and the random request address does not contain the file suffix name or sensitive information used for describing the downloaded software, the defect that software distribution fails because an operator intercepts the file suffix name or sensitive information used for describing the downloaded software in the request message request address through a validation rule to save bandwidth and further prevents software downloading is overcome, and normal software distribution is realized.
According to the software distribution method provided by the invention, the step of storing the downloading instruction in the first cookie field comprises the following steps:
s121, encrypting the downloading instruction to generate encryption request information;
specifically, to improve the security during the data transmission process, the terminal may encrypt the download instruction to generate the encryption request information.
And S122, storing the encryption request information in a first cookie field.
Specifically, the terminal can store the encryption request information in the first cookie field, so that the security of the downloading instruction in the transmission process is improved.
In one example, the terminal may encrypt the download instruction, generate encryption request information, store the encryption request information in the first cookie field, and generate a request message according to the first cookie field and the random request address in the following format:
GET/6924675.html HTTP/1.1
Accept:*/*
User-Agent:Mozilla/4.0(compatible;MSIE 6.0;Windows NT 5.1;SV1)
Host:qianxin.com
Connection:Close
Cookie:TQHPUQWE=80710DA722D8211569ACC9F2BE14D1D9
Cache-Control:no-cache
here, "/6924675. html HTTP/1.1" is a random request address, "TQHPUQWE ═ 80710DA722D8211569ACC9F2BE14D1D 9" is encryption request information in the first cookie field, and is generated for the terminal according to the download request.
In the embodiment of the invention, the terminal encrypts the downloading instruction to generate the encryption request information, and stores the encryption request information in the first cookie field, so that the security of the downloading instruction in the cookie field is improved.
According to the software distribution method provided by the invention, the response message comprises response encryption information and a second cookie field; step S16 includes the following steps:
s161, analyzing the response message to obtain the encrypted response information and the second cookie field.
Specifically, the response message includes response encryption information and a second cookie field. The terminal may parse the response packet to obtain the encrypted response information and the second cookie field.
And S162, analyzing the encryption response information according to the key in the second cookie field to obtain the target software.
Specifically, the terminal may parse the encryption response information according to the key in the second cookie field to obtain the target software.
In the embodiment of the invention, the response message comprises response encryption information and a second cookie field, the terminal can analyze the response message to obtain the encryption response information and the second cookie field, and the encryption response information is analyzed according to a key in the second cookie field to obtain the target software. The target software is obtained by analyzing the encrypted information by using the key in the cookie field, so that the safety of the target software in the transmission process is improved.
The invention also provides a software distribution method, which is applied to a server and comprises the following steps as shown in figure 2:
s21, receiving a request message sent by a terminal, wherein the request message is generated by the terminal according to a first cookie field and a random request address and sent to an operator processing center, and the request message is sent to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message.
Specifically, the server may receive a request message sent by the terminal, where the request message is generated by the terminal according to the first cookie field and the random request address and sent to the operator processing center, and the request message is sent to the server when the operator processing center passes verification, where the operator processing center verifies the random request address in the request message.
And S22, generating a response message, wherein the response message is response information which is given to the terminal after the request message is analyzed, and the response information contains target software.
Specifically, the server may generate a response message, where the response message is response information given to the terminal after the request message is analyzed, and the response information includes the target software.
And S23, sending the response message to the terminal.
Specifically, the server may send a response message to the terminal.
In the embodiment of the invention, the server receives a request message sent by the terminal, the request message is generated by the terminal according to the first cookie field and the random request address, the request message is analyzed, a response message containing target software is generated, and the response message is sent to the terminal. The method solves the defect that software distribution fails because an operator intercepts the suffix name of a file or sensitive information used for describing downloaded software in a request message request address through a validation rule to save bandwidth and then prevents software downloading, and realizes normal distribution of software.
According to the software distribution method provided by the present invention, as shown in fig. 3, step S22 includes the following steps:
s31, analyzing the first cookie field in the request message to obtain a downloading instruction.
Specifically, the server may parse a first cookie field in the request message to obtain a download instruction for instructing downloading of the target software.
And S32, determining the target software according to the downloading instruction.
Specifically, the server may determine the target software that needs to be downloaded by the terminal according to the download instruction.
And S33, encrypting the target software to generate response encryption information and a key.
Specifically, the server may encrypt the target software, generating response encryption information and a key, where the key is used to decrypt the response encryption information.
S34, adding the key to the second cookie field.
In particular, the server may add the key to the second cookie field.
S35, generating a response message according to the response encryption information and the second cookie field.
In particular, the server may generate a response message based on the response encryption information and the second cookie field.
In one example, after receiving the request message sent by the terminal, the server generates a response message in the following format:
HTTP/1.1 200OK
Date:Wed,10Nov 2021 04:59:20GMT
Content-Type:application/octet-stream
Content-Length:10243976
Connection:close
Cookie:TQHPUQWE=E1B30F75E3AF0C882863C9763289C7BB
Expires:Fri,10Dec 2021 04:59:20GMT
Last-Modified:Wed,31Aug 2011 15:47:34GMT
Cache-Control:max-age=2592000
ETag:"4e5e5796-9c4f88"
App:ABCDEF
the "TQHPUQWE ═ E1B30F75E3AF0C882863C9763289C7 BB" is the key "App: ABCDEF" generated by encrypting the target software by the server and stored in the second cookie, and is the response encryption information generated by encrypting the target software.
In one example, as shown in fig. 4, the software distribution flow includes the following steps:
the terminal acquires a downloading instruction;
the terminal stores the downloading instruction in a first cookie field and generates a random request address;
the terminal generates a request message according to the first cookie field and the randomly generated address, and sends the request message to the server after verification by the operator processing center;
the server decrypts the request message and generates a response message containing the encrypted target software;
the server sends the response message to the terminal;
and the terminal analyzes the response message to obtain the target software.
In the embodiment of the invention, the server analyzes the first cookie field in the request message to obtain the downloading instruction, determines the target software according to the downloading instruction, encrypts the target software to generate response encryption information and a key, adds the key into the second cookie field, and generates the response message according to the response encryption information and the second cookie field. By the method, the response message with higher safety can be simply, conveniently and quickly generated, the defect that software distribution fails due to the fact that an operator intercepts file suffix names or sensitive information used for describing downloaded software in a request message request address through a verification rule to save bandwidth and then prevents software downloading is overcome, and normal software distribution is achieved.
According to the software distribution method provided by the present invention, step S31 specifically includes the following steps:
s311, the first cookie field in the request message is analyzed, and the encryption request information is obtained.
Specifically, a first cookie field in the request message includes encryption request information, the encryption request information is generated by encrypting the download instruction by the terminal, and the server can analyze the first cookie field in the request message to obtain the encryption request information.
S312, analyzing the encryption request information to obtain the downloading instruction.
Specifically, the server may further parse the encryption request information to obtain a download instruction for instructing downloading of the target software.
In the embodiment of the invention, the first cookie field in the request message comprises encryption request information, the encryption request information is generated by encrypting the downloading instruction by the terminal, and the server analyzes the first cookie field in the request message to obtain the encryption request information and analyzes the encryption request information to obtain the downloading instruction. The downloading instruction has higher safety in the transmission process, and the downloading instruction can be simply, conveniently and quickly obtained by the method.
According to the software distribution method provided by the invention, the downloading instruction comprises the target software downloading address; step S32 specifically includes:
and determining the target software according to the target software downloading address.
In the embodiment of the invention, the server can determine the target software according to the target software downloading address in the downloading instruction.
The software distribution apparatus provided by the present invention is described below, and the software distribution apparatus described below and the software distribution method described above may be referred to correspondingly.
The present invention also provides a software distribution apparatus, which is applied to a terminal, and as shown in fig. 5, the software distribution apparatus includes the following units:
an obtaining unit 51, configured to obtain a download instruction, where the download instruction is used to instruct downloading of target software.
A first processing unit 52, configured to store the download instruction in a first cookie field; a random request address is generated.
A request sending unit 53, configured to generate a request packet according to the first cookie field and the random request address, send the request packet to an operator processing center, and send the request packet to a server when the operator processing center passes verification, where the operator processing center verifies the random request address in the request packet.
A response receiving unit 54, configured to receive a response message returned by the server, where the response message is response information that is given to the terminal after the server analyzes the request message, and the response information includes target software.
And the analyzing unit 55 is configured to analyze the response packet to obtain the target software.
In the embodiment of the invention, a terminal acquires a download instruction, wherein the download instruction is used for indicating to download target software, the download instruction is stored in a first cookie field to generate a random request address, a request message is generated according to the first cookie field and the random request address and is sent to an operator processing center, and the request message is sent to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message, receives a response message returned by the server, the response message is response information which is given to the terminal after the server analyzes the request message, the response information contains the target software, and the response message is analyzed to obtain the target software. By storing the downloading request in the cookie field and generating the random request address, the defect that software distribution fails because an operator intercepts a file suffix name or sensitive information used for describing downloaded software in a request message request address through a verification rule to save bandwidth and then prevents software downloading is overcome, and normal software distribution is realized.
According to the software distribution device provided by the invention, the downloading instruction comprises the target software downloading address; a request sending unit 53, configured to replace an original request address in the request message with the random request address, where the original request address is the target software download address in the download instruction;
generating the request message according to the random request address and the first cookie field;
and sending the request message to the operator processing center.
According to the software distribution apparatus provided by the present invention, the first processing unit 52 is specifically configured to encrypt the download instruction, and generate encryption request information;
storing the encryption request information in a first cookie field.
According to the software distribution device provided by the invention, the response message comprises response encryption information and a second cookie field;
an analyzing unit 55, configured to analyze the response packet, and obtain encrypted response information and a second cookie field;
and analyzing the encrypted response information according to the key in the second cookie field to obtain the target software.
The invention also provides a software distribution device, which is applied to a server and comprises the following units as shown in fig. 6:
the request receiving unit 61 is configured to receive a request message sent by a terminal, where the request message is generated by the terminal according to a first cookie field and a random request address and sent to an operator processing center, and the request message is sent to a server when the operator processing center passes verification, where the operator processing center verifies the random request address in the request message.
And a second processing unit 62, configured to generate a response message, where the response message is response information that is given to the terminal after the request message is analyzed, and the response information includes target software.
A response sending unit 63, configured to send the response packet to the terminal.
In the embodiment of the invention, a server receives a request message sent by a terminal, the request message is generated by the terminal according to a first cookie field and a random request address, processing is carried out according to the request message, a response message containing target software is generated, and the response message is sent to the terminal. The method solves the defect that software distribution fails because an operator intercepts the suffix name of a file or sensitive information used for describing downloaded software in a request message request address through a validation rule to save bandwidth and then prevents software downloading, and realizes normal distribution of software.
According to the software distribution apparatus provided by the present invention, the second processing unit 62 is specifically configured to parse the first cookie field in the request message, and obtain a download instruction;
determining target software according to the downloading instruction;
encrypting the target software to generate response encryption information and a key;
adding the key to a second cookie field;
and generating a response message according to the response encryption information and the second cookie field.
According to the software distribution apparatus provided by the present invention, the second processing unit 62 is specifically configured to parse the first cookie field in the request message to obtain the encryption request information;
and analyzing the encryption request information to obtain the downloading instruction.
According to the software distribution device provided by the invention, the downloading instruction comprises the target software downloading address; the second processing unit 62 is specifically configured to determine the target software according to the target software download address.
Fig. 7 illustrates a physical structure diagram of an electronic device, and as shown in fig. 7, the electronic device may include: a processor (processor)710, a communication Interface (Communications Interface)720, a memory (memory)730, and a communication bus 740, wherein the processor 710, the communication Interface 720, and the memory 730 communicate with each other via the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to perform a software distribution method, applied to the terminal, the method comprising: acquiring a downloading instruction, wherein the downloading instruction is used for indicating downloading of target software; storing the download instruction in a first cookie field; generating a random request address; generating a request message according to the first cookie field and the random request address, sending the request message to an operator processing center, and sending the request message to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message; receiving a response message returned by the server, wherein the response message is response information which is given to the terminal after the server analyzes the request message, and the response information contains the target software; and analyzing the response message to obtain the target software.
Processor 710 may also call logic instructions in memory 730 to perform a software distribution method, applied to a server, comprising: receiving a request message sent by a terminal, wherein the request message is generated by the terminal according to a first cookie field and a random request address and sent to an operator processing center, and the request message is sent to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message; generating a response message, wherein the response message is response information which is given to the terminal after the request message is analyzed, and the response information contains a response message of the target software; and sending the response message to the terminal.
In addition, the logic instructions in the memory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being storable on a non-transitory computer-readable storage medium, the computer program being capable of executing the software distribution method provided by the above methods when executed by a processor, and being applied to a terminal, the method comprising: acquiring a downloading instruction, wherein the downloading instruction is used for indicating downloading of target software; storing the download instruction in a first cookie field; generating a random request address; generating a request message according to the first cookie field and the random request address, sending the request message to an operator processing center, and sending the request message to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message; receiving a response message returned by the server, wherein the response message is response information which is given to the terminal after the server analyzes the request message, and the response information contains the target software; and analyzing the response message to obtain the target software.
The computer can also execute the software distribution method provided by the above methods, and the method is applied to a server and comprises the following steps: receiving a request message sent by a terminal, wherein the request message is generated by the terminal according to a first cookie field and a random request address and sent to an operator processing center, and the request message is sent to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message; generating a response message, wherein the response message is response information which is given to the terminal after the request message is analyzed, and the response information contains a response message of the target software; and sending the response message to the terminal.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to execute the software distribution method provided by the above methods, and the method being applied to a terminal, and the method including: acquiring a downloading instruction, wherein the downloading instruction is used for indicating downloading of target software; storing the download instruction in a first cookie field; generating a random request address; generating a request message according to the first cookie field and the random request address, sending the request message to an operator processing center, and sending the request message to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message; receiving a response message returned by the server, wherein the response message is response information which is given to the terminal after the server analyzes the request message, and the response information contains the target software; and analyzing the response message to obtain the target software.
The computer program can be further implemented to execute the software distribution method provided by the methods when being executed by a processor, and the method is applied to a server and comprises the following steps: receiving a request message sent by a terminal, wherein the request message is generated by the terminal according to a first cookie field and a random request address and sent to an operator processing center, and the request message is sent to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message; generating a response message, wherein the response message is response information which is given to the terminal after the request message is analyzed, and the response information contains a response message of the target software; and sending the response message to the terminal.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on the understanding, the above technical solutions substantially or otherwise contributing to the prior art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (13)

1. A software distribution method is applied to a terminal and comprises the following steps:
acquiring a downloading instruction, wherein the downloading instruction is used for indicating downloading of target software;
storing the download instruction in a first cookie field;
generating a random request address;
generating a request message according to the first cookie field and the random request address, sending the request message to an operator processing center, and sending the request message to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message;
receiving a response message returned by the server, wherein the response message is response information which is given to the terminal after the server analyzes the request message, and the response information contains the target software;
and analyzing the response message to obtain the target software.
2. The software distribution method according to claim 1, wherein the download instruction includes the target software download address;
the step of generating a request message according to the first cookie field and the random request address and sending the request message to an operator processing center includes:
replacing an original request address in the request message with the random request address, wherein the original request address is the target software downloading address in the downloading instruction;
generating the request message according to the random request address and the first cookie field;
and sending the request message to the operator processing center.
3. The software distribution method according to claim 1 or 2, wherein the step of storing the download instruction in a first cookie field comprises:
encrypting the downloading instruction to generate encryption request information;
storing the encryption request information in a first cookie field.
4. The software distribution method according to claim 1, wherein the response message includes response encryption information and a second cookie field;
the step of analyzing the response message to obtain the target software includes:
analyzing the response message to obtain encrypted response information and a second cookie field;
and analyzing the encrypted response information according to the key in the second cookie field to obtain the target software.
5. A software distribution method is applied to a server and comprises the following steps:
receiving a request message sent by a terminal, wherein the request message is generated by the terminal according to a first cookie field and a random request address and sent to an operator processing center, and the request message is sent to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message;
generating a response message, wherein the response message is response information which is given to the terminal after the request message is analyzed, and the response information contains target software;
and sending the response message to the terminal.
6. The software distribution method according to claim 5, wherein the step of generating a response message comprises:
analyzing the first cookie field in the request message to obtain a downloading instruction;
determining target software according to the downloading instruction;
encrypting the target software to generate response encryption information and a key;
adding the key to a second cookie field;
and generating a response message according to the response encryption information and the second cookie field.
7. The method according to claim 6, wherein the step of parsing the first cookie field in the request message to obtain a download instruction comprises:
analyzing a first cookie field in the request message to obtain encryption request information;
and analyzing the encryption request information to obtain the downloading instruction.
8. The software distribution method according to claim 6 or 7, wherein the download instruction includes the target software download address;
the step of determining the target software according to the download instruction comprises:
and determining the target software according to the target software downloading address.
9. A software distribution apparatus, applied to a terminal, includes:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a downloading instruction which is used for indicating downloading of target software;
a first processing unit, configured to store the download instruction in a first cookie field; generating a random request address;
a request sending unit, configured to generate a request packet according to the first cookie field and the random request address, send the request packet to an operator processing center, and send the request packet to a server when the operator processing center passes verification, where the operator processing center verifies the random request address in the request packet;
a response receiving unit, configured to receive a response message returned by the server, where the response message is response information that is given to the terminal after the server analyzes the request message, and the response information includes target software;
and the analysis unit is used for analyzing the response message to obtain the target software.
10. A software distribution apparatus, applied to a server, includes:
the request receiving unit is used for receiving a request message sent by a terminal, wherein the request message is generated by the terminal according to a first cookie field and a random request address and is sent to an operator processing center, and the request message is sent to a server under the condition that the authentication of the operator processing center is passed, wherein the operator processing center authenticates the random request address in the request message;
the second processing unit is used for generating a response message, the response message is response information which is given to the terminal after the request message is analyzed, and the response information contains target software;
and the response sending unit is used for sending the response message to the terminal.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the software distribution method according to any of claims 1 to 8 are implemented when the program is executed by the processor.
12. A non-transitory computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the software distribution method according to any one of claims 1 to 8.
13. A computer program product comprising a computer program, wherein the computer program when executed by a processor implements the steps of the software distribution method according to any one of claims 1 to 8.
CN202111597850.0A 2021-12-24 2021-12-24 Software distribution method and device and electronic equipment Pending CN114500478A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111597850.0A CN114500478A (en) 2021-12-24 2021-12-24 Software distribution method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111597850.0A CN114500478A (en) 2021-12-24 2021-12-24 Software distribution method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114500478A true CN114500478A (en) 2022-05-13

Family

ID=81496576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111597850.0A Pending CN114500478A (en) 2021-12-24 2021-12-24 Software distribution method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114500478A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113528A (en) * 2014-06-23 2014-10-22 汉柏科技有限公司 Pre-posed gateway-based method and system for preventing sensitive information leakage
US20160301530A1 (en) * 2014-03-26 2016-10-13 Tencent Technology (Shenzhen) Company Limited Sensitive operation verification method, apparatus, and system
CN108512854A (en) * 2018-04-09 2018-09-07 平安科技(深圳)有限公司 Institutional information method for safety monitoring, device, computer equipment and storage medium
CN111756522A (en) * 2020-06-28 2020-10-09 中国平安财产保险股份有限公司 Data processing method and system
CN112468550A (en) * 2020-11-12 2021-03-09 北京金山云网络技术有限公司 File downloading method and device and electronic equipment
CN112954047A (en) * 2021-02-08 2021-06-11 上海弘积信息科技有限公司 Method for encrypting cookie through load balancing equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160301530A1 (en) * 2014-03-26 2016-10-13 Tencent Technology (Shenzhen) Company Limited Sensitive operation verification method, apparatus, and system
CN104113528A (en) * 2014-06-23 2014-10-22 汉柏科技有限公司 Pre-posed gateway-based method and system for preventing sensitive information leakage
CN108512854A (en) * 2018-04-09 2018-09-07 平安科技(深圳)有限公司 Institutional information method for safety monitoring, device, computer equipment and storage medium
CN111756522A (en) * 2020-06-28 2020-10-09 中国平安财产保险股份有限公司 Data processing method and system
CN112468550A (en) * 2020-11-12 2021-03-09 北京金山云网络技术有限公司 File downloading method and device and electronic equipment
CN112954047A (en) * 2021-02-08 2021-06-11 上海弘积信息科技有限公司 Method for encrypting cookie through load balancing equipment

Similar Documents

Publication Publication Date Title
US10587415B2 (en) Systems and methods for controlling email access
CN109165511B (en) Web security vulnerability processing method, system and computer readable storage medium
CN107864117B (en) Webpage interception method and device and computer readable storage medium
CN109067739B (en) Communication data encryption method and device
CN106790183A (en) Logging on authentication method of calibration, device
CN111970109B (en) Data transmission method and system
CN105516135A (en) Method and device used for account login
CN108769743B (en) Video playing control method, system, node and computer storage medium
CN111314288A (en) Relay processing method, relay processing device, server, and storage medium
CN106909826B (en) Password substitution device and system
CN110958239A (en) Method and device for verifying access request, storage medium and electronic device
CN114978637A (en) Message processing method and device
CN114513326A (en) Method and system for realizing communication audit based on dynamic proxy
CN113852681A (en) Gateway authentication method and device and security gateway equipment
US20180288017A1 (en) Delegating intermediation on an exchange of encrypted data
CN113329242A (en) Resource management method and device
CN110858834A (en) User information transmission method, device, system and computer readable storage medium
CN113312576A (en) Page jump method, system and device
CN110602133B (en) Intelligent contract processing method, block chain management device and storage medium
CN114500478A (en) Software distribution method and device and electronic equipment
CN112073366A (en) Data processing method for railway financial system and data center
CN112560003A (en) User authority management method and device
CN113065160A (en) Intelligent court data transmission method and system
CN114095496A (en) Terminal application processing method, edge cloud application server, system and medium
KR102009643B1 (en) Multipath transmission system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Country or region after: China

Address after: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant after: Qianxin Technology Group Co.,Ltd.

Applicant after: Qianxin Wangshen information technology (Beijing) Co.,Ltd.

Address before: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant before: Qianxin Technology Group Co.,Ltd.

Country or region before: China

Applicant before: LEGENDSEC INFORMATION TECHNOLOGY (BEIJING) Inc.

CB02 Change of applicant information