CN117609648A - Local information acquisition method, device, equipment and storage medium - Google Patents
Local information acquisition method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN117609648A CN117609648A CN202311648102.XA CN202311648102A CN117609648A CN 117609648 A CN117609648 A CN 117609648A CN 202311648102 A CN202311648102 A CN 202311648102A CN 117609648 A CN117609648 A CN 117609648A
- Authority
- CN
- China
- Prior art keywords
- computer
- local information
- information
- local
- processing program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 230000005540 biological transmission Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 6
- 238000012545 processing Methods 0.000 claims description 5
- 238000010923 batch production Methods 0.000 claims description 4
- 238000012163 sequencing technique Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 abstract description 7
- 238000004422 calculation algorithm Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 9
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application provides a local information acquisition method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring local information of a computer by using a batch processing program; writing the local information of the computer into a message sending webpage by utilizing a batch processing program; the computer local information is sent to the target website by the message sending webpage so that the target website stores the computer local information in the browser local cache. According to the method and the device for obtaining the local information of the computer through the batch processing program, the client program does not need to be operated, network communication is not needed, multiple browsers can be supported to obtain the local information of the computer, the local information of the computer is stored in the local cache of the browser, and the browser can directly obtain the local information of the computer from the local cache of the browser when the browser needs to obtain the local information of the computer, so that the method and the device are more convenient.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a local information acquisition method, apparatus, device, and storage medium.
Background
A Web page (Web) application is an application where the user interface resides in a browser, such as an online Web application, e.g., an online banking or online payment.
For security or other reasons, some browser/server B/S architecture systems require that users be restricted from using on a fixed computer or network, and therefore require that information such as the computer' S MAC address or IP address be obtained to verify the legitimacy of the user accessing the system website. For example, when a user performs related operations of internet banking or internet payment through a computer, in order to ensure information security, a browser needs to acquire local information of the computer to complete the whole operation process.
However, for information security reasons, the browser cannot directly obtain the local information of the computer on which it is located. Therefore, in the prior art, the acquisition of the local information is generally achieved through browser plug-in technology. However, there is a problem of compatibility between the browser and the plug-in, when the compatibility between the browser for obtaining the local information and the corresponding plug-in installed locally is not high or completely incompatible, it is easy to cause that the local information cannot be obtained on the web page, and even the browser is crashed, so that the browser is unstable in use.
Disclosure of Invention
In view of this, an object of the present application is to provide a local information obtaining method, apparatus, device and storage medium, capable of supporting multiple browsers to obtain local information of a computer, so as to avoid unstable problems caused by compatibility when the browser obtains the local information of the computer, and the specific technical scheme is as follows:
in a first aspect, the present application provides a local information obtaining method, where the method includes:
acquiring local information of a computer by using a batch processing program;
writing the local information of the computer into a message sending webpage by utilizing the batch processing program;
and sending the local information of the computer to a target website by using the message sending webpage so that the target website stores the local information of the computer in a browser local cache.
In one possible implementation, before the writing the computer local information to a messaging web page using the batch program, the method further includes:
encrypting the local information of the computer to obtain an information ciphertext;
the writing the local information of the computer into a message sending webpage by using the batch processing program comprises the following steps:
and writing the information ciphertext into the message sending webpage by using the batch processing program.
In one possible implementation manner, the encrypting the local information of the computer to obtain an information ciphertext includes:
encrypting the local information of the computer to obtain primary encryption information;
the computer IP addresses are subjected to reverse order sequencing to obtain reverse order IP addresses;
combining and arranging the computer IP address and the reverse IP address to obtain extension data;
and encrypting the preliminary encryption information by utilizing the expansion data to obtain the information ciphertext.
In one possible implementation manner, the sending the local information of the computer to the target website by using the message sending webpage includes:
and sending the local information of the computer to the target website by using the message sending webpage in a cross-domain message transmission mode.
In one possible implementation manner, the obtaining the local information of the computer by using a batch processing program includes:
and acquiring the local information of the computer by utilizing a wmic NIC command in the batch processing program.
In a second aspect, the present application further provides a local information obtaining apparatus, where the apparatus includes:
the acquisition module is used for acquiring the local information of the computer by utilizing a batch processing program;
the writing module is used for writing the local information of the computer into a message sending webpage by utilizing the batch processing program;
and the sending module is used for sending the local information of the computer to a target website by utilizing the message sending webpage so that the target website can store the local information of the computer in a browser local cache.
In one possible implementation, the apparatus further includes:
the encryption module is used for carrying out encryption processing on the local information of the computer to obtain an information ciphertext;
the writing module is specifically configured to write the information ciphertext into the message sending webpage by using the batch processing program.
In one possible implementation, the encryption module includes:
the primary encryption unit is used for encrypting the local information of the computer to obtain primary encryption information;
the sorting unit is used for carrying out reverse order sorting on the computer IP addresses to obtain reverse order IP addresses;
the arrangement unit is used for carrying out combined arrangement on the computer IP address and the reverse-order IP address to obtain extension data;
and the encryption unit is used for encrypting the primary encryption information by utilizing the expansion data to obtain the information ciphertext.
In a third aspect, the present application further provides a computer device, including: a memory and a processor;
wherein the memory is used for storing a computer program;
the processor is configured to execute a computer program in the memory to implement the method of the first aspect or any one of the first aspects.
In a fourth aspect, the present application also provides a computer readable storage medium, characterized in that instructions are stored which, when run on a computer, cause the computer to perform the method of the first aspect or any one of the first aspects.
In the embodiment of the application, the local information of the computer is obtained by utilizing a batch processing program; writing the local information of the computer into a message sending webpage by utilizing a batch processing program; the computer local information is sent to the target website by the message sending webpage so that the target website stores the computer local information in the browser local cache. According to the method and the device for obtaining the local information of the computer through the batch processing program, the client program does not need to be operated, network communication is not needed, multiple browsers can be supported to obtain the local information of the computer, the local information of the computer is stored in the local cache of the browser, and the browser can directly obtain the local information of the computer from the local cache of the browser when the browser needs to obtain the local information of the computer, so that the method and the device are more convenient.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a flowchart of a local information acquisition method provided in an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a process for obtaining local information of a computer according to an embodiment of the present application;
fig. 3 shows a flowchart of another local information obtaining method provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a data encryption process according to an embodiment of the present application;
fig. 5 shows an interaction schematic diagram between a plug-in end and a browser end provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a data decryption process according to an embodiment of the present application;
fig. 7 shows a schematic structural diagram of a local information acquisition device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
First, some terms that may appear in the embodiments of the present application will be explained.
ActiveX control: it can be seen as a very small server application that cannot run independently, must be embedded in a container program, and run with the container. This container includes web pages, application forms, and the like. IE (Internet Explorer) the browser can support web pages running ActiveX controls to obtain computer local information.
B/S architecture: i.e., browser/server architecture, the user needs to access application services through the browser without having to follow additional software.
Windows batch processing program: the method can also be called Windows batch script, the suffix name of the script file is bat, the script file consists of a group of DOS commands, and the execution can be interpreted by a command interpreter embedded in Windows.
Cross-domain messaging: the cross-domain refers to that any one of a protocol, a domain name and a port number of a network request uniform resource locator (Uniform Resource Locator, URL) is different from the current page; cross-domain messaging allows a current web page document to pass messages to another document script without concern for cross-domain issues.
LocalStorage: and the browser stores locally, the LocalStorage stores data in a local file for permanent storage, and the shared access of the web pages in the same domain is supported.
WebSocket: an application layer communication protocol running on top of a transmission control protocol (Transmission Control Protocol, TCP) supports full duplex communication between a client and a server.
In some internet applications, it is desirable to limit the access to computer devices or network address segments of the user for application data security or other considerations, and thus these application systems need to obtain local information such as the MAC address, IP address, etc. of the computer that the user is currently accessing the application system.
An ActiveX control is integrated in the traditional IE browser, so that an application running in the IE browser can easily acquire the local information of the computer through the ActiveX control. However, the google browser, 360 browser, microsoft Edge, etc. have no copyright or other reasons, and do not support the use of the ActiveX control, so that the local information of the computer needs to be obtained by other modes.
The existing supporting non-IE browser is mainly provided with two schemes for acquiring the local information of the computer.
Scheme one: the local information of the computer is obtained through developing the client program, and the local information of the computer is sent to the application server through the WebSocket.
In the first scheme, a client program needs to be developed, and the original B/S architecture system is changed into a B/S, C/S double-architecture system, so that the system architecture design is changed. In addition, the installation and operation of the client can occupy a part of the memory of the computer, and WebSocket messages communicated between the client and the server can also occupy computer network resources, so that the scheme consumes additional system resources.
Scheme II: developing google plugin, loading an ActiveX control through the plugin, so that the browser can indirectly acquire the local information of the computer through the plugin.
And in the second scheme, the Google plug-in needs to be developed to call the ActiveX control, and the method only supports the use of the Google browser and is not applicable to other browsers such as fire fox, safari and the like.
The two schemes achieve the purpose of acquiring local information of a computer by installing a new application program, and the core of the two schemes is to establish communication between the local of the computer and a browser, so that network resources are required to be consumed in actual use of the two schemes. The method for supporting multiple browsers to obtain the local information of the computer is generally realized through Windows batch processing programs, webpage cross-domain message transmission and browser local storage. The method comprises the steps of acquiring local information of a computer through a Windows batch processing program, embedding the local information of the computer into an HTML webpage file for transmitting the information, transmitting the local information of the computer to a designated target website through a cross-domain message transmission method, enabling the target website to be used freely after receiving the local information of the computer and storing the local information into a LocalStorage of a browser, and reading the local storage of the browser to acquire the local information of the computer when the website needs to reuse the local information of the computer. In addition, the application also provides a data encryption and decryption method for preventing the data from being artificially altered in the transmission process.
Referring to fig. 1, a flowchart of a local information obtaining method provided in an embodiment of the present application is shown, where the embodiment of the present application at least includes the following steps:
s11, acquiring local information of the computer by using a batch processing program.
The embodiment of the application can acquire the local information of the computer by running a batch processing program. As shown in fig. 2, when the batch program executes a command to acquire computer local information, the computer local information is requested to be acquired from the computer locally until the computer locally transmits the computer local information to the batch program.
Specifically, the wmic NIC command in the batch process may be used to obtain the local information of the computer. The wmic command is a command in a batch process, and is used for acquiring local information of a computer. The computer local information may include information such as media access control (Media Access Control or Medium Access Control, MAC) addresses, networks, memory, running programs, etc.
S12, writing the local information of the computer into the message sending webpage by utilizing a batch processing program.
After the batch processing program obtains the local information of the computer, the local information of the computer is written into the message sending webpage. The messaging web page is a hypertext markup language (HyperText Markup Language, HTML) web page file for sending information.
Specifically, the computer local information may be written to the messaging web page by an echo command.
The embodiment of the application can pre-compile batch processing programs and message sending webpages, wherein the message sending webpages comprise the addresses of the target websites.
S13, the local information of the computer is sent to the target website by using the message sending webpage, so that the target website stores the local information of the computer in the browser local cache.
After the batch processing program writes the local information of the computer into the message sending webpage, the message sending webpage is opened, and the local information of the computer can be sent to the target website by using the message sending webpage. The target website is a preset website, and the local information of the computer can be stored in the local cache of the browser by using the target website.
Specifically, the local information of the computer can be sent to the target website by using a message sending webpage in a cross-domain message transmission mode.
The messaging web page can send local information of a computer to a target website by establishing an iframe manager and realizing cross-domain messaging by using a postMessage () method.
In the embodiment of the application, the local information of the computer is obtained by utilizing a batch processing program; writing the local information of the computer into a message sending webpage by utilizing a batch processing program; the computer local information is sent to the target website by the message sending webpage so that the target website stores the computer local information in the browser local cache. According to the method and the device for obtaining the local information of the computer through the batch processing program, the client program does not need to be operated, network communication is not needed, multiple browsers can be supported to obtain the local information of the computer, the local information of the computer is stored in the local cache of the browser, and the browser can directly obtain the local information of the computer from the local cache of the browser when the browser needs to obtain the local information of the computer, so that the method and the device are more convenient.
After the batch processing program acquires the local information of the computer, in order to prevent the local information of the computer from being changed by a string in the transmission process, the local information of the computer needs to be encrypted. Referring to fig. 3, a flowchart of another local information obtaining method provided in an embodiment of the present application is shown, where the embodiment of the present application at least includes the following steps:
s21, acquiring local information of the computer by using a batch processing program.
S21 may refer to S11, and the embodiments of the present application will not be described again.
S22, encrypting the local information of the computer to obtain an information ciphertext.
In the embodiment of the application, the local information of the computer can be encrypted twice.
Specifically, an implementation manner for encrypting local information of a computer to obtain an information ciphertext includes:
s221, encrypting the local information of the computer through a base64 encryption algorithm to obtain primary encryption information;
s222, carrying out reverse order sequencing on the computer IP addresses to obtain reverse order IP addresses;
s223, combining and arranging the computer IP address and the reverse IP address to obtain extension data;
s224, encrypting the primary encryption information by using the expanded data through an AES symmetric encryption algorithm to obtain an information ciphertext.
Fig. 4 shows a schematic diagram of a data encryption process. According to the embodiment of the application, the base64 encryption algorithm is used for initially encrypting the local information of the computer to obtain initial encryption information, then the 32-bit IP address of the computer is obtained, the IP addresses are ordered in reverse order to obtain reverse order IP addresses, the IP addresses and the reverse order IP addresses are combined and arranged in a preset arrangement mode, the IP addresses are expanded into 128-bit expansion data, the 128-bit expansion data obtained through expansion are used as symmetric encryption keys, the AES symmetric encryption algorithm is used for encrypting the data encrypted by the base64 encryption algorithm again to obtain information ciphertext.
The preset arrangement method can be the computer IP address of the computer IP address reverse order IP address or the computer IP address reverse order IP address of the computer IP address reverse order IP address. It should be noted that, the preset arrangement mode may be set by a technician according to the actual scene requirement, and only the computer IP address and the reverse order IP address are needed to obtain 128-bit expansion data, which is not limited in the embodiment of the present application.
The Base64 algorithm mainly performs coding operation on given characters based on decimal numbers corresponding to character codes (such as ASCII codes and UTF-8 codes). The AES algorithm, which is called Advanced Encryption Standard in its entirety, is a substitute for the DES algorithm, and is one of the most popular symmetric encryption algorithms today. It should be noted that, other encryption and decryption algorithms may be used to encrypt and decrypt the local information of the computer, which is not limited in this embodiment of the present application.
S23, writing the information ciphertext into the message sending webpage by using a batch processing program.
After the batch processing program obtains the information ciphertext, the information ciphertext is written into the message sending webpage to realize cross-domain message transmission.
Specifically, the information ciphertext may be written into the message sending web page by an echo command.
S24, the information ciphertext is sent to the target website by using the message sending webpage.
After the batch processing program writes the information ciphertext into the message sending webpage, the message sending webpage is opened, and the information ciphertext can be sent to the target website by using the message sending webpage.
Specifically, the information ciphertext can be sent to the target website by using the message sending webpage in a cross-domain message transmission mode.
The message sending webpage can realize cross-domain message transmission by establishing an iframe manager and using a postMessage () method to send the information ciphertext to the target website.
As shown in fig. 5, an embodiment of the present application provides an interaction schematic diagram of a plug-in end and a browser end, where the plug-in end includes a batch processing program, and the browser end includes a target website. The target website monitors the cross-domain message through a window.addEventListener () method, after the target website monitors the information ciphertext, the target website firstly acquires the 32-bit IP address of the computer, the IP address is sequenced in reverse order to obtain the reverse order IP address, the IP address and the reverse order IP address are combined and arranged in a preset arrangement mode, the IP address is expanded into 128-bit expansion data, the 128-bit expansion data obtained through expansion are used as a key for symmetric decryption, an AES symmetric decryption algorithm is used for decrypting the information ciphertext to obtain a symmetric decryption result, the symmetric decryption result is used as input data, and a base64 decryption algorithm is used for decrypting to obtain the local information of the computer. Fig. 6 shows a schematic diagram of a data decryption process.
In practical application, there are multiple ways of obtaining the IP address of the computer, which is not limited in this embodiment of the present application.
After obtaining the local information of the computer, the target website judges whether the same local information of the computer exists in the local cache of the browser, if the local information of the computer does not exist in the local cache of the browser, the validity of the local information of the computer is checked, and the local information of the computer is stored in the local cache of the browser under the condition that the local information of the computer is valid.
After receiving the information ciphertext, the target website decrypts the information ciphertext, and if decryption fails, the information ciphertext is discarded; if the decryption is successful, the local information of the computer is stored in the local cache of the browser through a localstorage.setitem () method, and then the information in the local cache of the browser can be acquired through the localstorage.getitem () method.
It should be noted that, if the IP address of the computer is not fixed and will change with the change of the network, when the IP address of the computer changes, the local information of the computer stored in the local cache of the browser fails, and the local information of the computer needs to be obtained again.
The method has strong applicability, and almost all browsers can easily acquire the local information of the computer system by using the method provided by the embodiment of the application; the resources are less occupied, the embodiment of the application obtains the local information of the computer through the batch processing program, and the local information of the computer is transmitted to the target website through the HTML file, so that the memory and the network resources of the computer are hardly occupied; the method and the device are convenient to operate, the target website can acquire the local information of the computer only by executing the batch processing program once, and repeated execution is not needed.
Next, a description will be given of a local information acquiring apparatus provided in the present application, and a local information acquiring apparatus described below and a local information acquiring method described above may be referred to correspondingly.
Referring to fig. 7, a schematic structural diagram of a local information acquisition device provided in the present application is shown, where the device includes:
an acquisition module 701, configured to acquire local information of a computer by using a batch processing program;
a writing module 702, configured to write the local information of the computer into a messaging web page by using the batch processing program;
and the sending module 703 is configured to send the local information of the computer to a target website by using the message sending web page, so that the target website stores the local information of the computer in a local cache of the browser.
In an embodiment of the present application, the apparatus further includes:
the encryption module is used for carrying out encryption processing on the local information of the computer to obtain an information ciphertext;
the writing module 702 is specifically configured to write the information ciphertext into the message sending webpage by using the batch processing program.
In an embodiment of the present application, the encryption module includes:
the primary encryption unit is used for encrypting the local information of the computer to obtain primary encryption information;
the sorting unit is used for carrying out reverse order sorting on the computer IP addresses to obtain reverse order IP addresses;
the arrangement unit is used for carrying out combined arrangement on the computer IP address and the reverse-order IP address to obtain extension data;
and the encryption unit is used for encrypting the primary encryption information by utilizing the expansion data to obtain the information ciphertext.
In this embodiment of the present application, the sending module 703 is specifically configured to:
and sending the local information of the computer to the target website by using the message sending webpage in a cross-domain message transmission mode.
In this embodiment of the present application, the obtaining module 701 is specifically configured to:
and acquiring the local information of the computer by utilizing a wmic NIC command in the batch processing program.
The embodiment of the application also provides a computer device, which comprises: a memory and a processor;
wherein the memory is used for storing a computer program;
the processor is configured to execute the computer program in the memory to implement the method as described in the method embodiments above.
Embodiments of the present application also provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform a method as described in the method embodiments above.
In the embodiment of the application, the acquisition module is used for acquiring the local information of the computer by using a batch processing program; the writing module is used for writing the local information of the computer into the message sending webpage by utilizing the batch processing program; the sending module is used for sending the local information of the computer to the target website by using the message sending webpage so that the target website stores the local information of the computer in the browser local cache. According to the method and the device for obtaining the local information of the computer through the batch processing program, the client program does not need to be operated, network communication is not needed, multiple browsers can be supported to obtain the local information of the computer, the local information of the computer is stored in the local cache of the browser, and the browser can directly obtain the local information of the computer from the local cache of the browser when the browser needs to obtain the local information of the computer, so that the method and the device are more convenient.
It should be noted that, in each embodiment, identical and similar parts are referred to each other. For the apparatus class embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference is made to the description of the method embodiments for relevant points.
For the foregoing embodiments, for simplicity of explanation, the same is shown as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently in accordance with the application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
Finally, it is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.
Claims (10)
1. A local information acquisition method, the method comprising:
acquiring local information of a computer by using a batch processing program;
writing the local information of the computer into a message sending webpage by utilizing the batch processing program;
and sending the local information of the computer to a target website by using the message sending webpage so that the target website stores the local information of the computer in a browser local cache.
2. The method of claim 1, wherein prior to said writing said computer local information to a messaging web page using said batch process, said method further comprises:
encrypting the local information of the computer to obtain an information ciphertext;
the writing the local information of the computer into a message sending webpage by using the batch processing program comprises the following steps:
and writing the information ciphertext into the message sending webpage by using the batch processing program.
3. The method according to claim 2, wherein the encrypting the local information of the computer to obtain the information ciphertext includes:
encrypting the local information of the computer to obtain primary encryption information;
the computer IP addresses are subjected to reverse order sequencing to obtain reverse order IP addresses;
combining and arranging the computer IP address and the reverse IP address to obtain extension data;
and encrypting the preliminary encryption information by utilizing the expansion data to obtain the information ciphertext.
4. A method according to any one of claims 1 to 3, wherein said sending the computer local information to a target website using the messaging web page comprises:
and sending the local information of the computer to the target website by using the message sending webpage in a cross-domain message transmission mode.
5. A method according to any one of claims 1 to 3, wherein said obtaining said computer local information using a batch process comprises:
and acquiring the local information of the computer by utilizing a wmic NIC command in the batch processing program.
6. A local information acquisition apparatus, the apparatus comprising:
the acquisition module is used for acquiring the local information of the computer by utilizing a batch processing program;
the writing module is used for writing the local information of the computer into a message sending webpage by utilizing the batch processing program;
and the sending module is used for sending the local information of the computer to a target website by utilizing the message sending webpage so that the target website can store the local information of the computer in a browser local cache.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the encryption module is used for carrying out encryption processing on the local information of the computer to obtain an information ciphertext;
the writing module is specifically configured to write the information ciphertext into the message sending webpage by using the batch processing program.
8. The apparatus of claim 7, wherein the encryption module comprises:
the primary encryption unit is used for encrypting the local information of the computer to obtain primary encryption information;
the sorting unit is used for carrying out reverse order sorting on the computer IP addresses to obtain reverse order IP addresses;
the arrangement unit is used for carrying out combined arrangement on the computer IP address and the reverse-order IP address to obtain extension data;
and the encryption unit is used for encrypting the primary encryption information by utilizing the expansion data to obtain the information ciphertext.
9. A computer device, comprising: a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute a computer program in the memory to implement the method of any one of claims 1 to 5.
10. A computer readable storage medium storing instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311648102.XA CN117609648A (en) | 2023-12-04 | 2023-12-04 | Local information acquisition method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311648102.XA CN117609648A (en) | 2023-12-04 | 2023-12-04 | Local information acquisition method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117609648A true CN117609648A (en) | 2024-02-27 |
Family
ID=89959560
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311648102.XA Pending CN117609648A (en) | 2023-12-04 | 2023-12-04 | Local information acquisition method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117609648A (en) |
-
2023
- 2023-12-04 CN CN202311648102.XA patent/CN117609648A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11665146B2 (en) | Migrating authenticated content towards content consumer | |
KR100268095B1 (en) | Data communications system | |
US6629246B1 (en) | Single sign-on for a network system that includes multiple separately-controlled restricted access resources | |
KR100615793B1 (en) | Method and apparatus for serving content from a semi-trusted server | |
US7765275B2 (en) | Caching of private data for a configurable time period | |
EP1899841B1 (en) | Origin aware cookie verification systems and methods | |
US20100043065A1 (en) | Single sign-on for web applications | |
JP4867486B2 (en) | Control program and communication system | |
WO2015183701A1 (en) | Client/server authentication using dynamic credentials | |
JPH1141230A (en) | Method and system for authenticating user | |
JPWO2007110951A1 (en) | User confirmation apparatus, method and program | |
US20120023158A1 (en) | Method for secure transfer of multiple small messages | |
JP5347429B2 (en) | Uniform resource locator rewriting method and apparatus | |
JP2007257500A (en) | Device to be authenticated, program to be authenticated, method to be authenticated, web browser plug-in, and web browser bookmarklet | |
JP5146088B2 (en) | Web information relay method and apparatus | |
CN101656714B (en) | Single login method | |
CN117609648A (en) | Local information acquisition method, device, equipment and storage medium | |
JP7276737B2 (en) | Identity verification system and identity verification method | |
CN110945503A (en) | User authentication service providing method, web server and user terminal | |
KR100915003B1 (en) | Secure user session managing method and system under web environment, recording medium recorded program executing it | |
JP2005084751A (en) | Communication apparatus | |
JP2001265736A (en) | User authentication method | |
JP2004295609A (en) | Program start-up controller, method and program | |
CN113824696A (en) | Portal authentication method and device | |
KR100434436B1 (en) | Apparatus and method for web module authentication |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |