Method and device for identifying key pins of black box chip for firmware extraction
Patent Information
- Application Number
- CN202411461895.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-18
- Publication Date
- 2025-03-25
AI Technical Summary
During the extraction of firmware chip data, the surface mark of the black box chip is erased, and the pin position corresponding to key signals such as power supply, ground, and clock cannot be determined.
By selecting the chips with known pin identification from the integrated circuit board where the black box chip is located, performing single-ended or multi-end pin detection, and using the diode-emitting signal to identify the key signal type of the pin to be measured.
It realizes the rapid and accurate identification of the types of pins in the black box chip, solves the problem of being unable to identify key signal pins, and ensures the accuracy of subsequent firmware chip data extraction.
Smart Images

Figure CN119694378A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of semiconductor testing, and in particular to a method and device for identifying key pins of a black box chip for firmware extraction. Background Art
[0002] The firmware chip generally stores the complete firmware system and related data information. The extraction of firmware chip data is an important part of assisting the security analysis of the firmware system. However, in the process of extracting firmware chip data, it is often encountered that the surface logo of some firmware chips is erased, and it is impossible to determine the pin positions corresponding to the key signals such as power (VCC), ground (GND), and clock (CLK) of the firmware chip. Such chips are usually also called black box chips. It is particularly important to study the signal types corresponding to the key pins of black box chips. Summary of the invention
[0003] The present invention provides a method, device, equipment and storage medium for identifying key pins of a black box chip for firmware extraction.
[0004] According to a first aspect of the present disclosure, a method for identifying key pins of a black box chip for firmware extraction is provided. The method comprises:
[0005] Select at least one chip with a known pin identifier from the integrated circuit board where the black box chip is located; select a pin that identifies a key signal type based on the known pin identifier and perform single-ended pin detection;
[0006] Connecting a fixture probe in a single-ended pin detection device to a selected pin and connecting the pin probe to a pin to be tested of a black box chip;
[0007] If the diode in the single-ended pin detection device lights up, the pin to be tested is identified according to the key signal type corresponding to the selected pin;
[0008] Determine the existence of other pins to be tested in the black box chip; if there are other pins to be tested, re-perform single-ended pin detection; if there are no other pins to be tested, re-select a pin with a different key signal type from the previously selected one based on the known pin identifier, and re-perform single-ended pin detection based on the re-selected pin until all key signal types are selected.
[0009] In some implementations of the first aspect, the single-ended pin detection device includes:
[0010] The pin probe, the first resistor, the diode, the DC power supply, the second resistor and the fixture probe are connected in sequence.
[0011] In some implementations of the first aspect, the key signal type includes:
[0012] Power supply VCC, ground GND, clock signal CLK.
[0013] In some implementations of the first aspect, identifying the pin to be tested according to the key signal type corresponding to the selected pin includes:
[0014] The key signal type corresponding to the selected pin is identified as the key signal type corresponding to the pin to be tested, and the position of the pin to be tested is recorded.
[0015] In some implementations of the first aspect, the method further includes:
[0016] According to known pin identifiers, at least one pin that identifies a different key signal type is selected to perform multi-terminal pin detection;
[0017] Connect each fixture probe in the multi-terminal pin detection device to the selected pins one by one and connect the pin probe to a pin to be tested on the black box chip;
[0018] If the diode in the multi-terminal pin detection device is lit, the fixture probe is connected to each selected pin one by one until the diode is lit again, and the pin to be tested is identified according to the key signal type of the pin selected according to the diode that is lit again; if the diode in the multi-terminal pin detection device is not lit, at least one pin with a key signal type different from the previously selected one is re-selected according to the known pin identification, and multi-terminal pin detection is performed according to the re-selected pin until all the key signal types are selected;
[0019] Determine the existence of other pins to be tested in the black box chip; if there are other pins to be tested, repeat the pin selection and multi-terminal pin detection operations until all pins to be tested are detected.
[0020] In some implementations of the first aspect, the multi-terminal pin detection device includes:
[0021] A pin probe, a third resistor, a diode, a DC power supply and a plurality of parallel-connected fixture probe modules are connected in sequence; wherein,
[0022] The fixture probe module comprises:
[0023] Connect the resistor and fixture probes in sequence.
[0024] In some implementations of the first aspect, identifying the pin to be tested according to the key signal type of the pin corresponding to the diode that emits light again includes:
[0025] The key signal type of the selected pin corresponding to the diode that lights up again is identified as the key signal type corresponding to the pin to be tested, and the position of the pin to be tested is recorded.
[0026] According to a second aspect of the present disclosure, a device for identifying key pins of a black box chip for firmware extraction is provided. The device comprises:
[0027] The detection pin selection module is used to select at least one chip with a known pin identifier from the integrated circuit board where the black box chip is located; according to the known pin identifier, a pin that identifies the key signal type is selected to perform single-ended pin detection;
[0028] A pin detection module, used to connect a fixture probe in a single-ended pin detection device to a selected pin and connect the pin probe to a pin to be tested of a black box chip;
[0029] A pin identification module, used to identify the pin to be tested according to the key signal type corresponding to the selected pin if the diode in the single-ended pin detection device is lit;
[0030] It is also used to determine the existence of other pins to be tested in the black box chip; if there are other pins to be tested, single-ended pin detection is performed again; if there are no other pins to be tested, a pin with a different key signal type from the previously selected is reselected based on the known pin identifier, and single-ended pin detection is performed again based on the reselected pin until all key signal types are selected.
[0031] According to a third aspect of the present disclosure, an electronic device is provided. The electronic device includes: at least one processor; and a memory connected to the at least one processor in communication; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the method described above.
[0032] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, where the computer instructions are used to cause a computer to execute the method as described above.
[0033] In the present disclosure, at least one chip with a known pin identification is selected from the integrated circuit board where the black box chip is located; according to the known pin identification, a pin identifying the key signal type is selected to perform single-ended pin detection; the fixture probe in the single-ended pin detection device is connected to the selected pin and the pin probe is connected to a pin to be tested in the black box chip; if the diode in the single-ended pin detection device is illuminated, the pin to be tested is identified according to the key signal type corresponding to the selected pin; the existence of other pins to be tested in the black box chip is determined; if there are other pins to be tested, single-ended pin detection is performed again; if there are no other pins to be tested, a pin different from the previously selected key signal type is re-selected according to the known pin identification, and single-ended pin detection is performed again according to the re-selected pin, until all key signal types are selected. In this way, the type of pins in the black box chip can be quickly and accurately identified.
[0034] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, among which:
[0036] Figure 1 A flowchart of a method for identifying key pins of a black box chip for firmware extraction provided by an embodiment of the present disclosure is shown;
[0037] Figure 2 A circuit structure diagram of a single-ended pin detection device provided by an embodiment of the present disclosure is shown;
[0038] Figure 3 A circuit structure diagram of a multi-terminal pin detection device provided by an embodiment of the present disclosure is shown;
[0039] Figure 4 A structural diagram of a black box chip key pin identification device for firmware extraction provided by an embodiment of the present disclosure is shown;
[0040] Figure 5 A block diagram of an exemplary electronic device capable of implementing an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0042] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0043] In view of the problems in the background technology, the disclosed embodiment provides a method and device for identifying key pins of a black box chip for firmware extraction. Specifically, at least one chip with a known pin identifier is selected from the integrated circuit board where the black box chip is located; according to the known pin identifier, a pin that identifies the key signal type is selected to perform single-ended pin detection; the fixture probe in the single-ended pin detection device is connected to the selected pin and the pin probe is connected to a pin to be tested of the black box chip; if the diode in the single-ended pin detection device is lit, the pin to be tested is identified according to the key signal type corresponding to the selected pin; the existence of other pins to be tested in the black box chip is determined; if there are other pins to be tested, single-ended pin detection is performed again; if there are no other pins to be tested, a pin with a different key signal type from the previously selected one is re-selected according to the known pin identifier, and single-ended pin detection is performed again according to the re-selected pin until all key signal types are selected. In this way, the type of pins in the black box chip can be quickly and accurately identified so that the firmware chip data can be extracted later.
[0044] The following describes in detail the method and device for identifying key pins of a black box chip for firmware extraction provided by the embodiments of the present disclosure through specific embodiments in conjunction with the accompanying drawings.
[0045] Figure 1 A flowchart of a method for identifying key pins of a black box chip for firmware extraction provided by an embodiment of the present disclosure is shown. The method 100 includes the following steps:
[0046] S110, selecting at least one chip with a known pin identifier from the integrated circuit board where the black box chip is located; selecting a pin that identifies a key signal type according to the known pin identifier, and performing single-ended pin detection.
[0047] In some embodiments, key signal types include:
[0048] Power supply VCC, ground GND, clock signal CLK.
[0049] S120, connecting a fixture probe in the single-ended pin detection device to the selected pin and connecting the pin probe to a pin to be tested of the black box chip.
[0050] In some embodiments, a single-ended pin detection device includes:
[0051] The pin probe, the first resistor, the diode, the DC power supply, the second resistor and the fixture probe are connected in sequence; the specific connection relationship is as follows Figure 2 shown.
[0052] S130, if the diode in the single-ended pin detection device lights up, the pin to be tested is identified according to the key signal type corresponding to the selected pin; the existence of other pins to be tested in the black box chip is determined; if there are other pins to be tested, single-ended pin detection is performed again; if there are no other pins to be tested, a pin with a different key signal type from the previously selected pin is re-selected according to the known pin identifier, and single-ended pin detection is performed again according to the re-selected pin, until all key signal types are selected.
[0053] In some embodiments, identifying the pin to be tested according to the key signal type corresponding to the selected pin includes:
[0054] The key signal type corresponding to the selected pin is identified as the key signal type corresponding to the pin to be tested, and the position of the pin to be tested is recorded.
[0055] In some embodiments, a pin identifying a key signal type (such as CLK) is selected based on a known pin identifier, and the pin to be tested that is the same as the selected key signal type (CLK) is identified by connecting each pin to be tested and the selected pin to a single-ended pin detection device, and then a pin corresponding to a key signal type different from the key signal type (such as GND) is reselected, and the pin to be tested that is the same as the GND signal type is identified using the same method; the operation is repeated until all key signal types are selected; in this way, the signal type of the key pins in the black box chip (i.e., the key signal type) can be quickly and accurately identified.
[0056] In some embodiments, the method 100 further includes:
[0057] According to known pin identifiers, at least one pin that identifies a different key signal type is selected to perform multi-terminal pin detection;
[0058] Connect each fixture probe in the multi-terminal pin detection device to the selected pins one by one and connect the pin probe to a pin to be tested on the black box chip;
[0059] If the diode in the multi-terminal pin detection device is lit, the fixture probe is connected to each selected pin one by one until the diode is lit again, and the pin to be tested is identified according to the key signal type of the pin selected according to the diode that is lit again; if the diode in the multi-terminal pin detection device is not lit, at least one pin with a key signal type different from the previously selected one is re-selected according to the known pin identification, and multi-terminal pin detection is performed according to the re-selected pin until all the key signal types are selected;
[0060] Determine the existence of other pins to be tested in the black box chip; if there are other pins to be tested, repeat the pin selection and multi-terminal pin detection operations until all pins to be tested are detected.
[0061] In some embodiments, a multi-terminal pin detection device includes:
[0062] A pin probe, a third resistor, a diode, a DC power supply and a plurality of parallel-connected fixture probe modules are connected in sequence; wherein,
[0063] The fixture probe module comprises:
[0064] The resistors and fixture probes are connected in sequence; the specific connection relationship is as follows Figure 3 As shown, fixture probe module 1, fixture probe module n-1 and fixture probe module n are connected in parallel, fixture probe module 1 includes resistor 1 and fixture probe 1 connected in series, fixture probe module n-1 includes resistor n-1 and fixture probe n-1 connected in series, and fixture probe module n includes resistor n and fixture probe n connected in series.
[0065] In some embodiments, identifying the pin to be tested according to the key signal type of the pin corresponding to the diode that emits light again includes:
[0066] The key signal type of the selected pin corresponding to the diode that lights up again is identified as the key signal type corresponding to the pin to be tested, and the position of the pin to be tested is recorded.
[0067] The above is an introduction to the method embodiment. The following further illustrates the scheme of the present disclosure by adopting a specific embodiment of the method.
[0068] Specific embodiment 1: selecting at least one chip with a known pin identifier from the integrated circuit board where the black box chip is located; selecting a pin that identifies a key signal type (such as CLK) according to the known pin identifier, and performing single-ended pin detection;
[0069] Connect the fixture probe in the single-ended pin detection device to the pin corresponding to the selected CLK and connect the pin probe to a pin to be tested on the black box chip;
[0070] If the diode in the single-ended pin detection device lights up, it means that the signal type corresponding to the pin to be tested is CLK. At the same time, the position of the pin to be tested and the corresponding signal type are identified, and it is checked whether there are other pins to be tested in the black box chip;
[0071] If the diode in the single-ended pin detection device does not light up, it means that the signal type corresponding to the pin to be tested is not the selected CLK. Check whether there are other pins to be tested in the black box chip;
[0072] If there are other pins to be tested in the black box chip, then perform single-ended pin detection on the other pins to be tested again according to the above method. When detecting single-ended pins, you only need to change the pin to which the pin probe is connected, that is, connect the pin probe to another pin to be tested. In this way, all pins to be tested can be detected based on the selected CLK.
[0073] If there are no other pins to be tested in the black box chip, it means that all pins to be tested have been detected based on the selected CLK. Then reselect a pin corresponding to a key signal type different from the CLK signal type (such as GND), and perform single-ended pin detection on all pins to be tested according to the above method based on the reselected pin until all key signal types are selected. This method can quickly and accurately identify the key signal type corresponding to the pin to be tested.
[0074] Specific embodiment 2: selecting at least one chip with a known pin identifier from the integrated circuit board where the black box chip is located; selecting at least one pin that identifies different key signal types (such as CLK and GND) according to the known pin identifier, and performing multi-terminal pin detection;
[0075] Connect the fixture probe 1 in the multi-terminal pin detection device to the pin corresponding to the selected CLK, connect the fixture probe n to the pin corresponding to the selected GND, and connect the pin probe to a pin to be tested on the black box chip;
[0076] If the diode in the multi-terminal pin detection device lights up, it means that the signal type corresponding to the pin to be tested is CLK or GND. To further confirm the signal type corresponding to the pin to be tested, connect fixture probe 1 to the pin corresponding to the selected CLK, and connect the pin probe to the pin to be tested for multi-terminal pin detection. If the diode does not light up, it means that the signal type corresponding to the pin to be tested may be GND. To verify this idea, connect fixture probe n to the pin corresponding to the selected GND, and connect the pin probe to the pin to be tested for multi-terminal pin detection. The diode lights up, and the signal type corresponding to the pin to be tested is marked as GND.
[0077] If the diode in the multi-terminal pin detection device does not emit light, it means that the signal type corresponding to the pin to be tested is neither CLK nor GND, so the pin corresponding to the key signal type (such as VCC) different from the above selected CLK and GND signal types is re-selected, and the pin to be tested is detected according to the above method based on the re-selected pin. If the diode still does not emit light, the pin corresponding to the key signal type different from the selected CLK, GND and VCC signal types is re-selected, and the pin to be tested is detected again according to the newly selected pin, and this is repeated until all key signal types are selected once, and then the signal type corresponding to the pin to be tested can be obtained;
[0078] Check whether there are other pins to be tested in the black box chip. If there are other pins to be tested, detect the other pins to be tested according to the above method until all the pins to be tested are detected, thereby obtaining the signal types corresponding to all the pins to be tested.
[0079] According to the embodiment of the present disclosure, at least one chip with a known pin identifier is selected from the integrated circuit board where the black box chip is located; according to the known pin identifier, a pin that identifies the key signal type is selected to perform single-ended pin detection; the fixture probe in the single-ended pin detection device is connected to the selected pin and the pin probe is connected to a pin to be tested of the black box chip; if the diode in the single-ended pin detection device is illuminated, the pin to be tested is identified according to the key signal type corresponding to the selected pin; the existence of other pins to be tested in the black box chip is determined; if there are other pins to be tested, single-ended pin detection is performed again; if there are no other pins to be tested, a pin with a different key signal type from the previously selected is re-selected according to the known pin identifier, and single-ended pin detection is performed again according to the re-selected pin, until all key signal types are selected. In this way, the type of pins in the black box chip can be quickly and accurately identified so that firmware chip data can be extracted later.
[0080] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present disclosure is not limited by the order of the actions described, because according to the present disclosure, certain steps can 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 optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
[0081] The above is an introduction to the method embodiment. The following is a further explanation of the scheme disclosed in the present invention through an apparatus embodiment.
[0082] Figure 4The structure diagram of a black box chip key pin identification device for firmware extraction provided by an embodiment of the present disclosure is shown. The device 400 includes:
[0083] The detection pin selection module 410 is used to select at least one chip with a known pin identifier from the integrated circuit board where the black box chip is located; based on the known pin identifier, select a pin that identifies the key signal type to perform single-ended pin detection.
[0084] In some embodiments, module 410 is specifically configured to:
[0085] Key signal types include:
[0086] Power supply VCC, ground GND, clock signal CLK.
[0087] The pin detection module 420 is used to connect the fixture probe in the single-ended pin detection device to the selected pin and connect the pin probe to a pin to be tested of the black box chip.
[0088] In some embodiments, module 420 is specifically configured to:
[0089] Single-ended pin probing device, including:
[0090] The pin probe, the first resistor, the diode, the DC power supply, the second resistor and the fixture probe are connected in sequence.
[0091] The pin identification module 430 is used to identify the pin to be tested according to the key signal type corresponding to the selected pin if the diode in the single-ended pin detection device is lit;
[0092] It is also used to determine the existence of other pins to be tested in the black box chip; if there are other pins to be tested, single-ended pin detection is performed again; if there are no other pins to be tested, a pin with a different key signal type from the previously selected is reselected based on the known pin identifier, and single-ended pin detection is performed again based on the reselected pin until all key signal types are selected.
[0093] In some embodiments, module 430 is specifically configured to:
[0094] Identify the pins to be tested according to the key signal type corresponding to the selected pins, including:
[0095] The key signal type corresponding to the selected pin is identified as the key signal type corresponding to the pin to be tested, and the position of the pin to be tested is recorded.
[0096] In some embodiments, module 400 is also used to:
[0097] According to known pin identifiers, at least one pin that identifies a different key signal type is selected to perform multi-terminal pin detection;
[0098] Connect each fixture probe in the multi-terminal pin detection device to the selected pins one by one and connect the pin probe to a pin to be tested on the black box chip;
[0099] If the diode in the multi-terminal pin detection device is lit, the fixture probe is connected to each selected pin one by one until the diode is lit again, and the pin to be tested is identified according to the key signal type of the pin selected according to the diode that is lit again; if the diode in the multi-terminal pin detection device is not lit, at least one pin with a key signal type different from the previously selected one is re-selected according to the known pin identification, and multi-terminal pin detection is performed according to the re-selected pin until all the key signal types are selected;
[0100] Determine the existence of other pins to be tested in the black box chip; if there are other pins to be tested, repeat the pin selection and multi-terminal pin detection operations until all pins to be tested are detected.
[0101] In some embodiments, module 400 is also used to:
[0102] Multi-terminal pin detection device, including:
[0103] A pin probe, a third resistor, a diode, a DC power supply and a plurality of parallel-connected fixture probe modules are connected in sequence; wherein,
[0104] The fixture probe module comprises:
[0105] Connect the resistor and fixture probes in sequence.
[0106] In some embodiments, module 400 is also used to:
[0107] Identify the pin to be tested based on the key signal type of the pin corresponding to the diode that glows again, including:
[0108] The key signal type of the selected pin corresponding to the diode that lights up again is identified as the key signal type corresponding to the pin to be tested, and the position of the pin to be tested is recorded.
[0109] Understandably, Figure 4 Each module / unit in the illustrated device 400 has the function of implementing each step in the method 100 provided in the embodiment of the present disclosure and can achieve its corresponding technical effect, which will not be described in detail here for the sake of brevity.
[0110] Figure 5A block diagram of an exemplary electronic device capable of implementing an embodiment of the present disclosure is shown. Electronic device 500 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic device 500 may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0111] like Figure 5 As shown, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An I / O interface 505 is also connected to the bus 504.
[0112] Multiple components in the electronic device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the electronic device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0113] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as method 100. For example, in some embodiments, the method 100 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the method 100 described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the method 100 in any other appropriate manner (e.g., by means of firmware).
[0114] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0115] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0116] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0117] It should be noted that the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute method 100 and achieve the corresponding technical effect achieved by executing the method in the embodiment of the present disclosure. For the sake of concise description, they are not repeated here.
[0118] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0119] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0120] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0121] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0122] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for identifying key pins of a black box chip for firmware extraction, characterized in that: include: Select at least one chip with a known pin identification from the integrated circuit board where the black box chip is located; According to the known pin identification, a pin that identifies the key signal type is selected for single-ended pin detection; Connecting a fixture probe in a single-ended pin detection device to a selected pin and connecting the pin probe to a pin to be tested of a black box chip; If the diode in the single-ended pin detection device lights up, the pin to be tested is identified according to the key signal type corresponding to the selected pin; Determine the existence of other pins to be tested in the black box chip; if there are other pins to be tested, re-perform single-ended pin detection; If there are no other pins to be tested, a pin with a different key signal type from the previously selected one is reselected according to the known pin identifier, and single-ended pin detection is performed again according to the reselected pin until all key signal types are selected.
2. The method according to claim 1, characterized in that The single-ended pin detection device comprises: The pin probe, the first resistor, the diode, the DC power supply, the second resistor and the fixture probe are connected in sequence.
3. The method according to claim 1, characterized in that The key signal types include: Power supply VCC, ground GND, clock signal CLK.
4. The method according to claim 1, characterized in that: The step of identifying the pin to be tested according to the key signal type corresponding to the selected pin includes: The key signal type corresponding to the selected pin is identified as the key signal type corresponding to the pin to be tested, and the position of the pin to be tested is recorded.
5. The method according to claim 1, characterized in that: The method further comprises: According to known pin identifiers, at least one pin that identifies a different key signal type is selected to perform multi-terminal pin detection; Connect each fixture probe in the multi-terminal pin detection device to the selected pins one by one and connect the pin probe to a pin to be tested on the black box chip; If the diode in the multi-terminal pin detection device is lit, the fixture probe is connected to each selected pin one by one until the diode is lit again, and the pin to be tested is identified according to the key signal type of the pin selected according to the diode that is lit again; if the diode in the multi-terminal pin detection device is not lit, at least one pin with a key signal type different from the previously selected one is re-selected according to the known pin identification, and multi-terminal pin detection is performed according to the re-selected pin until all the key signal types are selected; Determine the existence of other pins to be tested in the black box chip; if there are other pins to be tested, repeat the pin selection and multi-terminal pin detection operations until all pins to be tested are detected.
6. The method according to claim 5, characterized in that The multi-terminal pin detection device comprises: A pin probe, a third resistor, a diode, a DC power supply and a plurality of parallel-connected fixture probe modules are connected in sequence; wherein, The fixture probe module comprises: Connect the resistor and fixture probes in sequence.
7. The method according to claim 5, characterized in that The step of identifying the pin to be tested according to the key signal type of the pin corresponding to the diode that emits light again includes: The key signal type of the selected pin corresponding to the diode that lights up again is identified as the key signal type corresponding to the pin to be tested, and the position of the pin to be tested is recorded.
8. A black box chip key pin identification device for firmware extraction, characterized in that: include: A detection pin selection module is used to select at least one chip with a known pin identification from the integrated circuit board where the black box chip is located; According to the known pin identification, a pin that identifies the key signal type is selected for single-ended pin detection; A pin detection module, used to connect a fixture probe in a single-ended pin detection device to a selected pin and connect the pin probe to a pin to be tested of a black box chip; A pin identification module, used to identify the pin to be tested according to the key signal type corresponding to the selected pin if the diode in the single-ended pin detection device is lit; It is also used to determine the existence of other pins to be tested in the black box chip; if there are other pins to be tested, single-ended pin detection is performed again; if there are no other pins to be tested, a pin with a different key signal type from the previously selected is reselected based on the known pin identifier, and single-ended pin detection is performed again based on the reselected pin until all key signal types are selected.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.