A set-top box testing method, related device, equipment and readable storage medium
By developing parameter verification, vulnerability scanning and remote control function detection modules in the set-top box testing tool, combined with encryption algorithms, the problem of difficulty in comprehensively detecting set-top boxes in the existing technology has been solved, and the normal operation and security of the equipment in different environments have been achieved. detection.
Patent Information
- Application Number
- CN202311544885.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-17
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-11-17
AI Technical Summary
Existing set-top box testing tools are difficult to comprehensively detect the device's parameter verification, vulnerability scanning, and remote control functions, and cannot guarantee the normal operation and security of the device in different environments.
A set-top box testing method is designed. By developing a parameter verification module, a vulnerability scanning module and a remote control function detection module in the testing equipment, the instructions are sent to the corresponding modules for processing according to the type of test instructions received, thereby realizing the set-top box parameters. Verification, vulnerability scanning and remote control function testing, and ensuring data security through encryption algorithms.
It achieves comprehensive detection of set-top box parameters, vulnerabilities and remote control functions, ensuring the normal operation and safety of the device in different environments, and improving the accuracy and efficiency of the test.
Smart Images

Figure CN117319639B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of set-top box testing, and in particular to a set-top box testing method, related devices, equipment, and readable storage medium. Background Art
[0002] The visual set-top box pan-intelligent testing tool is a tool that uses computer technology for testing. It can test the functions and performance of software in a more efficient and accurate way. In the current rapidly developing information technology field, devices based on the Android operating system, such as set-top boxes and converged gateways, have become an important part of people's home entertainment and communication. The performance, stability and functions of these devices are increasingly valued by users. In order to ensure the normal operation of these devices in different environments, the visual set-top box pan-intelligent testing tool has gradually become a key tool for software development and quality assurance. Summary of the invention
[0003] The embodiments of the present application provide a set-top box testing method, related devices, equipment and readable storage medium, which enable the set-top box detection equipment to have the functions of parameter verification, vulnerability scanning and remote control function detection.
[0004] In a first aspect, an embodiment of the present application provides a set-top box testing method, which is applied to a set-top box testing device, the set-top box testing device comprising a test instruction receiving module, a test instruction parsing module, a parameter verification module, a vulnerability scanning module and a remote control testing module, the method comprising: the test instruction parsing module receives a first test instruction sent from the test instruction receiving module, and determines the test type based on the test type identification information in the first test instruction; when the test type is parameter verification, the parameter verification module receives the first test instruction sent from the test instruction parsing module; the parameter verification module verifies the parameters of the set-top box according to the first test instruction; when the test type is vulnerability scanning, the vulnerability scanning module receives the first test instruction sent from the test instruction parsing module; the vulnerability scanning module performs vulnerability scanning on the set-top box according to the first test instruction; when the test type is remote control testing, the remote control testing module receives the first test instruction sent from the test instruction parsing module; the remote control testing module performs a remote control function test on the set-top box according to the first test instruction.
[0005] In the above embodiment, by developing a parameter verification module, a vulnerability scanning module and a remote control function detection module in the set-top box detection device, after the set-top box detection device receives the first detection instruction, the first detection instruction is sent to the corresponding function module according to the type of the detection instruction, so that the set-top box detection device can perform parameter verification / vulnerability scanning / remote control function test on the set-top box according to the type of the first detection instruction.
[0006] In combination with the first aspect, in a possible implementation method, the parameter verification module verifies the parameters of the set-top box according to the first test instruction, specifically including: the parameter verification module receives a first parameter verification table, the first parameter verification table includes one or more target parameters, and the target parameters are parameters to be verified in the set-top box; the parameter verification module encrypts the target parameters in the first parameter verification table through a first encryption algorithm to obtain the encrypted target parameters; the parameter verification module sends a first parameter verification message to the set-top box, the first parameter verification message includes the encrypted target parameters and identification information of the first encryption algorithm; the parameter verification module receives a first verification response message sent from the set-top box, the first verification response message includes a verification result; the parameter verification module displays the verification result on a display screen of the set-top box testing device.
[0007] In combination with the first aspect, in a possible implementation, the parameter verification module encrypts the target parameter in the first parameter verification table by using a first encryption algorithm to obtain the encrypted target parameter, specifically including: according to the formula Encrypt each byte of each target parameter; where y i is the i-th encrypted byte in a single encrypted target parameter, M i is the value corresponding to the i-th byte in the single target parameter before encryption, N is the number of bytes corresponding to the single encrypted target parameter, C is the first parameter, X k is the kth decryption parameter in the first decryption parameter set.
[0008] In combination with the first aspect, in one possible implementation method, the vulnerability scanning module performs a vulnerability scan on the set-top box according to a first test instruction, specifically including: the vulnerability scanning module sends a vulnerability scanning request to the set-top box, the vulnerability scanning request is used to instruct the set-top box to open vulnerability scanning permissions to the vulnerability scanning module; when the set-top box opens vulnerability scanning permissions, the vulnerability scanning module receives a first authorization response message sent by the set-top box; the vulnerability scanning module sends first test information to the communication port of the set-top box; the vulnerability scanning module sends first data acquisition information to the data encryption access port of the set-top box; within a first time period, if the vulnerability scanning module does not receive the first response message of the communication port, the vulnerability scanning module determines that there is a communication vulnerability in the communication port; if the vulnerability scanning module receives data sent by the data encryption port, the vulnerability scanning module determines that there is a data security vulnerability in the data encryption port.
[0009] In combination with the first aspect, in one possible implementation method, the remote control test module performs a remote control function test on the set-top box according to a first test instruction, specifically including: the remote control test module sends a first remote control test request to the remote control management module of the set-top box; the remote control test module receives a first test feedback message sent by the remote control management module, and the first test feedback message includes a first analog identification number; the remote control test module sends a first infrared test message to the infrared communication module of the set-top box through an infrared transmission module of a set-top box detection device, and the first infrared test message includes a first analog identification number; when the remote control test module does not receive the first infrared feedback message, the remote control test module determines that the remote control receiving function of the set-top box is abnormal.
[0010] In a second aspect, an embodiment of the present application provides a set-top box testing device, the set-top box testing device comprising a memory and a processor;
[0011] The memory is used to store program codes, and the processor is used to call the program codes stored in the memory to execute the set-top box testing method in the first aspect and various possible implementations thereof.
[0012] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the set-top box testing method in the above-mentioned first aspect and its various possible implementation methods is implemented.
[0013] In a fourth aspect, an embodiment of the present application provides a computer program, which includes instructions. When the computer program is executed by a computer, a set-top box testing device can execute the process executed by the set-top box testing device in the above-mentioned first aspect and various possible implementation methods thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The following is an introduction to the drawings used in the embodiments of the present application.
[0015] Figure 1 is a software system architecture diagram of a set-top box testing device 100 provided in an embodiment of the present application;
[0016] Figure 2 is a flow chart of a set-top box testing method provided by an embodiment of the present application;
[0017] Figure 3 It is a parameter verification flow chart provided in an embodiment of the present application;
[0018] Figure 4 This is a vulnerability scanning flow chart provided by an embodiment of the present application;
[0019] Figure 5This is a remote control function test flow chart provided in an embodiment of the present application;
[0020] Figure 6 1 is a structural example diagram of a set-top box testing device 60 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Mentioning "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiments may be included in at least one embodiment of the present embodiment application. The appearance of this phrase in various positions in the specification is not necessarily the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It can be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0022] The terms "first", "second", "third", etc. in the specification and claims of the present application and the drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a series of steps or units are included, or optionally, steps or units not listed are included, or optionally, other steps or units inherent to these processes, methods, products or devices are included.
[0023] Only the part relevant to the present application but not all content is shown in the accompanying drawings.Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processing or methods described as flow charts.Although flow charts describe various operations (or steps) as sequential processing, many operations therein can be implemented in parallel, concurrently or simultaneously.In addition, the order of various operations can be rearranged.Described processing can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings.Described processing can correspond to method, function, procedure, subroutine, subprogram etc.
[0024] As used in this specification, the terms "component", "module", "system", "unit", etc. are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a unit can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, and / or distributed between two or more computers. In addition, these units can be executed from various computer-readable media having various data structures stored thereon. Units can communicate through local and / or remote processes, for example, based on signals having one or more data packets (e.g., data from a second unit interacting with another unit in a local system, a distributed system, and / or a network. For example, the Internet interacts with other systems via signals).
[0025] The following is a system architecture diagram of a set-top box testing method provided by an embodiment of the present application in conjunction with the accompanying drawings. The set-top box testing system includes a set-top box testing device 100 and a set-top box 200, wherein the set-top box 200 is a device to be tested.
[0026] Next, combine Figure 1 The software system architecture diagram of the set-top box test device 100 is introduced. Figure 1 , Figure 1 It is a software system architecture diagram of a set-top box testing device 100 provided in an embodiment of the present application. The software system architecture is based on the system architecture of the Android system, including an application layer, an application framework layer, and an algorithm engine layer.
[0027] The application program layer includes a test instruction receiving module, which is used to receive a test instruction from a user and send the test instruction to a corresponding functional module for processing.
[0028] The application framework layer includes a test instruction parsing module, which is used to parse the instruction type of the test instruction and send the test instruction to the corresponding functional module of the algorithm engine layer according to different instruction types.
[0029] The algorithm engine layer includes a parameter verification module, a vulnerability scanning module and a remote control detection module. The parameter verification module is used to detect whether the parameter status of the electronic device 200 is normal, the vulnerability scanning module is used to detect whether there are security vulnerabilities in the electronic device 200, and the remote control test module is used to detect whether the infrared interface of the electronic device 200 is operating normally.
[0030] In the following, in conjunction with the accompanying drawings, the process of a set-top box testing method provided by the present application is introduced. Figure 2 , Figure 2This is a flow chart of a set-top box testing method provided by an embodiment of the present application. The flow chart includes a set-top box testing device, which includes a test instruction receiving module, a test instruction parsing module, a parameter verification module, a vulnerability scanning module, and a remote control testing module. The interaction process between the functional modules is as follows:
[0031] S201: In response to a first operation, the test instruction receiving module sends a first test instruction to the test instruction parsing module.
[0032] Specifically, after the set-top box test device is turned on, a first interface may be displayed, including a first control. After the set-top box test device detects a first operation (e.g., a single click) on the first control, a test instruction receiving module located at the application layer of the Android system sends the first test instruction to a test instruction parsing module.
[0033] The first test instruction includes test type identification information, and the test type identification information is used to characterize the type of the test instruction. The type of the first test instruction can be parameter verification, vulnerability scanning, or remote control detection.
[0034] The test instruction receiving module will associate multiple first controls on the first interface with the instruction type of the detection instruction. When the first operation on the first control related to the corresponding type is detected, the test instruction receiving module can generate the corresponding type of test type identification information and put the test type identification information into the first test instruction.
[0035] S202: The test instruction parsing module parses the first test instruction.
[0036] Specifically, after receiving the first test instruction, the test instruction parsing module located in the application framework layer may parse the test type identification information in the first test instruction, so as to obtain the type of the first test instruction.
[0037] S203: When the first test instruction is used to instruct parameter verification, the test instruction parsing module sends the first test instruction to the parameter verification module.
[0038] Specifically, after parsing the test type identification information in the first test instruction, the test instruction parsing module sends the first test instruction to the parameter verification module according to the test type represented by the test type identification information, so that the parameter verification module can verify the corresponding parameters in the set-top box.
[0039] S204: The parameter verification module verifies the target parameters in the set-top box according to the first test instruction.
[0040] Specifically, after receiving the first test instruction, the parameter verification module may verify the target parameters in the set-top box according to the first test instruction.
[0041] Next, combine Figure 3 , describes the process of parameter verification module for set-top box parameter verification. Figure 3 , Figure 3 This is a parameter verification flow chart provided in an embodiment of the present application. The specific process is as follows:
[0042] S301: The parameter verification module receives a first parameter verification table, wherein the first parameter verification table includes one or more target parameters, and the target parameters are parameters to be verified in the set-top box.
[0043] Specifically, after receiving the first test instruction, the parameter verification module will enter the parameter verification mode. After the user inputs the first parameter verification table to the set-top box test device, the test instruction receiving module can send the first parameter verification table to the parameter verification module through the test instruction parsing module.
[0044] The first parameter verification table includes the names of one or more parameters to be verified, and the parameters to be verified may include information such as a password for restoring factory settings, a network management access account, and a network management access password.
[0045] The first parameter check table may also include path information of the target parameter in the set-top box and parameter values.
[0046] S302: The parameter verification module encrypts the target parameter in the first parameter verification table by using a first encryption algorithm to obtain the encrypted target parameter.
[0047] Specifically, since there may be privacy parameters in the first parameter verification table, such as parameters such as the factory reset password, the network management access account, and the network management access password, in order to prevent these parameters from being leaked and affecting data security, the parameter verification module needs to encrypt the target parameters in the first parameter verification table by using the first encryption algorithm before performing parameter verification on the set-top box by using the first parameter verification table.
[0048] In this way, when the parameter verification module communicates with the set-top box, even if the communication data between the set-top box detection device and the set-top box is intercepted by a third party, the third party cannot decrypt the intercepted data, thereby ensuring data security.
[0049] The parameter verification module can encrypt each target parameter through formula (1) to obtain the encrypted target parameter. Formula (1) is as follows:
[0050]
[0051] Among them, y i The i-th encrypted byte in the encrypted parameter, M i is the value corresponding to the i-th byte in the parameter before encryption, N is the number of bytes corresponding to the encrypted parameter, C is the first parameter, X k is the kth decryption parameter in the first decryption parameter set.
[0052] For example, assuming that the network management access password is encrypted and the network management access password is 10086754, then the network management access password has 8 bytes, the value corresponding to the first byte is "1", the values corresponding to the second and third bytes are "0", the value corresponding to the fourth byte is "8", the value corresponding to the fifth byte is "6", the value corresponding to the sixth byte is "7", the value corresponding to the seventh byte is "5", and the value corresponding to the eighth byte is "4". Then, the way to encrypt the "1" in the first byte can be:
[0053]
[0054] Similarly, other bytes in the network management access password can be encrypted.
[0055] S303: The parameter verification module sends a first parameter verification message to the set-top box, where the first parameter verification message includes the encrypted target parameter and identification information of the encryption algorithm.
[0056] Specifically, the identification information of the encryption algorithm is used to indicate that the encryption algorithm of the parameter to be verified is the first encryption algorithm.
[0057] S304: The set-top box decrypts the encrypted target parameter based on the identification information of the encryption algorithm.
[0058] Specifically, after receiving the first parameter verification message, the set-top box can determine that the algorithm used to encrypt the target parameter is the first encryption algorithm by parsing the identification information of the encryption algorithm, and can obtain the decryption parameters and the first parameters for decrypting the first encryption algorithm in the memory, thereby decrypting the target parameter.
[0059] S305: The set-top box verifies the target parameters.
[0060] Specifically, after decrypting the target parameter, the set-top box may verify the target parameter.
[0061] Exemplarily, the set-top box can obtain the parameter value in the path information according to the path information of the parameter to be checked in the first parameter check table. Then, the set-top box compares the obtained parameter value with the target parameter value in the first parameter check table. If they are the same, it means that the parameter to be checked is normal; if they are different, it means that the parameter to be checked is abnormal.
[0062] S306: The set-top box sends a first verification response message to the parameter verification module, where the first verification response message includes a verification result.
[0063] Specifically, after completing the parameter verification, the set-top box may send a first verification response message to the parameter verification module. The first verification response message includes a verification result, and the verification result is used to indicate whether the verified parameter is abnormal.
[0064] For example, when the set-top box finds through verification that the network management access account in the first parameter verification table is inconsistent with the local network management access account of the set-top box, the verification result may include information such as the local network management access account data of the set-top box.
[0065] Optionally, before sending the first verification response message, the set-top box may encrypt the information in the first verification response message using a first encryption algorithm, and add identification information of the encryption algorithm to the first verification response message, thereby ensuring the security of communication data between the set-top box and the parameter verification module.
[0066] S307: The parameter verification module displays the verification result on the display screen of the set-top box testing device.
[0067] Specifically, after receiving the verification result, the parameter verification module may display the verification result on a display screen of the set-top box testing device, so that the staff can visually observe whether the parameters in the set-top box are abnormal.
[0068] Optionally, if the verification result is an encrypted verification result, the parameter verification module can determine the encryption algorithm based on the identification information of the encryption algorithm in the first verification response message, and then decrypt the verification result according to the encryption algorithm, thereby displaying the decrypted verification result on the display screen of the set-top box testing device.
[0069] Through this method, the set-top box test equipment can realize parameter verification of the set-top box.
[0070] S205: When the first test instruction is used to instruct to perform a vulnerability scan, the test instruction parsing module sends the first test instruction to a vulnerability scanning module.
[0071] S206: The vulnerability scanning module scans the set-top box for vulnerabilities according to the first test instruction.
[0072] Specifically, after receiving the first test instruction, the vulnerability scanning module may perform a vulnerability scan on the first set-top box according to the first test instruction.
[0073] Next, combine Figure 4, describes the process of vulnerability scanning module for set-top box vulnerability scanning. Figure 4 , Figure 4 This is a vulnerability scanning flow chart provided by an embodiment of the present application. The specific process is as follows:
[0074] S401: The vulnerability scanning module sends a vulnerability scanning request to the set-top box, where the vulnerability scanning request is used to instruct the set-top box to grant vulnerability scanning authority to the vulnerability scanning module.
[0075] Specifically, before performing vulnerability scanning on the set-top box, the vulnerability scanning module may first send a vulnerability scanning request to the permission management module in the set-top box, wherein the vulnerability scanning request is used to instruct the set-top box to grant vulnerability scanning permission to the vulnerability scanning module.
[0076] S402: When the set-top box opens vulnerability scanning authority, the set-top box sends a first authorization response message to the vulnerability scanning module.
[0077] Specifically, after receiving the vulnerability scanning request sent by the vulnerability scanning module, the set-top box can display on the display screen whether the vulnerability scanning permission information is open. When the set-top box detects the user's single-click operation on the authorization control, in response to the operation, the permission management module of the set-top box determines to open the vulnerability scanning permission to the vulnerability scanning module. At the same time, the permission management module of the set-top box sends a first authorization response message to the vulnerability scanning module. The first information in the first authorization response message is used to indicate that the permission management module has opened the vulnerability scanning permission. The vulnerability scanning module can perform vulnerability scanning on the set-top box by accessing the virtual port of the set-top box. The first authorization response message can also include the communication port information and data encryption access port information of the set-top box.
[0078] In the case that the set-top box does not grant vulnerability scanning authority, the set-top box sends a first rejection message to the vulnerability scanning module, where the first rejection message is used to indicate that the set-top box refuses to grant vulnerability scanning authority.
[0079] S403: The vulnerability scanning module sends first test information to the communication port of the set-top box.
[0080] Specifically, the first test information is used to instruct the communication port to send a feedback message.
[0081] S404: The vulnerability scanning module sends first data acquisition information to the data encryption access port of the set-top box.
[0082] Specifically, the first acquisition information is used to instruct the data encryption port to send encrypted data to the vulnerability scanning module.
[0083] S405: If the vulnerability scanning module does not receive a first response message from the communication port within the first time period, the vulnerability scanning module determines that a communication vulnerability exists in the communication port.
[0084] Specifically, if the vulnerability scanning module does not receive the first response message of the communication port within the first time period, it means that the communication port of the set-top box cannot communicate normally and a communication vulnerability exists in the set-top box.
[0085] If the vulnerability scanning module receives the first response message of the communication port within the first time period, it means that the communication port of the set-top box can communicate normally and there is no communication vulnerability in the set-top box.
[0086] S406: If the vulnerability scanning module receives the data sent by the data encryption port, the vulnerability scanning module determines that a data security vulnerability exists in the data encryption port.
[0087] Specifically, if the vulnerability scanning module does not receive the data sent by the data encryption port, the vulnerability scanning module determines that there is no data security vulnerability in the data encryption port.
[0088] S207: The vulnerability scanning module displays the vulnerability scanning result on the display screen of the set-top box detection device.
[0089] S208: When the first test instruction is used to instruct to perform a remote control test, the test instruction parsing module sends the first test instruction to the remote control testing module.
[0090] S209: The remote control testing module performs a remote control function test on the set-top box according to the first testing instruction.
[0091] Specifically, after receiving the first test instruction, the remote control test module may test the remote control function in the set-top box according to the first test instruction.
[0092] Next, combine Figure 5 , describes the process of how the remote control test module tests the remote control function of the set-top box. Figure 5 , Figure 5 This is a remote control function test flow chart provided by an embodiment of the present application. The specific process is as follows:
[0093] S501: The remote control testing module sends a first remote control testing request to the remote control management module of the set-top box.
[0094] Specifically, the first remote control test request is used to indicate that the remote control test module wants to test whether the remote control function of the set-top box is normal.
[0095] S502: The remote control management module sends a first request message to the infrared communication module of the set-top box, where the first request message is used to request the infrared communication module to receive the infrared test signal sent by the remote control test module and respond to the infrared test signal.
[0096] S503: The remote control management module sends a first test feedback message to the remote control test module, where the first test feedback message includes a first simulation identification number.
[0097] Specifically, the first analog identification number is used to represent identification information of information sent to the infrared communication module. The infrared communication module of the set-top box can identify the first infrared test information sent by the remote control test module by parsing the first analog signal.
[0098] S504: The remote control testing module sends first infrared testing information to the infrared communication module of the set-top box through the infrared transmitting module of the set-top box detection device, where the first infrared testing information includes the first simulation identification number.
[0099] S505: When the remote control testing module receives the first infrared feedback message, the remote control testing module determines that the remote control receiving function of the set-top box is normal.
[0100] S506: When the remote control testing module does not receive the first infrared feedback message, the remote control testing module determines that the remote control receiving function of the set-top box is abnormal.
[0101] Specifically, when the remote control testing module receives the first infrared feedback message, the remote control testing module determines that the remote control receiving function of the set-top box is normal.
[0102] S210: The remote control testing module displays the detection result on the display screen of the set-top box testing device.
[0103] In the above embodiment, by developing a parameter verification module, a vulnerability scanning module and a remote control function detection module in the set-top box detection device, after the set-top box detection device receives the first detection instruction, the first detection instruction is sent to the corresponding function module according to the type of the detection instruction, so that the set-top box detection device can perform parameter verification / vulnerability scanning / remote control function test on the set-top box according to the type of the first detection instruction.
[0104] The above describes in detail the method of the embodiment of the present application. The following introduces the related equipment, computer-readable storage medium, and computer program of the embodiment of the present application.
[0105] See also Figure 6 , Figure 66 is a schematic diagram of the structure of a set-top box detection device 60 provided in an embodiment of the present application. The set-top box detection device 60 may include a memory 601, a communication module 602 and a processor 603; wherein the detailed description of each unit is as follows:
[0106] The memory 601 is used to store program codes.
[0107] The processor 603 is used to call the program code stored in the memory to execute the following steps:
[0108] The test type is determined based on the test type identification information in the first test instruction; when the test type is parameter verification, the parameters of the set-top box are verified according to the first test instruction; when the test type is vulnerability scanning, the set-top box is scanned for vulnerabilities according to the first test instruction; when the test type is remote control testing, the remote control function of the set-top box is tested according to the first test instruction.
[0109] In one possible implementation, the parameters of the set-top box are verified according to the first test instruction, specifically including: receiving a first parameter verification table through the communication module 602, the first parameter verification table including one or more target parameters, and the target parameters are parameters to be verified in the set-top box; encrypting the target parameters in the first parameter verification table through a first encryption algorithm to obtain encrypted target parameters; sending a first parameter verification message to the set-top box through the communication module 602, the first parameter verification message including the encrypted target parameters and identification information of the first encryption algorithm; receiving a first verification response message sent from the set-top box through the communication module 602, the first verification response message including a verification result; and displaying the verification result on a display screen of the set-top box testing device.
[0110] In a possible implementation, the target parameter in the first parameter test table is encrypted by a first encryption algorithm to obtain the encrypted target parameter, specifically including: according to the formula Encrypt each byte of each target parameter; where y i is the i-th encrypted byte in a single encrypted target parameter, M i is the value corresponding to the i-th byte in the single target parameter before encryption, N is the number of bytes corresponding to the single encrypted target parameter, C is the first parameter, X k is the kth decryption parameter in the first decryption parameter set.
[0111] In one possible implementation, the set-top box is scanned for vulnerabilities according to the first test instruction, specifically including: sending a vulnerability scanning request to the set-top box through the communication module 602, the vulnerability scanning request is used to instruct the set-top box to open vulnerability scanning permissions to the vulnerability scanning module; when the set-top box opens vulnerability scanning permissions, receiving a first authorization response message sent by the set-top box through the communication module 602; sending first test information to the communication port of the set-top box through the communication module 602; sending first data acquisition information to the data encryption access port of the set-top box through the communication module 602; within a first time period, if no first response message from the communication port is received, it is determined that a communication vulnerability exists in the communication port; if data sent by the data encryption port is received, it is determined that a data security vulnerability exists in the data encryption port.
[0112] In one possible implementation, a remote control function test is performed on a set-top box according to a first test instruction, specifically including: sending a first remote control test request to a remote control management module of the set-top box through a communication module 602; receiving a first test feedback message sent by the remote control management module through the communication module 602, wherein the first test feedback message includes a first analog identification number; sending a first infrared test message to an infrared communication module of the set-top box through an infrared transmission module of a set-top box detection device, wherein the first infrared test message includes a first analog identification number; and when the first infrared feedback message is not received, the remote control test module determines that the remote control receiving function of the set-top box is abnormal.
[0113] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method for detecting a set-top box in the above embodiment and various possible implementations thereof is implemented.
[0114] An embodiment of the present application provides a computer program, which includes instructions. When the computer program is executed by a computer, a set-top box detection device can execute the process executed by the set-top box detection device in the above embodiment and various possible implementations thereof.
[0115] An embodiment of the present application provides a chip system, which includes a processor for supporting a first terminal to implement the functions involved in the methods in the above-mentioned embodiments and various possible modes, or a second terminal to implement the functions involved in the methods in the above-mentioned embodiments and various possible modes.
[0116] In a possible design, the chip system further includes a memory, and the memory is used to store program instructions and data necessary for the first terminal or the second terminal. The chip system can be composed of a chip, or can include a chip and other discrete devices.
[0117] It should be noted that the memory in the above embodiments may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a bus. The memory may be integrated with the processor.
[0118] The processor in the above embodiments may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program.
[0119] For the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0120] In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, and the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0121] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0122] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0123] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of software, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc., specifically a processor in a computer device) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. Among them, the aforementioned storage medium may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (ROM) or random access memory (RAM) and other media that can store program codes.
[0124] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A set-top box testing method, characterized in that: The method is applied to a set-top box test device, which includes a test instruction receiving module, a test instruction parsing module, a parameter checking module, a vulnerability scanning module and a remote control testing module. The method includes: The test instruction parsing module receives a first test instruction sent by the test instruction receiving module, and determines a test type based on the test type identification information in the first test instruction; In the case where the test type is parameter verification, the parameter verification module receives the first test instruction sent by the test instruction parsing module; The parameter checking module checks the parameters of the set-top box according to the first test instruction, specifically including: The parameter verification module receives a first parameter verification table, wherein the first parameter verification table includes one or more target parameters, and the target parameters are parameters to be verified in the set-top box; wherein the first parameter verification table includes path information of the target parameters in the set-top box, and the path information is used to enable the set-top box to obtain parameter values in the path information to compare with the target parameter values in the first parameter verification table; The parameter verification module encrypts the target parameter in the first parameter verification table by using a first encryption algorithm to obtain the encrypted target parameter; The parameter verification module sends a first parameter verification message to the set-top box, where the first parameter verification message includes the encrypted target parameter and identification information of the first encryption algorithm; The parameter verification module receives a first verification response message sent from the set-top box, wherein the first verification response message includes a verification result; The parameter verification module displays the verification result on the display screen of the set-top box testing device; In the case where the test type is vulnerability scanning, the vulnerability scanning module receives the first test instruction sent by the test instruction parsing module; The vulnerability scanning module performs vulnerability scanning on the set-top box according to the first test instruction; In the case where the test type is a remote control test, the remote control test module receives the first test instruction sent by the test instruction parsing module; The remote control testing module performs a remote control function test on the set-top box according to the first test instruction; The parameter verification module encrypts the target parameter in the first parameter verification table by using a first encryption algorithm to obtain the encrypted target parameter, specifically including: According to the formula Encrypt each byte of each target parameter; wherein is the i-th encrypted byte in a single encrypted target parameter, is the value corresponding to the i-th byte in the single target parameter before encryption, N is the number of bytes corresponding to the single encrypted target parameter, C is the first parameter, It is the kth decryption parameter in the first decryption parameter set; wherein the set-top box supports determining that the algorithm used to encrypt the target parameter is the first encryption algorithm by parsing the identification information of the encryption algorithm, so as to obtain the decryption parameters and the first parameters for decrypting the first encryption algorithm in the memory, thereby decrypting the encrypted target parameter.
2. The method according to claim 1, characterized in that The vulnerability scanning module performs vulnerability scanning on the set-top box according to the first test instruction, specifically comprising: The vulnerability scanning module sends a vulnerability scanning request to the set-top box, wherein the vulnerability scanning request is used to instruct the set-top box to open vulnerability scanning permissions to the vulnerability scanning module; In the case where the set-top box opens vulnerability scanning authority, the vulnerability scanning module receives a first authorization response message sent by the set-top box; The vulnerability scanning module sends first test information to the communication port of the set-top box; The vulnerability scanning module sends first data acquisition information to the data encryption access port of the set-top box; If the vulnerability scanning module does not receive a first response message from the communication port within a first time period, the vulnerability scanning module determines that a communication vulnerability exists in the communication port; If the vulnerability scanning module receives the data sent by the data encryption access port, the vulnerability scanning module determines that a data security vulnerability exists in the data encryption access port.
3. The method according to claim 1, characterized in that The remote control testing module performs a remote control function test on the set-top box according to the first test instruction, specifically comprising: The remote control testing module sends a first remote control testing request to the remote control management module of the set-top box; The remote control testing module receives a first test feedback message sent by the remote control management module, wherein the first test feedback message includes a first simulation identification number; The remote control testing module sends first infrared testing information to the infrared communication module of the set-top box through the infrared transmitting module of the set-top box testing device, wherein the first infrared testing information includes the first simulation identification number; When the remote control testing module does not receive the first infrared feedback message, the remote control testing module determines that the remote control receiving function of the set-top box is abnormal.
4. A set-top box testing device, characterized in that: The method comprises a unit for executing the set-top box testing method as claimed in any one of claims 1 to 3.
5. A set-top box testing device, characterized in that: include: A memory and a processor, wherein: The memory is used to store a computer program, wherein the computer program includes program instructions; The processor is used to call the program instructions so that the set-top box testing device executes the method according to any one of claims 1-3.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Method and device for checking parameter information of set top box equipment
CN108566549A
Performance testing device, method and system for IPTV set top box
CN111050163A
Vulnerability detection method and device, electronic equipment and computer readable storage medium
CN112149137A
Set top box infrared function test method, system, device and medium
CN116074492A
Set top box test method and device, medium and computer device
CN116527879A
