Method and device for realizing remote management and control of client terminal based on webpage
Through the remote control method based on web pages, the user-side dedicated browser and local proxy services are used to solve the problem of client terminal operation delay caused by the long-term absence of users, and automated terminal management is realized, which improves security and timeliness.
Patent Information
- Application Number
- CN202510968528.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-15
- Publication Date
- 2025-08-12
AI Technical Summary
Since users are not in front of the computer for a long time and cannot complete the update, exit and restart of the client terminal in time, the risk of security vulnerabilities exists.
Through the remote control method based on web pages, the user's dedicated browser and local proxy services are used to receive instructions from the operation and maintenance management end and perform corresponding operations, including terminating or starting the client terminal and feedback the execution results.
It realizes automatic update, exit and restart of client terminals when the user is not present, avoiding security vulnerabilities and improving operation timeliness and security.
Smart Images

Figure CN120469728A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of remote control of client terminals, and in particular to a method and apparatus for remotely controlling a client terminal based on a web page. Background Art
[0002] In daily work, some users are away from their computers for a long time, resulting in the inability to complete operations such as updating, exiting, and restarting the client terminal. Therefore, a method of shutting down and starting the client terminal through remote monitoring was born. However, in the existing technology, when the client terminal needs to be updated, exited, and restarted, the user is usually prompted with an upgrade service. After that, the user still needs to manually click or manually restart the client terminal to complete the upgrade operation. This causes some customers to be unable to operate in time due to distance reasons, and thus cannot experience the latest services, resulting in the persistence of the problem and the risk of security vulnerabilities. Summary of the Invention
[0003] The present disclosure provides a method and device for remotely controlling a client terminal based on a web page, so as to solve the problem that a client cannot update, exit, restart, or perform other operations on the client terminal in a timely manner due to distance reasons.
[0004] In the first aspect, the present disclosure provides a method for remotely controlling a client terminal based on a web page, which is applied to a user terminal and includes: receiving a browser startup instruction and starting a dedicated browser; starting a first local proxy service; receiving an instruction sent by an operation and maintenance management terminal, and performing corresponding operations on the client terminal according to the instruction sent by the operation and maintenance management terminal; receiving an execution feedback result sent by the client terminal and sending it to the operation and maintenance management terminal.
[0005] In a real-time manner, the method includes starting a second local proxy service after starting the professional browser for the first time.
[0006] In a real-time manner, the instructions sent by the operation and maintenance management end are received, and corresponding operations are performed on the client terminal according to the instructions sent by the operation and maintenance management end, including: receiving the exit terminal instruction sent by the operation and maintenance management end; finding the process ID of the terminal, and directly terminating the corresponding terminal through the kill command.
[0007] In a real-time manner, the instructions sent by the operation and maintenance management end are received, and corresponding operations are performed on the client terminal according to the instructions sent by the operation and maintenance management end, including: receiving a terminal startup instruction sent by the operation and maintenance management end; entering the executable file directory of the client terminal, and executing the executable file to start the client terminal.
[0008] In the second aspect, the present disclosure provides an application to an operation and maintenance management end, which communicates with the user end in real time; the method includes: receiving an execution task, sending the instructions corresponding to the task to the user end; receiving and saving the execution feedback results sent by the user end; and sending the execution feedback results to the operation and maintenance personnel.
[0009] In the third aspect, the present disclosure provides a device for remotely controlling client terminals based on web pages, comprising: a user terminal and an operation and maintenance management terminal; the user terminal is installed with a dedicated browser, a local proxy service, a communication module and an extension plug-in module; the operation and maintenance management terminal includes an operation and maintenance instruction module and an instruction feedback module; the communication module communicates with the operation and maintenance instruction module in real time; the extension plug-in module communicates and interacts with the local proxy service in real time; the local proxy service is used to perform corresponding operations on the client terminal according to the instructions sent by the operation and maintenance management terminal; the instruction feedback module is used to receive and save the execution feedback results sent by the user terminal.
[0010] In a real-time manner, the local proxy service includes a first local proxy service and a second local proxy service; the first local proxy service is used to identify the client terminal type and execute the corresponding terminal command; the second local proxy service is used to daemon the process to prevent the first local proxy service from exiting abnormally.
[0011] In a fourth aspect, the present disclosure provides a computer device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the above-described method.
[0012] In a fifth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the method described in the above aspects when executed by a processor.
[0013] In a sixth aspect, the present disclosure provides a computer program product, comprising a computer program / instructions, which implements the steps of the method described in the above aspects when executed by a processor.
[0014] The present disclosure provides a method and device for remotely controlling a client terminal based on a web page, which starts a dedicated browser by receiving a browser startup instruction; starts a first local proxy service; receives instructions sent by an operation and maintenance management terminal, and performs corresponding operations on the client terminal according to the instructions sent by the operation and maintenance management terminal; receives the execution feedback results sent by the client terminal, and sends them to the operation and maintenance management terminal. By setting up a dedicated browser and a local proxy service on the user side, as well as setting up an operation and maintenance management terminal, users can perform shutdown / restart operations in batches or even in full in the background, avoiding the problem of users hanging up for a long time and deliberately retaining old versions, which leads to persistent problems and the risk of security vulnerabilities; this operation is also mandatory and can be directly executed without the user's permission; and professional background operation and maintenance personnel are provided to provide professional operations, which is relatively lighter and more professional. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Hereinafter, the present disclosure will be described in more detail based on embodiments and with reference to the accompanying drawings: Figure 1 A flowchart of a method for remotely controlling a client terminal based on a web page provided by a user terminal according to an embodiment of the present disclosure.
[0016] Figure 2 A flowchart of a method for remotely controlling a client terminal based on a web page provided by an operation and maintenance management terminal according to an embodiment of the present disclosure.
[0017] Figure 3 A flowchart of a method for remotely controlling a client terminal based on a web page is provided in an embodiment of the present disclosure.
[0018] Figure 4 A schematic diagram of a structure for implementing remote control of a client terminal device based on a web page provided in an embodiment of the present disclosure.
[0019] In the drawings, like components are given like reference numerals, and the drawings are not drawn to scale. DETAILED DESCRIPTION
[0020] In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, and to fully understand and implement how the present disclosure applies technical means to solve technical problems and achieve the corresponding technical effects, the technical solutions 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 only part of the embodiments of the present disclosure, not all of the embodiments. The embodiments of the present disclosure and the various features in the embodiments can be combined with each other without conflict, and the technical solutions formed are all within the scope of protection of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work should fall within the scope of protection of the present disclosure.
[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0022] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0023] In one embodiment of the present invention, a method for remotely controlling a client terminal based on a web page is provided, and the method is applied to a user terminal. Figure 1 and Figure 3 As shown, the method for remotely controlling a client terminal based on a web page includes: Step 01: Receive the browser startup instruction and start the dedicated browser.
[0024] Specifically, it is understood that a dedicated browser is installed on the user terminal, wherein the user terminal can be an electronic device carried by the user.
[0025] After installing a dedicated browser on the user side, two core components will exist: the dedicated browser and a local proxy service. The dedicated browser is used to access the B / S system (Browser / Server) for browsing operations. A B / S system, also known as a B / S information publishing system, is simply an information publishing platform within a B / S architecture, using the internet for data transmission.
[0026] In addition, the client includes a built-in WebSocket service and extension plugin. The WebSocket service communicates with the operations management client in real time, while the extension plugin communicates and exchanges data with the local proxy service. WebSocket is a full-duplex communication protocol over a single TCP connection. WebSocket simplifies data exchange between the client and server, allowing the server to proactively push data to the client.
[0027] Step 02: Start the first local agent service.
[0028] Specifically, it can be understood that when the user starts the dedicated browser, the local proxy service subsequently starts the first local proxy service.
[0029] The first local proxy service is used to execute localized terminal commands, and the life cycle of the first local proxy service follows the startup and shutdown of the dedicated browser.
[0030] The first local proxy service is a localized Java process that achieves compatibility with Windows and localized versions. It is compatible with terminal commands across different operating systems, can identify the current terminal type, and execute the corresponding terminal commands. Each time the dedicated browser is launched, the operating system information is read. After the first local proxy service is launched, the operating system information is sent to the operation and maintenance management terminal. When the operation and maintenance management terminal sends commands to the first local proxy service, it sends commands adapted to the operating system, and the first local proxy service directly sends the commands to the operating system.
[0031] The first local proxy service receives the instruction sent by the extension plug-in service.
[0032] Step 03: Receive instructions from the operation and maintenance management terminal, and perform corresponding operations on the client terminal according to the instructions sent by the operation and maintenance management terminal. Specifically including: 1: Receive a terminal exit command from the operation and maintenance management terminal. First, find the terminal's process ID and directly terminate the corresponding terminal using the kill command. Optionally, the terminal can be an app installed in the operating system; the kill command is sent by the first local agent service to the operating system. The terminal exit command is typically executed late at night to avoid accidental operation.
[0033] 2: Receive a terminal startup command from the operation and maintenance management terminal. First, navigate to the client terminal's executable file directory and execute the executable file to launch the client terminal. For example, an app on an operating system might require super-management privileges, traverse the directory using the app name, and launch the app. This path is recorded and stored on the operation and maintenance management terminal during the initial launch.
[0034] Step 04: Receive the execution feedback result sent by the client terminal and send it to the operation and maintenance management terminal.
[0035] In one embodiment of the present invention, after the professional browser is started for the first time, the second local proxy service is started.
[0036] The second local proxy service is a daemon process that prevents the first local proxy service from exiting unexpectedly. Once started, its lifecycle remains long-lasting and is unaffected by the launch and shutdown of the dedicated browser. This means that the second local proxy service is launched after the browser is first launched and never shuts down.
[0037] Specifically, the shortcut contains a script that includes the startup paths for the first and second local proxy services. Therefore, the first local proxy service is started each time the browser is launched. Before starting, the second local proxy service is checked to see if it is active. If so, it is not started again. The first local proxy service periodically checks whether the browser is active and automatically closes if not.
[0038] In one embodiment of the present invention, a method for remotely controlling a client terminal based on a web page is provided, which is applied to an operation and maintenance management terminal. Figure 2 and Figure 3 As shown, the method for remotely controlling a client terminal based on a web page includes: Step 11: Receive the execution task and send the instruction corresponding to the task to the user end.
[0039] Step 12: Receive and save the execution feedback result sent by the user end.
[0040] Step 13: Send the execution feedback result to the operation and maintenance personnel.
[0041] As you can understand, after receiving a task, the operations manager executes the exit / start terminal command, executing the specified operations instructions through the operations client. This communication is carried out in real time via the WebSocket service, which is linked to the user side. The CMD command data is sent to the extension plug-in module via WebSocket. Similarly, the command result data from the user side is received via WebSocket. The user side sends the feedback to the operations manager, which then stores the data in the command feedback module. After reviewing the feedback, the operations manager records and reports it in real time, guiding the next step.
[0042] This embodiment provides a device for remotely controlling a client terminal based on a web page. Figure 4 As shown, the device includes a user terminal and an operation and maintenance management terminal; the user terminal is equipped with a dedicated browser, a local proxy service, a communication module, and an extension plug-in module; the operation and maintenance management terminal includes an operation and maintenance instruction module and an instruction feedback module; the communication module communicates with the operation and maintenance instruction module in real time; the extension plug-in module communicates and exchanges data with the local proxy service in real time; the local proxy service is used to perform corresponding operations on the client terminal according to the instructions sent by the operation and maintenance management terminal; the instruction feedback module is used to receive and store the execution feedback results sent by the user terminal. Optionally, the communication module is a websocket.
[0043] In one embodiment of the present invention, the local proxy service includes a first local proxy service and a second local proxy service; the first local proxy service is used to identify the client terminal type and execute the corresponding terminal command; the second local proxy service is used to daemon the process to prevent the first local proxy service from exiting abnormally.
[0044] The above-mentioned embodiments provided by the present invention, for ordinary users, are characterized by the ability to remotely shut down / start designated user client terminals, thus preventing users from being idle for long periods of time or intentionally retaining old versions, which can lead to persistent problems and the risk of security vulnerabilities. This operation is also mandatory and can be executed directly without user permission. This solution has been implemented in the company's actual products and can remotely shut down and restart certain abnormal terminals, ensuring timeliness.
[0045] Based on the above embodiments, this embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method described in the above embodiments.
[0046] In some implementations of this embodiment, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the method described in the above embodiment are implemented.
[0047] In some implementations of this embodiment, a computer program product is provided, including a computer program / instruction, characterized in that when the computer program is executed by a processor, the steps of the method described in the above embodiment are implemented.
[0048] The processor may include, but is not limited to, one or more processors or microprocessors. Each processor may be an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a controller, a microcontroller, a microprocessor or other electronic components to execute the method in the above embodiment. The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof. The computer-readable storage medium may include, but is not limited to, for example, random access memory (RAM), read-only memory (ROM), flash memory, EPROM memory, EEPROM memory, registers, computer storage media (such as hard disks, floppy disks, solid-state drives, removable disks, CD-ROMs, DVD-ROMs, Blu-ray discs, etc.).
[0049] The computer-readable storage medium may also store at least one computer-executable program / instruction, such as a computer-readable instruction. Computer-readable storage media include, but are not limited to, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory. Computer-readable storage media may include, for example, read-only memory (ROM), a hard disk, a flash memory, etc. For example, a non-transitory computer-readable storage medium may be connected to a computing device such as a computer, and then, when the computing device executes the computer-readable instructions stored on the computer-readable storage medium, the various methods described above may be performed.
[0050] In addition, the computer device may also include (but is not limited to) a data bus, an input / output (I / O) bus, a display, and input / output devices (eg, keyboard, mouse, speaker, etc.).
[0051] The processor can communicate with external devices via an I / O bus via a wired or wireless network.
[0052] In one embodiment, the at least one computer executable instruction may also be compiled into or constitute a software product / computer program product, wherein one or more computer executable instructions are executed by a processor to perform the various functions and / or method steps in the embodiments described in the present technology.
[0053] In the embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a portion of code, and the above-mentioned module, program segment or a portion of code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.
[0054] It should be noted that, in this disclosure, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element limited by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0055] Although the embodiments disclosed in this disclosure are as described above, the above contents are merely embodiments adopted to facilitate understanding of the disclosure and are not intended to limit the disclosure. Any person skilled in the art of the disclosure may make any modifications and changes in the form and details of the implementation without departing from the spirit and scope of the disclosure. However, the scope of patent protection of the disclosure shall still be based on the scope defined by the attached claims.
Claims
1. A method for remotely controlling a client terminal based on a web page, applied to a user terminal, characterized in that: include: Receive a browser startup instruction and start a dedicated browser; Start the first local agent service; Receive instructions sent by the operation and maintenance management terminal, and perform corresponding operations on the client terminal according to the instructions sent by the operation and maintenance management terminal; Receive the execution feedback result sent by the client terminal and send it to the operation and maintenance management terminal.
2. The method according to claim 1, characterized in that The method comprises: starting a second local proxy service after starting the dedicated browser for the first time.
3. The method according to claim 1, characterized in that The receiving of the instruction sent by the operation and maintenance management terminal and performing corresponding operations on the client terminal according to the instruction sent by the operation and maintenance management terminal include: Receive the exit terminal instruction sent by the operation and maintenance management terminal; Find the process ID of the terminal and terminate the corresponding terminal directly using the kill command.
4. The method according to claim 1, wherein The receiving of the instruction sent by the operation and maintenance management terminal and performing corresponding operations on the client terminal according to the instruction sent by the operation and maintenance management terminal include: Receive a terminal startup instruction sent by the operation and maintenance management terminal; Enter the executable file directory of the client terminal and execute the executable file to start the client terminal.
5. A method for remotely controlling a client terminal based on a web page, applied to an operation and maintenance management terminal, characterized in that: The operation and maintenance management end communicates with the user end in real time; the method includes: Receive an execution task and send the instruction corresponding to the task to the user terminal; Receive and save the execution feedback results sent by the user; The execution feedback result is sent to the operation and maintenance personnel.
6. A device for remotely controlling a client terminal based on a web page, characterized in that: include: A user terminal and an operation and maintenance management terminal; the user terminal is equipped with a dedicated browser, a local proxy service, a communication module, and an extension plug-in module; the operation and maintenance management terminal includes an operation and maintenance instruction module and an instruction feedback module; the communication module communicates with the operation and maintenance instruction module in real time; the extension plug-in module communicates and exchanges data with the local proxy service in real time; the local proxy service is used to perform corresponding operations on the client terminal according to the instructions sent by the operation and maintenance management terminal; The instruction feedback module is used to receive and save the execution feedback result sent by the user end.
7. The device for remotely controlling a client terminal based on a web page according to claim 6, characterized in that: The local proxy service includes a first local proxy service and a second local proxy service; the first local proxy service is used to identify the client terminal type and execute the corresponding terminal command; the second local proxy service is used to guard the process to prevent the first local proxy service from exiting abnormally.
8. A computer device comprising a memory, a processor, and a computer program stored in the memory, wherein: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 5.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Method for monitoring terminal equipment on browser in real time based on Flash technology
CN103634384A
Method and device for remotely controlling terminal equipment
CN111767176A
Agent process exception self-recovery method and device
CN116795599A
Remote control method and system of terminal and medium
CN118041899A
Remote control of a computing device
US8650494B1