Cross-platform cross-browser operation and maintenance access method, system and storage medium
1. A cross-platform cross-browser operation and maintenance access method is characterized by comprising the following steps:
responding to a resource access operation and maintenance request of the operation and maintenance terminal;
transmitting operation and maintenance authentication information to a first control according to the resource access operation and maintenance request, wherein the first control is edited by java speech;
and judging the protocol type of the current operation and maintenance required by the first control according to the operation and maintenance authentication information, and calling an operation and maintenance tool to carry out operation and maintenance according to the protocol type.
2. The method of claim 1, wherein the first control is installed in the operation terminal; and registering a custom url protocol when the first control is installed.
3. The method of claim 1, wherein the transmitting operation and maintenance certification information to a first control according to the resource access operation and maintenance request comprises:
when the operation and maintenance terminal is located in a first preset browser or a second preset browser in a first preset operation environment, transmitting operation and maintenance authentication information to a first control according to the resource access operation and maintenance request;
and when the operation and maintenance terminal is in a second preset browser in a second preset operation environment, calling a first control according to the resource access operation and maintenance request, and transmitting the operation and maintenance authentication information to the first control.
4. The method of claim 1, wherein before the step of invoking an operation and maintenance tool according to the protocol type for operation and maintenance, the method further comprises the following steps:
and calling a preset interface according to the operation and maintenance authentication information to acquire operation and maintenance parameters, wherein the operation and maintenance parameters comprise operation and maintenance personnel information, an operation and maintenance equipment IP, a port and a protocol.
5. The method of claim 1, wherein the protocol types include a text protocol, a text transfer protocol, a graphics protocol, and a business application protocol.
6. The method for accessing operation and maintenance of a cross-platform and cross-browser according to claim 5, wherein the calling an operation and maintenance tool according to the protocol type for operation and maintenance comprises:
when the protocol type is a text protocol, calling a first software or an operation and maintenance tool of a first preset type to carry out operation and maintenance;
when the protocol type is a text transmission protocol, calling second software or an operation and maintenance tool of a first preset type to carry out operation and maintenance;
when the protocol type is a graphic protocol, calling a third software for operation and maintenance;
and when the protocol type is a service application protocol, calling the operation and maintenance of the VDH interface by adopting a first control.
7. The cross-platform and cross-browser operation and maintenance access method according to claim 1 or 2, wherein the first control is a starter control.
8. A cross-platform cross-browser operation and maintenance access system, comprising:
the response module is used for responding to the resource access operation and maintenance request of the operation and maintenance terminal;
the transmission module is used for transmitting the operation and maintenance authentication information to a first control according to the resource access operation and maintenance request, and the first control is edited by java speech;
and the calling module is used for judging the protocol type needing operation and maintenance at present by adopting the first control according to the operation and maintenance authentication information and calling an operation and maintenance tool to carry out operation and maintenance according to the protocol type.
9. A cross-platform cross-browser operation and maintenance access system, comprising:
at least one memory for storing a program;
at least one processor configured to load the program to perform the cross-platform cross-browser operation and maintenance access method of any of claims 1-7.
10. A storage medium having stored therein a computer-executable program for implementing a cross-platform cross-browser operation and maintenance access method according to any one of claims 1 to 7 when executed by a processor.
Background
In the related technology, the operation and maintenance security audit products in the network security field can basically realize the login operation and maintenance function of the host account, but the operation and maintenance functions provided by most products are limited by the operation and maintenance client platform and the browser type, that is, the login operation and maintenance only supports one platform, such as windows, and the used browser only supports one type, such as IE. If a platform or a browser is replaced, the login operation and maintenance function cannot be used, so that great trouble is brought to operation and maintenance personnel in an actual service use scene, and the application range of the service scene is limited.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a cross-platform cross-browser operation and maintenance access method, a cross-platform cross-browser operation and maintenance access system and a storage medium, which can realize the multi-platform multi-browser access function.
In a first aspect, an embodiment of the present invention provides a cross-platform cross-browser operation and maintenance access method, including the following steps:
responding to a resource access operation and maintenance request of the operation and maintenance terminal;
transmitting operation and maintenance authentication information to a first control according to the resource access operation and maintenance request, wherein the first control is edited by java speech;
and judging the protocol type of the current operation and maintenance required by the first control according to the operation and maintenance authentication information, and calling an operation and maintenance tool to carry out operation and maintenance according to the protocol type.
The operation and maintenance access method of the cross-platform cross-browser provided by the embodiment of the invention has the following beneficial effects:
in the embodiment, after a resource access operation and maintenance request of an operation and maintenance terminal is responded, operation and maintenance authentication information is transmitted to a first control edited by java speech according to the resource access operation and maintenance request, then a protocol type needing operation and maintenance at present is judged by the first control according to the operation and maintenance authentication information, and an operation and maintenance tool is called according to the protocol type for operation and maintenance.
Optionally, the first control is installed on the operation and maintenance terminal; and registering a custom url protocol when the first control is installed.
Optionally, the transmitting operation and maintenance authentication information to the first control according to the resource access operation and maintenance request includes:
when the operation and maintenance terminal is located in a first preset browser or a second preset browser in a first preset operation environment, transmitting operation and maintenance authentication information to a first control according to the resource access operation and maintenance request;
and when the operation and maintenance terminal is in a second preset browser in a second preset operation environment, calling a first control according to the resource access operation and maintenance request, and transmitting the operation and maintenance authentication information to the first control.
Optionally, before the step of invoking the operation and maintenance tool according to the protocol type to perform operation and maintenance is performed, the method further includes the following steps:
and calling a preset interface according to the operation and maintenance authentication information to acquire operation and maintenance parameters, wherein the operation and maintenance parameters comprise operation and maintenance personnel information, an operation and maintenance equipment IP, a port and a protocol.
Optionally, the protocol types include a text protocol, a text transfer protocol, a graphics protocol, and a service application protocol.
Optionally, the invoking an operation and maintenance tool according to the protocol type for operation and maintenance includes:
when the protocol type is a text protocol, calling a first software or an operation and maintenance tool of a first preset type to carry out operation and maintenance;
when the protocol type is a text transmission protocol, calling second software or an operation and maintenance tool of a first preset type to carry out operation and maintenance;
when the protocol type is a graphic protocol, calling a third software for operation and maintenance;
and when the protocol type is a service application protocol, calling the operation and maintenance of the VDH interface by adopting a first control.
Optionally, the first control is a starter control.
In a second aspect, an embodiment of the present invention provides a cross-platform cross-browser operation and maintenance access system, including:
the response module is used for responding to the resource access operation and maintenance request of the operation and maintenance terminal;
the transmission module is used for transmitting the operation and maintenance authentication information to a first control according to the resource access operation and maintenance request, and the first control is edited by java speech;
and the calling module is used for judging the protocol type needing operation and maintenance at present by adopting the first control according to the operation and maintenance authentication information and calling an operation and maintenance tool to carry out operation and maintenance according to the protocol type.
In a third aspect, an embodiment of the present invention provides a cross-platform cross-browser operation and maintenance access system, including:
at least one memory for storing a program;
and the at least one processor is used for loading the program to execute the operation and maintenance access method of the cross-platform cross-browser provided by the embodiment of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a storage medium, where a computer-executable program is stored, and the computer-executable program is used, when being executed by a processor, to implement the operation and maintenance access method for a cross-platform cross-browser provided in the first aspect.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The invention is further described with reference to the following figures and examples, in which:
FIG. 1 is a flowchart of a cross-platform and cross-browser operation and maintenance access method according to an embodiment of the present invention;
fig. 2 is a data processing flow chart of an application process according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality is one or more, the meaning of a plurality is two or more, and the above, below, exceeding, etc. are understood as excluding the present numbers, and the above, below, within, etc. are understood as including the present numbers. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
In the description of the present invention, reference to the description of the terms "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
At present, a plurality of bastion machines and account management platforms or operation and maintenance safety audit and account management platform service systems in the market all have the function of host account operation and maintenance management, and the login operation and maintenance of the host account is realized. The use scenes of the host account are various, and a user can directly obtain the account password plaintext from the account management system and then perform resource access operation. And the management system can directly fill account passwords in place of the account passwords during resource access operation, so that people are prevented from directly contacting the account. However, most account management systems can only support operation and maintenance on a certain browser on the windows platform, such as an IE browser. There are many kinds of browsers on the market today, such as firefox, chrome, etc. And the environment of the terminal equipment and the type of the browser in the actual operation and maintenance scene cannot be predicted, and only one setting mode of the browser in the windows environment is supported, so that the operation and maintenance scene is very inconvenient in the actual operation and maintenance scene, and the application scene range is greatly limited.
Based on the above, the embodiment of the invention provides a cross-platform cross-browser operation and maintenance access method, which is used for performing information transfer and call by adopting a java speech editing first control so as to realize operation and maintenance access processes of multiple platforms and multiple browsers.
Specifically, as shown in fig. 1, an embodiment of the present invention provides a cross-platform cross-browser operation and maintenance access method, including the following steps:
and S11, responding the resource access operation and maintenance request of the operation and maintenance terminal.
In the embodiment of the application, the operation and maintenance terminal may be a computer terminal of an operation and maintenance worker. The operation environment of each operation and maintenance terminal may be different, for example, the operation environment is a windows environment, a MAC environment, or a linux environment. The access software used by each operation and maintenance terminal may also be different, such as a browser like IE, chord, firefox, etc. The resource access operation and maintenance request is a signal for operation and maintenance operation through a request sent by the operation and maintenance terminal.
S12, transmitting the operation and maintenance authentication information to the first control according to the resource access operation and maintenance request, wherein the first control is edited by java speech.
In the embodiment of the application, the first control comprises a starter control, and the starter control is installed on the operation and maintenance terminal. When the first control is installed, a user-defined url protocol is registered, so that when the resource access operation and maintenance is carried out, the url protocol is opened and the operation and maintenance related authentication information is transmitted to the starter control. In this embodiment, url is a uniform resource locator, also called a web page address, and is an address of a standard resource on the internet. Each file on the internet has a unique url that contains information indicating the location of the file and the way the browser is handling.
In some embodiments, when the operation and maintenance terminal is in a first preset browser or a second preset browser in a first preset operation environment, the operation and maintenance authentication information is transmitted to the first control according to the resource access operation and maintenance request; and when the operation and maintenance terminal is in a second preset browser in a second preset operation environment, calling the first control according to the resource access operation and maintenance request, and transmitting the operation and maintenance authentication information to the first control. For example, when an operation and maintenance person uses a first preset browser such as an IE browser to access resources in a first preset operating environment such as a windows environment, the background automatically transfers operation and maintenance parameters to the starter control. When an operation and maintenance person uses a second preset browser, namely a non-IE browser, such as a browser of firefox, chrome, 360, Microsoft Edge and the like to access resources for operation and maintenance in a first preset operation environment, such as a windows environment, the operation and maintenance person automatically transmits operation and maintenance parameters to a starter control in a background. And when the operation and maintenance personnel use a non-IE browser to access the resources under a second preset operation environment such as a MAC (media access control), a linux and other platforms, the background automatically calls a starter control.
And S13, judging the protocol type of the current operation and maintenance needed by the first control according to the operation and maintenance authentication information, and calling the operation and maintenance tool to carry out operation and maintenance according to the protocol type.
In this embodiment of the present application, before the step of executing calls the operation and maintenance tool to perform operation and maintenance according to the protocol type, the method further includes the following steps:
and calling a preset interface such as an http interface according to the operation and maintenance authentication information to obtain the operation and maintenance parameters. The operation and maintenance parameters comprise operation and maintenance personnel information, operation and maintenance equipment IP, ports and protocols. For example, when an operation and maintenance person accesses and operates and maintains resources through an IE or non-IE browser on different platforms, a url protocol is opened and operation and maintenance related authentication information is transmitted to a starter, the starter calls an https interface to communicate by using the transmitted authentication information, obtains specific operation and maintenance person information, operation and maintenance equipment IP, ports, protocols, operation and maintenance tools and other operation and maintenance related parameters, and calls different operation and maintenance tools to realize login substitution and filling.
In some embodiments, the protocol types include text protocol, text transfer protocol, graphics protocol, and business application protocol.
The operation and maintenance tool is called according to the protocol type to carry out operation and maintenance, and the method can be realized in the following mode:
and when the protocol type is a text protocol, calling the operation and maintenance tool of the first software or the first preset type to carry out operation and maintenance. The first software includes pushy software. The putty software is a Telnet, SSH, rlogin, pure tcp, and serial interfacing software. The first preset type of operation and maintenance tool comprises a custom tool.
And when the protocol type is a text transmission protocol, calling the second software or the operation and maintenance tool of the first preset type to carry out operation and maintenance. The second software comprises filezilla software. The filezilla software is free FTP client software, is divided into a client version and a server version, and has all FTP software functions.
And when the protocol type is a graphic protocol, calling a third software to carry out operation and maintenance. The third software comprises mstsc software. The mstsc software is used for remote desktop connections, i.e., connections created to terminal servers or other remote computers.
And when the protocol type is a service application protocol, calling the operation and maintenance of the VDH interface by adopting a first control. Namely, the starter control is adopted to call the VDH interface operation and maintenance.
In some embodiments, when the above embodiments are applied to an actual operation process, as shown in fig. 2, it includes the following steps:
when an operation and maintenance person uses an IE browser to access resources for operation and maintenance in the environment that an operation and maintenance terminal is windows, a background controller automatically transmits operation and maintenance parameters to a starter control, and the starter judges the protocol type and tools to be operated and maintained to realize operations such as login substitution filling.
When an operation and maintenance person uses a non-IE browser, such as Firefox, chrome, 360, Microsoft Edge and other browsers, to access resources, the operation and maintenance terminal automatically transmits operation and maintenance parameters to a starter control, and the starter determines the protocol type to be operated and maintained and then calls different tools to realize operations such as login substitution filling.
When an operation and maintenance person uses a non-IE browser to access resources for operation and maintenance under the condition that an operation and maintenance terminal is a platform such as MAC (media access control), linux and the like, a background automatically calls a starter control, and then calls different tools to realize operations such as login substitution filling and the like by judging the protocol type to be operated and maintained. For example, when the protocol type is a text protocol, the pushy software or the custom tool is called to carry out operation and maintenance.
When the protocol type is the text transfer protocol, the filezilla software or the custom tool is called to carry out operation and maintenance.
When the protocol type is a graphic protocol, the mstsc software or the uniionrdp tool is called to carry out operation and maintenance.
And when the protocol type is a service application protocol, calling the operation and maintenance of the VDH interface by adopting a starter control.
Wherein, the starter control is realized by java language. Since java supports the characteristic of cross-platform, the starter control supports multiple platforms such as windows, Linux, and Max to be installed and used.
Before the above embodiment is applied, the operation and maintenance client needs to install a starter control, and after installation, the custom url protocol is registered in the installation client. When the operation and maintenance personnel access the resources and perform operation and maintenance through an IE or non-IE browser on different platforms, the url protocol is opened and transmits operation and maintenance related authentication information to the starter, the starter calls the https interface to communicate by using the transmitted authentication information, obtains specific operation and maintenance personnel information, operation and maintenance equipment IP, ports, protocols, operation and maintenance tools and other operation and maintenance related parameters, and calls different operation and maintenance tools to realize login substitution and filling.
According to the content, under the conditions that operation and maintenance personnel are more and operation and maintenance scenes are complex, the method and the system can be well compatible with different terminal systems and different browser versions of users, cross-platform and cross-browser operation and maintenance are achieved, the operation process is optimized, and the working efficiency is improved. And under a certain service scene with strict requirements on the operation and maintenance platform and the browser, the function can be directly used without independently adapting the compatibility, so that the diversity of the service scene is enriched.
And because the starter control is simple to install, the starter control is installed once and for all. The operation and maintenance operation execution background automatically calls the starter, operation and maintenance personnel have no sense to the starter control, the operation is smooth, and redundant operation steps are not added. In addition, the starter calls an https interface to communicate, and transmits operation and maintenance related parameters such as operation and maintenance personnel information, operation and maintenance equipment IP, ports, protocols, operation and maintenance tools and the like. The https protocol can guarantee the security of data transmission, encrypts communication of the data transmission, can prevent data from being stolen and changed in the transmission process, and guarantees the integrity of the data.
The embodiment of the invention provides a cross-platform cross-browser operation and maintenance access system, which comprises:
the response module is used for responding to the resource access operation and maintenance request of the operation and maintenance terminal;
the transmission module is used for transmitting the operation and maintenance authentication information to a first control according to the resource access operation and maintenance request, and the first control is edited by java speech;
and the calling module is used for judging the protocol type needing operation and maintenance at present by adopting the first control according to the operation and maintenance authentication information and calling an operation and maintenance tool to carry out operation and maintenance according to the protocol type.
The content of the embodiment of the method of the invention is all applicable to the embodiment of the system, the function of the embodiment of the system is the same as the embodiment of the method, and the beneficial effect achieved by the embodiment of the system is the same as the beneficial effect achieved by the method.
The embodiment of the invention provides a cross-platform cross-browser operation and maintenance access system, which comprises:
at least one memory for storing a program;
and the at least one processor is used for loading the program to execute the cross-platform cross-browser operation and maintenance access method shown in the figure 1.
The content of the embodiment of the method of the invention is all applicable to the embodiment of the system, the function of the embodiment of the system is the same as the embodiment of the method, and the beneficial effect achieved by the embodiment of the system is the same as the beneficial effect achieved by the method.
An embodiment of the present invention provides a storage medium, in which a computer-executable program is stored, and the computer-executable program is used for implementing the operation and maintenance access method of the cross-platform cross-browser shown in fig. 1 when being executed by a processor.
The embodiment of the invention also discloses a computer program product or a computer program, which comprises computer instructions, and the computer instructions are stored in a computer readable storage medium. The computer instructions may be read by a processor of a computer device from a computer-readable storage medium, and executed by the processor to cause the computer device to perform the method illustrated in fig. 1.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention. Furthermore, the embodiments of the present invention and the features of the embodiments may be combined with each other without conflict.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种基于硬件加速的运算电路系统及芯片