A server password modification method and device, electronic equipment and storage medium

By simulating manual operation to obtain and identify actions on the server password modification interface to generate an operation sequence, the problem of low efficiency and large workload caused by the diversity of server password modification processes is solved, and efficient password modification is achieved.

CN114139142BActive Publication Date: 2026-01-27HANGZHOU DBAPPSECURITY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111517618.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-13
Publication Date
2026-01-27
Estimated Expiration
2041-12-13

AI Technical Summary

Technical Problem

With a large number of servers and different password modification procedures for each server, manual modification is inefficient and increases the workload of administrators.

Method used

By simulating manual operation, the system obtains the server's password modification interface, marks the operation area, records the operation video, identifies the operation actions to generate an operation sequence, and uses the sequence to modify the server password.

Benefits of technology

It implements a password modification process that adapts to different servers, ensuring effective password changes, reducing repetitive workload for administrators, and improving modification efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114139142B_ABST
    Figure CN114139142B_ABST
Patent Text Reader

Abstract

The application provides a server password modification method, comprising: obtaining a password modification interface of a specified server, and marking an operation area in the password modification interface; recording artificial operation in the marked password modification interface to obtain an operation video; identifying operation actions in the operation area in the operation video to obtain an operation sequence; and modifying the server password of the specified server by using the operation sequence. The password modification can be realized by simulating artificial operation, which can adapt to password modification processes of different servers, ensure that the password of the specified server is effectively modified, and after the operation sequence is obtained, the workload of the management personnel caused by repeatedly performing the same work by artificial operation can be avoided, and the password modification efficiency is improved. The application also provides a server password modification device, an electronic device and a storage medium, which have the above beneficial effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of servers, and in particular to a method, apparatus, electronic device, and storage medium for modifying server passwords. Background Technology

[0002] Servers frequently encounter password security issues such as brute-force attacks and credential stuffing during use, making regular password changes essential. However, with a large number of servers and varying password change procedures for each, manually changing all server passwords is not only inefficient but also increases the workload for administrators. Summary of the Invention

[0003] The purpose of this invention is to provide a server password modification method, apparatus, electronic device, and storage medium that can modify passwords by simulating manual operation, ensuring that the password of a specified server is effectively modified and improving password modification efficiency.

[0004] To solve the above technical problems, the present invention provides a method for modifying a server password, comprising:

[0005] Obtain the password modification interface of the specified server, and mark the operation area in the password modification interface;

[0006] Record manual operations in the marked password modification interface to obtain an operation video;

[0007] The operation actions within the operation area are identified in the operation video to obtain the operation sequence;

[0008] The specified server password is modified using the operation sequence.

[0009] Optionally, the step of identifying the operation action within the operation area in the operation video to obtain the operation sequence includes:

[0010] The operation actions within the operation area are detected in the operation video using a preset machine learning model, and the operation actions are arranged in the detection order to obtain the operation sequence;

[0011] Accordingly, modifying the server password of the designated server using the operation sequence includes:

[0012] The operation actions in the operation sequence are executed sequentially on the password modification interface to modify the server password of the specified server.

[0013] Optionally, the step of identifying the operation action within the operation area in the operation video to obtain the operation sequence includes:

[0014] Obtain a preset template; the preset template contains preset server commands corresponding to each of the operation actions;

[0015] The system uses a preset machine learning model to detect the operation actions within the operation area in the operation video, and searches for the target server command corresponding to the operation actions within the operation area in the preset template.

[0016] The target server commands are arranged according to the detection order to obtain the operation sequence;

[0017] Accordingly, modifying the server password of the designated server using the operation sequence includes:

[0018] The target server commands in the operation sequence are sent sequentially to the designated server to modify the server password of the designated server.

[0019] Optionally, modifying the server password of the designated server using the operation sequence includes:

[0020] The specified server password is periodically modified using the operation sequence.

[0021] Optionally, before modifying the server password of the designated server using the operation sequence, the method further includes:

[0022] Perform interface probing on the designated server to determine whether a network connection can be established with the designated server;

[0023] If the network connection can be established, proceed to the step of modifying the server password of the execution server using the operation sequence;

[0024] If the network connection cannot be established, a preset error message will be output.

[0025] The present invention also provides a server password modification device, comprising:

[0026] The interface marking module is used to obtain the password modification interface of the specified server and mark the operation area in the password modification interface;

[0027] The recording module is used to record manual operations in the marked password modification interface to obtain operation videos;

[0028] The recognition module is used to recognize the operation actions within the operation area in the operation video and obtain the operation sequence;

[0029] An execution module is used to modify the server password of the specified server using the operation sequence.

[0030] Optionally, the identification module includes:

[0031] The first recognition unit is used to detect operation actions within the operation area in the operation video using a preset machine learning model, and arrange the operation actions in the detection order to obtain the operation sequence;

[0032] Accordingly, the execution module includes:

[0033] The first execution unit is used to sequentially execute the operation actions in the operation sequence on the password modification interface in order to modify the server password of the specified server.

[0034] Optionally, the identification module includes:

[0035] A template acquisition unit is used to acquire a preset template; the preset template contains preset server commands corresponding to each of the operation actions.

[0036] The second recognition unit is used to detect the operation actions in the operation area in the operation video using a preset machine learning model, and to find the target server command corresponding to the operation actions in the operation area in the preset template.

[0037] The sorting unit is used to sort the target server commands according to the detection order to obtain the operation sequence;

[0038] Accordingly, the execution module includes:

[0039] The second execution unit is used to send the target server commands in the operation sequence to the designated server in sequence, so as to modify the server password of the designated server.

[0040] The present invention also provides an electronic device, comprising:

[0041] Memory, used to store computer programs;

[0042] A processor is configured to implement the steps of the server password modification method as described above when executing the computer program.

[0043] The present invention also provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of the server password modification method described above.

[0044] This invention provides a method for modifying a server password, comprising: obtaining a password modification interface of a specified server and marking an operation area in the password modification interface; recording a manual operation in the marked password modification interface to obtain an operation video; identifying the operation actions in the operation area in the operation video to obtain an operation sequence; and using the operation sequence to modify the server password of the specified server.

[0045] As can be seen, this invention first obtains the password modification interface of a specified server, which is a visual interface for manually modifying the server password. After obtaining this interface, the invention marks it to identify the areas within the password modification interface that can be manually operated. After marking, the invention records the manual operation on the marked interface to obtain an operation video, and identifies the operation actions in the previously marked areas in the operation video to obtain an operation sequence. In other words, it can identify the operation actions and order of the administrator on this interface. Finally, this invention can use this operation sequence to modify the server password of the specified server, thus achieving password modification by simulating manual operation. This not only adapts to the password modification process of different servers, ensuring that the password of the specified server is effectively modified, but also avoids the workload of administrators who repeatedly perform the same tasks after obtaining the operation sequence, thereby improving the efficiency of password modification. This invention also provides a server password modification device, electronic device, and storage medium, which have the above-mentioned beneficial effects. Attached Figure Description

[0046] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0047] Figure 1 A flowchart illustrating a server password modification method provided in an embodiment of the present invention;

[0048] Figure 2 A flowchart of another server password modification method provided in an embodiment of the present invention;

[0049] Figure 3 This is a structural block diagram of a server password modification device provided in an embodiment of the present invention. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0051] Servers frequently encounter password security issues such as brute-force attacks and credential stuffing during operation, making regular password changes essential. However, with a large number of servers and varying password change procedures for each, manual password changes for all servers are not only inefficient but also increase the workload for administrators. Therefore, this invention provides a server password change method that simulates manual operation, ensuring effective password changes for designated servers and improving overall efficiency. Please refer to [reference needed]. Figure 1 , Figure 1 A flowchart of a server password modification method provided in an embodiment of the present invention, the method may include:

[0052] S101. Obtain the password modification interface of the specified server and mark the operation area in the password modification interface.

[0053] In this embodiment of the invention, the password modification interface is a visual interface for manually operating a specified server. This embodiment does not limit the method of obtaining the password modification interface; for example, it can be pre-stored or the server's password modification interface can be directly accessed. Furthermore, it is understood that the password modification interface contains a lot of operational content and many operable areas. To accurately identify the operator's actions on the interface, this embodiment also marks the interface to determine the manually operable areas. It should be noted that this embodiment does not limit the method of marking the operation areas; for example, visual marking can be directly performed on the interface, or no visual marking can be performed, only a selection box can be drawn around the operation area. This embodiment also does not limit the specific shape and number of operation areas, which can be set according to actual application needs. This embodiment also does not limit the operable elements that can be included in the operation area, such as input boxes, buttons, scroll bars, etc., which can be set according to actual application needs.

[0054] S102. Record manual operation in the marked password modification interface to obtain operation video.

[0055] It should be noted that the embodiments of the present invention do not limit the specific method of video recording or the specific recording parameters and format of the operation video. Related screen recording technologies can be referenced, as long as the operator's manual operations in each area can be completely recorded. Furthermore, the embodiments of the present invention do not limit the specific manual operations; for example, it can be typing, clicking, dragging, etc., and can be set according to actual application needs.

[0056] S103. Identify the operation actions within the operation area in the operation video to obtain the operation sequence.

[0057] After obtaining the operation video, the operation actions within the operation area can be identified, and then a sequence can be generated using these actions. Specifically, a pre-trained machine learning model can be used for image recognition to determine the specific operation actions within the operation area. It should be noted that this embodiment of the invention does not limit the specific type of the machine learning model; relevant machine learning technologies can be referenced, as long as the model is trained using video images containing human operation actions and can correctly identify the aforementioned operation actions. This embodiment of the invention also does not limit the training and recognition process of the machine learning model; relevant machine learning technologies can also be referenced. Of course, the model can also be further pre-set with command templates, which contain pre-set server commands corresponding to each operation action. For example, after entering certain parameters at a certain location, the model can automatically identify the entered action and the entered parameters, and then generate the corresponding server command. In other words, the operation sequence in this embodiment of the invention can include operation actions on the operation interface or server commands generated by the operation actions; therefore, when using the operation sequence to modify the password of a specified server, the operation actions in the operation sequence can be used to simulate manual operation on the password modification interface of the specified server, or the server commands in the operation sequence can be sent to the specified server to modify the server password.

[0058] In one possible scenario, identifying the actions within the operation area in the operation video to obtain the operation sequence may include:

[0059] Step 11: Use a preset machine learning model to detect the operation actions within the operation area in the operation video, and arrange the operation actions according to the detection order to obtain the operation sequence;

[0060] Accordingly, modifying the server password of the specified server using the operation sequence, i.e., step S104, may include:

[0061] Step 12: On the password modification interface, execute the operation sequence in sequence to modify the server password for the specified server.

[0062] In one possible scenario, identifying the actions within the operation area in the operation video to obtain the operation sequence may include:

[0063] Step 21: Obtain the preset template; the preset template contains the preset server commands corresponding to each operation action;

[0064] Step 22: Use a preset machine learning model to detect the operation actions within the operation area in the operation video, and search for the target server command corresponding to the operation actions within the operation area in the preset template;

[0065] Step 23: Arrange the target server commands according to the detection order to obtain the operation sequence;

[0066] Accordingly, the server password of the specified server is modified using the operation sequence, i.e., step S104 may include:

[0067] Step 24: Send the target server commands in the operation sequence to the specified server in sequence to modify the server password of the specified server.

[0068] It should be noted that the embodiments of the present invention do not limit the specific form of the preset template, and can be set according to actual application needs.

[0069] S104. Modify the server password of the specified server using the operation sequence.

[0070] It is understood that the operation sequence can be reused; that is, after recording the operation sequence only once, it can be used to repeatedly change the password of the specified server and other servers of the same type before the password modification process of the specified server changes. Of course, for ease of management, the password of the specified server can be modified periodically. The embodiments of the present invention do not limit the specific period value of password modification, and can be set according to actual application needs.

[0071] In one possible scenario, modifying the server password of a specified server using an operation sequence could include:

[0072] Step 31: Use the operation sequence to periodically change the server password of the specified server.

[0073] Of course, to ensure the password of the specified server is effectively changed, an interface probe can be performed on the specified server before changing the password to ensure that a network connection can be established with the server. If a network connection can be established, the above-mentioned server password change process will proceed; otherwise, a preset error message will be output.

[0074] In one possible scenario, prior to modifying the server password of the specified server using the operation sequence, the following may also be included:

[0075] Step 41: Perform interface probing on the specified server to determine whether a network connection can be established with the specified server; if a network connection can be established, proceed to step 42; if a network connection cannot be established, proceed to step 43.

[0076] Step 42: Proceed to the step of modifying the server password using the operation sequence;

[0077] Step 43: Output the preset exception information.

[0078] It should be noted that the embodiments of the present invention do not limit the specific content of the preset abnormal information, and can be set according to actual application needs.

[0079] Based on the above embodiments, this invention first obtains the password modification interface of a specified server, which is a visual interface for manually modifying the server password. After obtaining the interface, this invention marks it to identify the areas within the password modification interface that can be manually operated. After marking, this invention records the manual operation in the marked interface to obtain an operation video, and identifies the operation actions in the previously marked areas in the operation video to obtain an operation sequence. In other words, it can identify the operation actions and order of the administrator in this interface. Finally, this invention can use the operation sequence to modify the server password of the specified server, that is, to achieve password modification by simulating manual operation. This not only adapts to the password modification process of different servers, ensuring that the password of the specified server is effectively modified, but also avoids the workload of administrators who repeatedly perform the same work after obtaining the operation sequence, thereby improving the efficiency of password modification.

[0080] The following section uses specific examples to illustrate the server password modification method described above. Please refer to it. Figure 2 , Figure 2 This is a flowchart of another server password modification method provided in an embodiment of the present invention. The method may include:

[0081] 1. Use software that can mark up videos. First, select the operation area, such as: active window, rectangular area, freehand area, entire screen, scrolling window, fixed area definition, etc., as the scope of the password modification operation, and then record the video to obtain the operation video.

[0082] 2. Log in to the password modification software. Use the built-in network testing tool to test network connectivity and ports, ensuring network reachability between the software and the server. If unreachable, it can output log information about abnormal nodes in the network. Enter the address, username, and password of the server to be modified. Verify the password to ensure it is correct. Import the video into the password modification software. There are two modification methods to choose from: the first is to manually simulate the video recording; the second is to generate a corresponding server command file from the video recording and then modify the password by transmitting commands to the server. After the modification is complete, verify the password. Successful verification completes the password modification process.

[0083] The following describes the server password modification device, electronic device, and storage medium provided in the embodiments of the present invention. The server password modification device, electronic device, and storage medium described below can be referred to in correspondence with the server password modification method described above.

[0084] Please refer to Figure 3 , Figure 3 This is a structural block diagram of a server password modification device provided in an embodiment of the present invention. The device may include:

[0085] The interface marking module 301 is used to obtain the password modification interface of the specified server and mark the operation area in the password modification interface;

[0086] The recording module 302 is used to record manual operations in the marked password modification interface to obtain operation video;

[0087] The recognition module 303 is used to recognize the operation actions within the operation area in the operation video and obtain the operation sequence;

[0088] Execution module 304 is used to modify the server password of a specified server using an operation sequence.

[0089] Optionally, the recognition module 303 may include:

[0090] The first recognition unit is used to detect operation actions within the operation area in the operation video using a preset machine learning model, and arrange the operation actions according to the detection order to obtain an operation sequence.

[0091] Accordingly, execution module 304 may include:

[0092] The first execution unit is used to execute the operation sequence in the password modification interface in sequence to modify the server password of the specified server.

[0093] Optionally, the recognition module 303 may include:

[0094] The template acquisition unit is used to acquire preset templates; the preset templates contain preset server commands corresponding to each operation action;

[0095] The second recognition unit is used to detect operation actions within the operation area in the operation video using a preset machine learning model, and to search for the target server command corresponding to the operation action within the operation area in a preset template.

[0096] The sorting unit is used to sort the target server commands according to the detection order to obtain the operation sequence;

[0097] Accordingly, execution module 304 may include:

[0098] The second execution unit is used to send the target server commands in the operation sequence to the specified server in sequence, so as to modify the server password of the specified server.

[0099] Optionally, execution module 304 may include:

[0100] The third execution unit is used to periodically modify the server password of a specified server using an operation sequence.

[0101] Optionally, the device may further include:

[0102] The interface detection module is used to detect the interface of a specified server and determine whether a network connection can be established with the specified server.

[0103] The processing module, if a network connection can be established, proceeds to the step of modifying the server password using an operation sequence.

[0104] The exception output module is used to output preset exception information if a network connection cannot be established.

[0105] This invention also provides an electronic device, comprising:

[0106] Memory, used to store computer programs;

[0107] A processor is used to execute computer programs to implement the steps of the server password modification method described above.

[0108] Since the embodiments of the electronic device part correspond to the embodiments of the server password modification method part, please refer to the description of the embodiments of the server password modification method part for the embodiments of the electronic device part, and will not be repeated here.

[0109] This invention also provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of the server password modification method described in any of the above embodiments.

[0110] Since the embodiments of the storage medium section correspond to the embodiments of the test task generation method section, please refer to the description of the embodiments of the server password modification method section for the embodiments of the storage medium section, and will not be repeated here.

[0111] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0112] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0113] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0114] The foregoing has provided a detailed description of a server password modification method, apparatus, electronic device, and storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of the present invention. It should be noted that those skilled in the art can make various improvements and modifications to the present invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims

1. A method for modifying a server password, characterized in that, include: Obtain the password modification interface of the specified server, and mark the operation area in the password modification interface; The password modification interface is a visual interface for manually changing the password of a specified server. Record manual operations in the marked password modification interface to obtain an operation video; The operation actions within the operation area are identified in the operation video to obtain the operation sequence; The server password of the specified server is modified using the operation sequence described above; The step of identifying the operation actions within the operation area in the operation video to obtain the operation sequence includes: The operation actions within the operation area are detected in the operation video using a preset machine learning model, and the operation actions are arranged in the detection order to obtain the operation sequence; Accordingly, modifying the server password of the designated server using the operation sequence includes: The operation actions in the operation sequence are executed sequentially on the password modification interface to modify the server password of the specified server. The step of identifying the operation actions within the operation area in the operation video to obtain the operation sequence includes: Obtain a preset template; the preset template contains preset server commands corresponding to each of the operation actions; The system uses a preset machine learning model to detect the operation actions within the operation area in the operation video, and searches for the target server command corresponding to the operation actions within the operation area in the preset template. The target server commands are arranged according to the detection order to obtain the operation sequence; Accordingly, modifying the server password of the designated server using the operation sequence includes: The target server commands in the operation sequence are sent sequentially to the designated server to modify the server password of the designated server.

2. The server password modification method according to claim 1, characterized in that, The step of modifying the server password of the designated server using the operation sequence includes: The specified server password is periodically modified using the operation sequence.

3. The server password modification method according to claim 1, characterized in that, Before modifying the server password of the designated server using the operation sequence, the procedure further includes: Perform interface probing on the designated server to determine whether a network connection can be established with the designated server; If the network connection can be established, proceed to the step of modifying the server password of the designated server using the operation sequence; If the network connection cannot be established, a preset error message will be output.

4. A server password modification device, characterized in that, include: The interface marking module is used to obtain the password modification interface of the specified server and mark the operation area in the password modification interface; The password modification interface is a visual interface for manually changing the password of a specified server. The recording module is used to record manual operations in the marked password modification interface to obtain operation videos; The recognition module is used to recognize the operation actions within the operation area in the operation video and obtain the operation sequence; The execution module is used to modify the server password of the specified server using the operation sequence; The identification module includes: The first recognition unit is used to detect operation actions within the operation area in the operation video using a preset machine learning model, and arrange the operation actions in the detection order to obtain the operation sequence; Accordingly, the execution module includes: The first execution unit is used to sequentially execute the operation actions in the operation sequence on the password modification interface in order to modify the server password of the specified server. The recognition module includes: A template acquisition unit is used to acquire a preset template; the preset template contains preset server commands corresponding to each of the operation actions. The second recognition unit is used to detect the operation actions in the operation area in the operation video using a preset machine learning model, and to find the target server command corresponding to the operation actions in the operation area in the preset template. The sorting unit is used to sort the target server commands according to the detection order to obtain the operation sequence; Accordingly, the execution module includes: The second execution unit is used to send the target server commands in the operation sequence to the designated server in sequence, so as to modify the server password of the designated server.

5. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the server password modification method as described in any one of claims 1 to 3 when executing the computer program.

6. A storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the steps of the server password modification method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Password management system based on command-detecting password changing and utilization method

    CN107423638A

  • Software robot system for various applications and working method thereof

    CN112861440A