Disclosure of Invention
The invention aims to provide a method and a system for identifying a digital signage device, which can improve the identification accuracy of the digital signage device and reduce the false alarm rate.
The invention provides an identification method of a digital signboard device, which is applied to a terminal and comprises the following steps: receiving characteristic information of a target to be detected; inputting the characteristic information into a scanning tool, and scanning the port of the target to be detected by using the scanning tool based on the characteristic information to obtain a scanning result of the port, wherein the scanning result comprises a return packet of the port and a port survival state; if the port survival state is port survival, judging whether a remote control protocol exists in the port by using the return packet; if the port has a remote control protocol, loading a password corresponding to the port in a pre-configured password dictionary, and logging in the target to be detected by using the password; and if the login is successful, determining that the target to be detected is the digital signage device.
Further, after determining that the object to be detected is a digital signage device, the method further comprises: and carrying out screen capture operation on the interface which is successfully logged in to generate a screen capture of the digital signage device, wherein the screen capture is kept in a preset picture library so as to facilitate manual quick verification.
Further, after obtaining the scanning result of the port, the method further includes: and if the port survival state is that the port is not alive, scanning the next port of the target to be detected by using the scanning tool to obtain the scanning result of the next port.
Further, after determining whether a remote control protocol exists in the port by using the return packet, the method further includes: and if the port does not have a remote control protocol, recording the scanning result.
Further, the feature information includes an IP address or a network segment.
Further, the remote control protocol includes any one of the following: RFB protocol, VNC protocol, RDP protocol.
The invention provides an identification system of a digital signboard device, which is applied to a terminal and comprises the following components: the receiving module is used for receiving the characteristic information of the target to be detected; the scanning module is used for inputting the characteristic information into a scanning tool, and scanning the port of the target to be detected by using the scanning tool based on the characteristic information to obtain a scanning result of the port, wherein the scanning result comprises a return packet of the port and a port survival state; the judging module is used for judging whether the port has a remote control protocol or not by using the return packet if the port survival state is port survival; the login module is used for loading a password corresponding to the port in a pre-configured password dictionary and logging in the target to be detected by using the password if the port has a remote control protocol; and the determining module is used for determining that the target to be detected is the digital signage device if the login is successful.
Further, the system further comprises: and the screen capture module is used for carrying out screen capture operation on the interface which is successfully logged in to generate a screen capture of the digital signage device, and the screen capture is reserved in a preset picture library so as to facilitate manual quick verification.
Further, the system further comprises: and the recording module is used for recording the scanning result if the port does not have a remote control protocol.
The invention also provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program which can run on the processor, and the processor implements the method when executing the computer program.
The invention provides a method and a system for identifying a digital signboard device, which comprises the steps of firstly receiving characteristic information of a target to be detected; inputting the characteristic information into a scanning tool, and scanning a port of a target to be detected by using the scanning tool based on the characteristic information to obtain a scanning result of the port, wherein the scanning result comprises a return packet of the port and a port survival state; if the port survival state is port survival, judging whether a remote control protocol exists in the port by using a return packet; if the port has the remote control protocol, loading a password corresponding to the port in a pre-configured password dictionary, and logging in the target to be detected by using the password; and if the login is successful, determining that the target to be detected is the digital signage device. The invention scans the surviving port of the target to be detected by using the scanning tool, then determines that the surviving port has the remote control protocol, finally verifies the target to be detected as the digital signage device by using the password dictionary, and can improve the identification accuracy of the digital signage device by combining port scanning and password verification so as to quickly improve the efficiency of a manager.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
With the continuous development of modern technologies, the application of digital display technology will be ubiquitous. With the rapid development of digital signage devices in various industries, management and security issues of digital signage devices in city management are becoming more and more prominent.
The identification of the present digital label device is realized by means of manual statistics and online port scanning, the manual statistics has the problems of tedious statistical work, large workload, inaccuracy and the like, and the port scanning mode has the problems of higher false alarm rate and limited identification range. Based on this, the embodiments of the present invention provide a method and a system for recognizing a digital signage device, which may scan a port where a target to be detected is alive by using a scanning tool, then determine that the port where the target to be detected is alive has a remote control protocol, and finally verify that the target to be detected is the digital signage device by using a password dictionary, and the accuracy of recognition of the digital signage device may be improved by combining port scanning and password verification, thereby quickly improving the efficiency of a manager.
For the convenience of understanding the present embodiment, a detailed description will be given to the identification method of the digital signage apparatus disclosed in the present embodiment.
The first embodiment is as follows:
referring to fig. 1, an embodiment of the present invention provides an identification method for a digital signage device, which is applied to a terminal and may include the following steps:
step S101, receiving characteristic information of a target to be detected;
in the embodiment of the present invention, one or more targets to be detected may be provided, and the target to be detected may be a digital signage device or a non-digital signage device. Among them, the digital signage apparatus may refer to various outdoor advertising apparatus networked. The object of the embodiment of the invention is to accurately identify the target to be detected of the digital signage device. The characteristic information includes, but is not limited to, an IP address or a network segment.
Step S102, inputting the characteristic information into a scanning tool, and scanning a port of a target to be detected by using the scanning tool based on the characteristic information to obtain a scanning result of the port, wherein the scanning result comprises a return packet of the port and a port survival state;
in the embodiment of the present invention, the scanning tool may refer to a Sumap remote scanning tool, or may refer to other remote scanning tools, which are not described herein again. And inputting the IP address or the network segment into a scanning tool, and scanning the port by using the scanning tool to scan the survival condition of the port of the host where the target to be detected is located. Because the host computer of the target to be detected is provided with a plurality of ports, the scanning tool can scan the plurality of ports in sequence, and each port corresponds to a scanning result. Therefore, for the same target to be detected, each port corresponds to a port survival state, and the port survival states of different ports may be the same or different. The port survival state of the same target to be detected is divided into the following three conditions: in case 1, the port survival states of all ports of the same target to be detected are port survival; in case 2, the port survival states of all ports of the same target to be detected are port non-survival states; in case 3, the same target to be detected has a port whose port survival status is port non-survival, and also has a port whose port survival status is port survival. For the same target to be detected, no matter how many ports are in the target to be detected, as long as there is a port with a alive port, step S103 can be executed.
Step S103, if the port survival state is port survival, judging whether a remote control protocol exists in the port by using a return packet;
in an embodiment of the present invention, the return packet may include a fingerprint, wherein the fingerprint is the characteristic data of the remote device responding back through the network port, and can be used to identify what service is running on the detection port, so as to invoke the next interactive communication means of the corresponding service. The remote control protocol includes any one of: RFB (Remote Frame Buffer) Protocol, VNC (Virtual Network Computing) Protocol, and RDP (Remote Display Protocol) Protocol. The port with the port survival state as the port survival state is defined as a survival port, and a plurality of survival ports can be provided for the same target to be detected. The embodiment of the invention can sequentially judge whether remote control protocols such as RFB, VNC or RDP and the like used for the digital signage device exist on the plurality of survival ports. The embodiment of the invention judges whether the port has the remote control protocol by using the return packet, and can provide convenience for the digital signage device in the online identification network.
Step S105, if the port has a remote control protocol, loading a password corresponding to the port in a pre-configured password dictionary, and logging in a target to be detected by using the password;
in the embodiment of the present invention, the password dictionary is also referred to as a password dictionary, and may refer to a password list. In the password dictionary, each port corresponds to a password. The port scanning can identify the remote control protocol, but the false alarm rate of the target to be detected is high only according to the port scanning, and the target can be identified more accurately only by further communicating with the remote management service of the digital label. Therefore, the embodiment of the invention uses the password to try to log in the login interface of the target to be detected on the basis that the port has the remote control protocol, and then verifies whether the target to be detected is the digital label device or not according to the login result, thereby reducing the false alarm rate.
And step S107, if the login is successful, determining that the target to be detected is the digital signage device.
In the embodiment of the invention, if the login result is successful login, the target to be detected can be determined to be the digital signage device. When the embodiment of the invention utilizes the password dictionary for verification, if the password is correct, the digital signage management system can be logged in, and the digital signage device exposed on the Internet can be accurately identified. The embodiment of the invention provides a method for quickly identifying and acquiring the digital signage device for a digital signage device manager, can quickly detect and discover the digital signage device in a network range, and is beneficial to assisting network security general law inspection and the like. On the basis of the digital signage device identification provided by the embodiment of the invention, the steps are carried out on all targets to be detected, so that the number and the types of the digital signage devices can be further determined, and a technical basis is provided for subsequent management work.
The identification method of the digital signboard device provided by the embodiment of the invention comprises the steps of firstly receiving characteristic information of a target to be detected; inputting the characteristic information into a scanning tool, and scanning a port of a target to be detected by using the scanning tool based on the characteristic information to obtain a scanning result of the port, wherein the scanning result comprises a return packet of the port and a port survival state; if the port survival state is port survival, judging whether a remote control protocol exists in the port by using a return packet; if the port has the remote control protocol, loading a password corresponding to the port in a pre-configured password dictionary, and logging in the target to be detected by using the password; and if the login is successful, determining that the target to be detected is the digital signage device. The embodiment of the invention scans the surviving port of the target to be detected by using the scanning tool, then determines that the surviving port has the remote control protocol, finally verifies the target to be detected as the digital signage device by using the password dictionary, and can improve the identification accuracy of the digital signage device by combining port scanning and password verification, thereby quickly improving the efficiency of a manager.
Referring to fig. 2, after step S107, the method further comprises the steps of:
and step S108, performing screen capture operation on the interface which is successfully logged in to generate a screen capture of the digital signage device, and keeping the screen capture in a preset picture library so as to facilitate manual quick verification.
In the embodiment of the invention, in order to conveniently and rapidly check the condition that the target to be detected is the digital signage device, screen capture operation can be performed on the interface which is successfully logged in, and the screenshot of the digital signage device is generated. The screenshot is clear and complete, can be kept in a preset picture library and is named by the identification of the digital signage device so as to be searched quickly. The screenshot is reserved for use when a risk report is subsequently issued to a client, and manual and quick verification is facilitated.
Further, referring to fig. 2, after step S102, the method further includes the steps of:
and step S104, if the port survival state is that the port does not survive, scanning the next port of the target to be detected by using a scanning tool to obtain the scanning result of the next port.
In the embodiment of the invention, the target to be detected is provided with a plurality of ports, the scanning tool scans one port of the target to be detected first, if the port survival state of the port is that the port is not alive, the next port of the target to be detected is continuously scanned, and if the port survival state of the next port is that the port is not alive, the other ports of the target to be detected are sequentially and circularly scanned. The embodiment of the invention can scan the port survival states of all the ports of the target to be detected.
Further, referring to fig. 2, after step S103, the method further includes the steps of:
and step S106, if the port does not have the remote control protocol, recording the scanning result.
In the embodiment of the present invention, the scan result is response information of the port, and since the scan result of the port includes a return packet and a port alive state of the port, the scan result, that is, the return packet and the port alive state of the port, are recorded. The recorded scanning result provides convenience for subsequent management work.
The embodiment of the invention provides an identification method of a digital signage device, which utilizes a port to scan and identify a remote control protocol of the digital signage device, loads a pre-configured password field on the basis of the remote control protocol to perform login attempt on the identified digital signage device, and further verifies a scanning result. The key point of the embodiment of the invention is interactive simulation of the digital signage remote control protocol and a technology for verifying by utilizing a password dictionary and keeping screenshot.
Example two:
referring to fig. 3, an embodiment of the present invention provides an identification system for a digital signage device, which is applied to a terminal and may include the following modules:
the receiving module 11 is configured to receive characteristic information of a target to be detected;
the scanning module 12 is configured to input the feature information into a scanning tool, and scan a port of the target to be detected by using the scanning tool based on the feature information to obtain a scanning result of the port, where the scanning result includes a return packet of the port and a port survival state;
a judging module 13, configured to, if the port survival status is port survival, judge whether a remote control protocol exists in the port by using a return packet;
the login module 14 is used for loading a password corresponding to the port in a pre-configured password dictionary if the port has the remote control protocol, and logging in the target to be detected by using the password;
and the determining module 15 is configured to determine that the target to be detected is the digital signage device if the login is successful.
The identification system of the digital signboard device provided by the embodiment of the invention firstly utilizes the receiving module 11 to receive the characteristic information of the target to be detected; then, the scanning module 12 is used for inputting the characteristic information into a scanning tool, and based on the characteristic information, the scanning tool is used for scanning the port of the target to be detected to obtain a scanning result of the port, wherein the scanning result comprises a return packet of the port and a port survival state; when the port survival state is the port survival state, the scanning module 12 judges whether the port has a remote control protocol by using a return packet; if the port has the remote control protocol, loading a password corresponding to the port in a pre-configured password dictionary by using a login module 14, and logging in the target to be detected by using the password; if the login is successful, the determination module 15 is used to determine that the target to be detected is the digital signage device. In the embodiment of the invention, the scanning module 12 is used for scanning the live port of the target to be detected, and then the login module 14 and the determination module 15 are used for verifying that the target to be detected is the digital signage device under the condition that the live port has a remote control protocol.
Further, the scanning module 12 is further configured to scan a next port of the target to be detected by using the scanning tool to obtain a scanning result of the next port if the port survival status is that the port is not alive.
Further, referring to fig. 4, the system further includes the following modules:
and the screen capture module 16 is used for carrying out screen capture operation on the interface which is successfully logged in to generate a screen capture of the digital signage device, and the screen capture is kept in a preset picture library so as to facilitate manual quick verification.
And the recording module 17 is configured to record the scanning result if the port does not have the remote control protocol.
The embodiment of the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program that can be run on the processor, and the processor executes the computer program to implement the steps of the method in the first embodiment of the foregoing method.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The computer program product of the identification method for a digital signage apparatus provided by the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, and will not be described herein again.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.