CN109450777B - Session information extraction method, device, equipment and medium - Google Patents
Session information extraction method, device, equipment and medium Download PDFInfo
- Publication number
- CN109450777B CN109450777B CN201811622193.9A CN201811622193A CN109450777B CN 109450777 B CN109450777 B CN 109450777B CN 201811622193 A CN201811622193 A CN 201811622193A CN 109450777 B CN109450777 B CN 109450777B
- Authority
- CN
- China
- Prior art keywords
- session
- backup
- historical
- information
- file
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/216—Handling conversation history, e.g. grouping of messages in sessions or threads
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/06—Network architectures or network communication protocols for network security for supporting key management in a packet data network
- H04L63/062—Network architectures or network communication protocols for network security for supporting key management in a packet data network for key distribution, e.g. centrally by trusted party
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method, a device, equipment and a medium for extracting session information. Obtaining a backup key associated with a history backup folder; decrypting the historical backup folder according to the backup key to obtain a historical backup file; and extracting historical session messages from the historical backup files according to preset rules. The embodiment of the invention provides a session information extraction method, which enables the user to still check historical session information communicated with other people after instant messaging software of the user logs in again at a computer terminal, and improves the user experience.
Description
Technical Field
The embodiment of the invention relates to the technical field of computer application, in particular to a method, a device, equipment and a medium for extracting session information.
Background
At present, instant messaging service software supporting sending of voice short messages, videos, pictures and characters by cross-communication service operators and cross-operation platforms is widely applied to work, study and life of people. The instant messaging service software often comprises a mobile client installed on an intelligent terminal and a PC client installed on a computer.
For some instant messaging service software, after the user completes instant messaging with other people through the PC version client and logs out, the user can not check the historical conversation information communicated with other people when logging in again, and therefore the user experience of the computer version instant messaging software is reduced.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for extracting session information, which are used for realizing extraction of historical session information and improving user experience.
In a first aspect, an embodiment of the present invention provides a method for extracting session information, where the method includes:
obtaining a backup key associated with a history backup folder, wherein the backup key is determined by a third-party terminal and forwarded to the terminal through an authorization server;
decrypting the historical backup folder according to the backup key to obtain a historical backup file;
and extracting historical session messages from the historical backup files according to preset rules.
In a second aspect, an embodiment of the present invention further provides a session information extraction apparatus, where the apparatus includes:
the backup key acquisition module is used for acquiring a backup key associated with the historical backup folder, wherein the backup key is determined by the third-party terminal and is forwarded to the terminal through the authorization server;
the backup file acquisition module is used for decrypting the historical backup folder according to the backup key to acquire a historical backup file;
and the session message acquisition module is used for extracting the historical session message from the historical backup file according to a preset rule.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the session information extraction method as described in any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the program, when executed by a processor, implements the session information extraction method according to any one of the embodiments of the present invention.
According to the embodiment of the invention, the backup key of the history backup file is acquired, the corresponding history folder is decrypted by using the backup key, the history backup file in the folder is acquired, and then the history session message stored in the history backup file is extracted, so that the problem that the history session message communicated with other people cannot be checked after the instant messaging software logs in the computer end again is solved, and the user experience of the user using the computer version instant messaging software is improved.
Drawings
Fig. 1 is a flowchart of a session information extraction method according to an embodiment of the present invention;
fig. 2 is a flowchart of a session information extraction method according to a second embodiment of the present invention;
fig. 3 is a flowchart for acquiring a history backup file according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a history session message according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a session information extraction apparatus according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a third party terminal according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a session information extraction method according to an embodiment of the present invention, where the method is applicable to a case of obtaining historical session information of computer-side instant messaging software, and the method may be executed by a session information extraction device, where the device may be implemented by hardware and/or software and is generally integrated as a plug-in the computer-side instant messaging software, and a computer device integrated with the computer-side instant messaging software may be used as an execution main body of the embodiment, and for convenience of description, the execution main body is referred to as the terminal.
It should be noted that, in this embodiment, before implementing extraction of session information, a user needs to initiate a login request to an authorization server through a local terminal installed with computer-side instant messaging software, the authorization server forwards the login request to a third-party terminal, the third-party terminal generates login information according to the login request and forwards the login information to the authorization server, the authorization server returns the generated login information to the local terminal, the user performs login operation on the local terminal according to the login information, the login operation can be finally obtained by a server of the instant messaging software, and the login operation of the instant messaging software on the third-party terminal is implemented, and after the third-party terminal logs in the instant messaging software, the third-party terminal can provide the local terminal with session information to extract relevant data information.
Preferably, the login information generated by the third terminal may be a login two-dimensional code, and the login operation performed by the user on the terminal according to the login information may be a code scanning operation performed by the user using mobile-end instant messaging software.
Specifically, the method for extracting session information executed by the terminal according to the first embodiment includes the following steps:
The historical backup folder can be a storage area for storing the session messages by the instant messaging software, and the specific form can be a folder, a file, a table, a database and the like; the backup key may be a key used for encrypting the backup history folder, such as an AES encryption key, a DES encryption key, or the like, and the third party terminal may be a terminal for obtaining the backup key, and may be an MAC terminal, a Windows terminal, a server, or the like, in which the instant messaging software is installed.
Specifically, the backup key sent by the authorization server may be obtained, then the corresponding history backup folder may be found in the terminal used by the user, and the obtained backup key corresponding to the history folder is determined, where the authorization server may be a server in which a third-party terminal and the terminal interact with each other, and login information is transmitted between the third-party terminal and the terminal, including sending a login request of the terminal to the third-party terminal and sending the backup key determined by the third party to the terminal, and the like.
For example, taking instant messaging software as WeChat as an example, a user may obtain a backup key sent by an authorization server, where the key may be an AES key, then obtain all historical backup Files in a path C \ Users \ chunk \ Documents \ WeChat Files \ micro signals \ backup Files in a Windows terminal used by the user, and determine a backup key corresponding to the historical backup Files according to the micro signals in the path.
And 102, decrypting the historical backup folder according to the backup key to obtain a historical backup file.
The history backup file may be a file storing user session information, may be obtained by decrypting the history backup folder, and may include a session TEXT file, a session attachment file, a session association table, and the like, and the history backup file may be a file such as backup.
Specifically, the history backup folder may decrypt the decrypted history backup file according to the corresponding encryption algorithm by using the corresponding backup key, for example, the backup file db in the history backup folder of the wechat may be decrypted according to the obtained wechat backup key, so as to obtain the unencrypted backup file db.
And 103, extracting historical session messages from the historical backup files according to preset rules.
The preset rule may be a filtering condition for extracting the historical session message from the historical backup file, and may include a session time, a session date, a session object, and the like.
Specifically, the historical session message may be obtained from the historical backup file according to a preset filtering condition, for example, the session data of a certain fixed date may be queried in the historical backup file using a regular expression or an SQL statement, and the queried session data may be used as the historical session message.
According to the technical scheme of the embodiment of the invention, the backup key determined by the third-party terminal is obtained, the obtained backup key is used for decrypting the backup folder to obtain the historical backup file, and the historical conversation message stored in the historical backup file is extracted according to the preset rule, so that the user can check the historical conversation message after logging in the computer-side instant messaging software again, and the user experience of the user using the computer-version instant messaging software is improved.
Further, on the basis of the above technical solution, the third party terminal may determine the backup key by the following method:
monitoring a backup association function in a code file corresponding to instant messaging software;
intercepting parameter interaction information of the backup association function in the instant messaging software login process;
and determining a backup key in the backup association function according to the parameter interaction information.
The code file may be a code file obtained by a third party terminal through reverse communication software, the backup association function may be a function using a backup key, for example, a function generating a history backup file, and the parameter interaction information may be a function for transferring the backup key in the backup association function.
Specifically, the reverse instant messaging software at the third-party terminal may obtain a code file corresponding to the third-party terminal, obtain and determine a backup association function in the code file, and set a Hook method in the backup association function, where the Hook method is used to monitor parameter interaction information transmitted and received by the backup management function, intercept the parameter interaction information monitored in the Hook method in the instant messaging software login process, and obtain a backup key of the association function in the parameter interaction information. For example, taking the instant messaging software as the WeChat as an example, the function in which the backup key is processed can be obtained at the reverse WeChat client in the third party terminal MAC computer, and the Hook method is configured for the function.
Example two
Fig. 2 is a flowchart of a session information extraction method according to a second embodiment of the present invention; the present embodiment is an alternative provided on the basis of the above embodiment, and referring to fig. 2, the session information extraction method provided by the present embodiment includes:
The encryption format may be a data structure format used for storing the backup key and the history backup folder, and includes a 32-byte hexadecimal character string or a 32-byte hexadecimal character string, and the encryption rule may be an algorithm used for encrypting the history backup folder, and includes an AES decryption algorithm, a DES decryption algorithm, an RSA decryption algorithm, and the like.
Specifically, the encryption algorithm used for encrypting the backup key and the historical backup file can be judged according to the storage format of the acquired backup key. For example, the backup key is 16 bytes, the ciphertext length of the historical backup folder is exactly an integral multiple of 16 bytes, it can be determined that the encryption algorithm used for encrypting the backup key and the historical backup file is an AES encryption algorithm, and then the corresponding decryption algorithm is an AES decryption algorithm.
The history backup file may be a file in a history backup folder, and includes a session TEXT file, a session attachment file, a session association table, and the like, the session TEXT file may be a file storing a history session information TEXT of a user, the session attachment file may be a file storing an attachment occurring in a history session of the user, the attachment may include contents such as music, a picture, and a link, and the session association table may be a file storing a correspondence between a history session message in the session TEXT file and an attachment in a history session message in the attachment file, for example, BAK _ N _ TEXT may be a session TEXT file, BAK _ N _ MEDIA may be a session attachment file, and MsgSegments table in backup.
Specifically, the history backup folder may be decrypted by using the backup key and the decryption algorithm according to the determined decryption algorithm of the history backup folder, and the files in the decrypted history backup folder are obtained as the history backup files.
Preferably, taking a WeChat as an example, a process of acquiring a history backup file through terminals such as a local terminal, a third-party terminal, an authorization server and a WeChat server is shown in FIG. 3, wherein a user initiates a request for acquiring a WeChat login two-dimensional code at the local terminal, the authorization server sends the login two-dimensional code request to the third-party terminal after receiving the request, the third-party terminal opens the WeChat to acquire the login two-dimensional code after acquiring the request, the third-party terminal sends the two-dimensional code to the authorization server, the authorization server sends the two-dimensional code to the local terminal, the user executes a login operation by using the two-dimensional code, the local terminal sends login feedback information generated after executing the login operation to the WeChat server, the WeChat server makes the third-party terminal log in the WeChat according to the feedback information, the third-party terminal successfully logs in the WeChat and executes an acquisition operation of a backup key, and the third party acquires the backup key, and sending the backup key to an authorization server, storing the backup key by the authorization server and sending the backup key to the terminal, and decrypting by the terminal by using the backup key to obtain the historical backup file.
The associated entry information may be information stored in the session association table, and includes a session object identification number, a session message time, a session message identification number, a session object group, an associated text storage address, an associated attachment storage address, and the like, where the session object group may be a set of session object identification numbers corresponding to two parties participating in a session, the associated text storage address may be a storage location of a user session message in a session text file, and may include a physical storage address or a logical storage address, and the associated attachment storage address may be a specific storage location of a text appearing in the user session message in the session attachment file, and may include a physical storage address or a logical storage address.
Specifically, all the associated entry information stored in the session association table may be read, and the storage locations of the session text and the session attachment in the session text file and the session attachment file in the session message may be determined. Illustratively, the SQL statement may be used to obtain all the associated table entry information in the session associated information table, and the form of the SQL statement may be as follows:
SELECT talker,nickname,strftime('%Y-%m-%d%H:%M:%S',endtime/10 00,'unixepoch','localtime')
FROM Session
ORDER BY endtime DESC
Specifically, the storage location of the session message in the session text file may be obtained, the content in the storage location corresponding to the session text file may be read according to the storage location, and the read content may be used as the session text of the session object group. Illustratively, the associated text storage address may be obtained using an SQL statement, which may be as follows:
SELECT UsrName,OffSet,Length,FilePath,
strftime('%Y-%m-%d%H:%M:%S',StartTime/1000,'unixepoch','localtime')
FROM MsgSegments
ORDER BY UsrName,StartTime DESC
and step 206, extracting the attachment information corresponding to the session object group from the session attachment file based on the associated attachment storage address.
Specifically, the storage location of the attachment of the session message in the session attachment file may be obtained, the content of the storage location corresponding to the session attachment file is read according to the storage location, and the read content is used as the attachment information of the session object. Illustratively, the storage location of the attachment can be obtained using an SQL statement and the corresponding attachment can be associated into the corresponding session message, which may be in the form as follows:
SELECT MapKey,InnerOffSet,Length,TotalLen,Offset,FileName,MsgSegmentId,talker,Media IdStr
FROM MsgFileSegment
LEFT JOIN MsgMedia ON MsgFileSegment.[MapKey]=MsgMedia.[MediaId];
and step 207, obtaining the historical conversation message formed based on the conversation object group and the corresponding conversation text and the attachment information.
The historical conversation information may be a conversation text determined by a conversation group and a conversation message corresponding to an attachment, for example, a WeChat message is taken as an example, and the historical conversation message may be a chat record generated by a user and a chat object in a time sequence or a chat record found according to a keyword.
Specifically, the session text information and the session attachment sent by the two parties participating in the session and the two parties participating in the session can be acquired, the sent text information and the sent session attachment form a complete session message record according to the sending time and the sending object, and further, the generated historical session message can be stored, so that the management and the checking of the user are facilitated.
According to the technical scheme of the embodiment of the invention, the backup key of the historical backup file is obtained, the corresponding confidential rule is determined according to the encryption formats of the historical backup folder and the backup key, the historical backup folder is decrypted according to the decryption rule and the backup key, the session association table, the session text file and the session attachment file are obtained, and the session text file and the session file form the historical session message according to the session association table; the problem that the historical conversation messages cannot be checked after the instant communication software computer terminal logs in is solved, the historical conversation messages are convenient to check and manage by a user, and the user experience is improved.
Further, on the basis of the above technical solution, the method further includes:
and displaying the historical conversation message in a set display style.
The preset presentation style can be presented for the session message, and can be in a form of a chat record or a table form.
Specifically, the chat session record may be generated in the order of the generation time of the session message or in the form of a generated table, for example, the specific form presentation manner of the historical session message may be as shown in fig. 4, and the text content and the corresponding attachment of the session message may be determined according to the generation time of the session message.
EXAMPLE III
Fig. 5 is a schematic structural diagram of a session information extraction apparatus according to a third embodiment of the present invention; the device can implement a session information extraction method, and referring to fig. 5, the session information extraction device provided in this embodiment includes: a backup key acquisition module 301, a backup file acquisition module 302, and a session message acquisition module 303.
The backup key obtaining module 301 is configured to obtain a backup key associated with a historical backup folder, where the backup key is determined by a third-party terminal and forwarded to the terminal through an authorization server.
A backup file obtaining module 302, configured to decrypt the historical backup folder according to the backup key, so as to obtain a historical backup file.
A session message obtaining module 303, configured to extract a historical session message from the historical backup file according to a preset rule.
According to the technical scheme of the embodiment of the invention, the backup key determined by the third-party terminal is acquired by the backup key acquisition module, the backup file acquisition module decrypts the backup folder by using the acquired backup key to obtain the historical backup file, and the session message acquisition module extracts the historical session message stored in the historical file according to the preset rule, so that the user can check the historical session message after logging in the instant messaging software of the computer terminal again, and the user experience of the user using the instant messaging software of the computer version is improved.
Further, the session information extraction apparatus determines the backup key through the following modules of the third party terminal, fig. 6 is a schematic structural diagram of the third party terminal according to a third embodiment of the present invention, and referring to fig. 6, the third party terminal includes a monitoring module 311, an intercepting module 312, and a key obtaining module 313.
The monitoring module 311 is configured to monitor a backup association function in a code file corresponding to the instant messaging software.
An intercepting module 312, configured to intercept parameter interaction information of the backup association function during the instant messaging software login process.
The key obtaining module 313 is configured to determine a backup key in the backup association function according to the parameter interaction information.
Further, on the basis of the foregoing embodiment, the backup file obtaining module includes:
and the decryption rule determining unit is used for determining the encryption formats of the backup key and the historical backup folder and determining the decryption rule corresponding to the encryption formats.
The decryption unit is used for decrypting the historical backup folder based on the decryption rule in combination with the backup key to acquire the historical backup files in the historical backup folder; the history backup file is as follows: the system comprises a session text file, a session attachment file and a session association table which are generated during historical instant messaging.
Further, on the basis of the foregoing embodiment, the session message acquiring module includes:
an analyzing unit, configured to analyze and obtain at least one piece of associated entry information in the session associated table, where the associated entry information includes: a session object group, an associated text storage address, and an associated attachment storage address.
And the text address acquisition unit is used for extracting the session text corresponding to the session object group from the session text file based on the associated text storage address.
And the attachment address acquisition unit is used for extracting attachment information corresponding to the session object group from the session attachment file based on the associated attachment storage address.
And the session message acquisition unit is used for acquiring historical session cancel information formed on the basis of the session object group, the corresponding session text and the attachment information.
Further, the apparatus further comprises: and the display module is used for displaying the historical conversation message in a set display style.
The session information extraction device provided by the embodiment of the invention can execute the session information extraction method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 7 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention, as shown in fig. 7, the apparatus includes a processor 70, a memory 71, an input device 72, and an output device 73; the number of processors 70 in the device may be one or more, and one processor 70 is taken as an example in fig. 6; the processor 70, memory 71, input device 72 and output device 73 of the apparatus may be connected by a bus or other means, and fig. 6 illustrates the connection by a bus as an example.
The memory 71 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program modules corresponding to the session information extraction method in the embodiment of the present invention (for example, the backup key acquisition module 301, the backup file acquisition module 302, and the session message acquisition module 303 in the session information extraction apparatus). The processor 70 executes various functional applications of the device and data processing by running software programs, instructions, and modules stored in the memory 71, that is, implements the session information extraction method described above.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 71 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 71 may further include memory located remotely from the processor 70, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 72 may be used to receive entered numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 73 may include a display device such as a display screen.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a session information extraction method, where the method includes:
obtaining a backup key associated with a history backup folder, wherein the backup key is determined by a third-party terminal and forwarded to the terminal through an authorization server;
decrypting the historical backup folder according to the backup key to obtain a historical backup file;
and extracting historical session messages from the historical backup files according to preset rules.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the session information extraction method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the session information extraction apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (7)
1. A method for extracting session information, comprising:
initiating a login request to an authorization server so that the authorization server forwards the login request to a third-party terminal, and the third-party terminal generates login information according to the login request and forwards the login information to the authorization server;
performing login operation according to the login information returned by the authorization server;
obtaining a backup key associated with a history backup folder, wherein the backup key is determined by a third-party terminal and forwarded to the terminal through an authorization server;
determining the encryption formats of the backup key and the historical backup folder, and determining a decryption rule corresponding to the encryption formats;
decrypting the historical backup folder based on the decryption rule in combination with the backup key to obtain historical backup files in the historical backup folder;
the history backup file is as follows: a session text file, a session attachment file and a session association table which are generated during historical instant messaging;
analyzing and obtaining at least one piece of associated table item information in the session associated table, wherein the associated table item information comprises: a session object group, an associated text storage address and an associated attachment storage address;
extracting a session text corresponding to the session object group from the session text file based on the associated text storage address;
extracting attachment information corresponding to the session object group from the session attachment file based on the associated attachment storage address;
and obtaining historical conversation messages formed on the basis of the conversation object group and the corresponding conversation texts and the attachment information.
2. The method of claim 1, wherein the third party terminal determines the backup key by:
monitoring a backup association function in a code file corresponding to instant messaging software;
intercepting parameter interaction information of the backup association function in the instant messaging software login process;
and determining a backup key in the backup association function according to the parameter interaction information.
3. The method of claim 1, further comprising:
and displaying the historical conversation message in a set display style.
4. A session information extraction apparatus, characterized by comprising:
the login request module is used for initiating a login request to an authorization server so that the authorization server forwards the login request to a third-party terminal, and the third-party terminal generates login information according to the login request and forwards the login information to the authorization server;
the login operation module is used for performing login operation according to the login information returned by the authorization server;
the backup key acquisition module is used for acquiring a backup key associated with the historical backup folder, wherein the backup key is determined by the third-party terminal and is forwarded to the terminal through the authorization server;
the backup file acquisition module comprises:
a decryption rule determining unit, configured to determine an encryption format of the backup key and the historical backup folder, and determine a decryption rule corresponding to the encryption format;
the decryption unit is used for decrypting the historical backup folder based on the decryption rule in combination with the backup key to acquire the historical backup files in the historical backup folder;
the history backup file is as follows: a session text file, a session attachment file and a session association table which are generated during historical instant messaging;
the session message acquisition module comprises:
an analyzing unit, configured to analyze and obtain at least one piece of associated entry information in the session associated table, where the associated entry information includes: a session object group, an associated text storage address and an associated attachment storage address;
a text address obtaining unit, configured to extract, based on the associated text storage address, a session text corresponding to the session object group from the session text file;
an attachment address obtaining unit, configured to extract, based on the associated attachment storage address, attachment information corresponding to the session object group from the session attachment file;
and the session message acquisition unit is used for acquiring historical session cancel information formed on the basis of the session object group, the corresponding session text and the attachment information.
5. The apparatus according to claim 4, wherein the apparatus determines the backup key by the following modules of the third party terminal:
the monitoring module is used for monitoring a backup association function in a code file corresponding to the instant messaging software;
the intercepting module is used for intercepting the parameter interaction information of the backup association function in the instant messaging software login process;
and the key acquisition module is used for determining a backup key in the backup association function according to the parameter interaction information.
6. A computer device, the device comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the session information extraction method as recited in any one of claims 1-3.
7. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing a session information extraction method according to any one of claims 1 to 3.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811622193.9A CN109450777B (en) | 2018-12-28 | 2018-12-28 | Session information extraction method, device, equipment and medium |
PCT/CN2019/118985 WO2020134692A1 (en) | 2018-12-28 | 2019-11-15 | Session information extraction method and device, apparatus, and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811622193.9A CN109450777B (en) | 2018-12-28 | 2018-12-28 | Session information extraction method, device, equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109450777A CN109450777A (en) | 2019-03-08 |
CN109450777B true CN109450777B (en) | 2021-09-17 |
Family
ID=65542026
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811622193.9A Active CN109450777B (en) | 2018-12-28 | 2018-12-28 | Session information extraction method, device, equipment and medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109450777B (en) |
WO (1) | WO2020134692A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109450777B (en) * | 2018-12-28 | 2021-09-17 | 苏州开心盒子软件有限公司 | Session information extraction method, device, equipment and medium |
CN110750388B (en) * | 2019-10-30 | 2022-06-17 | 苏州龙信信息科技有限公司 | Backup analysis method, device, equipment and medium |
CN111162999A (en) * | 2019-12-30 | 2020-05-15 | 广东盈世计算机科技有限公司 | Message processing method and device based on instant chat tool |
CN113495657A (en) * | 2020-04-03 | 2021-10-12 | 腾讯科技(深圳)有限公司 | Session message screening method and device, computer equipment and storage medium |
CN111934987A (en) * | 2020-08-04 | 2020-11-13 | 公安部第三研究所 | Data extraction method, system and storage medium for mobile phone enterprise WeChat |
CN112714057B (en) * | 2020-12-22 | 2023-04-07 | 北京北信源软件股份有限公司 | Instant message processing method, device, equipment and storage medium |
CN113489635B (en) * | 2021-06-18 | 2023-08-18 | 深圳软牛科技有限公司 | WeChat-based message recovery method and related equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102123166A (en) * | 2010-12-31 | 2011-07-13 | 百度在线网络技术(北京)有限公司 | Equipment and method for accessing target network application on the basis of instant messaging client |
CN102882762A (en) * | 2011-07-11 | 2013-01-16 | 腾讯科技(深圳)有限公司 | Method and system for synchronizing chat status information in multiple pages |
CN103812755A (en) * | 2012-11-12 | 2014-05-21 | 腾讯科技(深圳)有限公司 | Message synchronization method and device in instant messaging application |
EP2696557A4 (en) * | 2011-04-07 | 2014-10-15 | Tencent Tech Shenzhen Co Ltd | System and method for accessing third-party applications based on cloud platform |
CN104202185A (en) * | 2014-08-25 | 2014-12-10 | 腾讯科技(深圳)有限公司 | Backup method and backup device for communication data |
CN104468592A (en) * | 2014-12-12 | 2015-03-25 | 北京百度网讯科技有限公司 | Login method and system |
CN105281902A (en) * | 2015-12-03 | 2016-01-27 | 武汉理工大学 | Web system safety login method based on mobile terminal |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8166114B2 (en) * | 2006-02-21 | 2012-04-24 | Strangeloop Networks, Inc. | Asynchronous context data messaging |
CN102655481B (en) * | 2011-03-04 | 2016-04-13 | 腾讯科技(深圳)有限公司 | A kind of instant messaging chat content inspection method based on webpage and system |
JP5624525B2 (en) * | 2011-08-15 | 2014-11-12 | 株式会社東芝 | Information processing apparatus, resource providing apparatus, and information processing system |
CN103631672A (en) * | 2012-08-20 | 2014-03-12 | 国基电子(上海)有限公司 | Mobile device with functions of data backup and data recovery and method for performing data backup and data recovery on mobile device |
CN105162675B (en) * | 2014-05-26 | 2018-06-12 | 杭州迪普科技股份有限公司 | A kind of conversation recording acquisition methods and device |
CN105959205A (en) * | 2016-04-29 | 2016-09-21 | 杨夫春 | Chatting records keeping method |
CN107563215A (en) * | 2016-07-01 | 2018-01-09 | 四川秘无痕信息安全技术有限责任公司 | A kind of Android system wechat chat record decryption method |
CN107590025A (en) * | 2017-08-17 | 2018-01-16 | 深圳市优品壹电子有限公司 | A kind of back-up restoring method and system |
CN109450777B (en) * | 2018-12-28 | 2021-09-17 | 苏州开心盒子软件有限公司 | Session information extraction method, device, equipment and medium |
-
2018
- 2018-12-28 CN CN201811622193.9A patent/CN109450777B/en active Active
-
2019
- 2019-11-15 WO PCT/CN2019/118985 patent/WO2020134692A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102123166A (en) * | 2010-12-31 | 2011-07-13 | 百度在线网络技术(北京)有限公司 | Equipment and method for accessing target network application on the basis of instant messaging client |
EP2696557A4 (en) * | 2011-04-07 | 2014-10-15 | Tencent Tech Shenzhen Co Ltd | System and method for accessing third-party applications based on cloud platform |
CN102882762A (en) * | 2011-07-11 | 2013-01-16 | 腾讯科技(深圳)有限公司 | Method and system for synchronizing chat status information in multiple pages |
CN103812755A (en) * | 2012-11-12 | 2014-05-21 | 腾讯科技(深圳)有限公司 | Message synchronization method and device in instant messaging application |
CN104202185A (en) * | 2014-08-25 | 2014-12-10 | 腾讯科技(深圳)有限公司 | Backup method and backup device for communication data |
CN104468592A (en) * | 2014-12-12 | 2015-03-25 | 北京百度网讯科技有限公司 | Login method and system |
CN105281902A (en) * | 2015-12-03 | 2016-01-27 | 武汉理工大学 | Web system safety login method based on mobile terminal |
Non-Patent Citations (3)
Title |
---|
"Backup WeChat messages and files to computer using WeChat for Web";softwarert;《https://www.softwarert.com/backup-wechat-messages-files-computer-wechat-web/》;20160319;全文 * |
"微信电脑版(微信网页版)登录备份聊天记录详解";yujinxiang826;《https://jingyan.baidu.com/article/b7001fe18257eb0e7282dde1.html》;20160422;全文 * |
"微信聊天记录导出工具WeChatExporter开源啦!";史丹利复合田;《https://blog.csdn.net/tsyccnh/article/details/81457169》;20180807;全文 * |
Also Published As
Publication number | Publication date |
---|---|
WO2020134692A1 (en) | 2020-07-02 |
CN109450777A (en) | 2019-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109450777B (en) | Session information extraction method, device, equipment and medium | |
US10972908B2 (en) | Wireless network connection method, apparatus, and system | |
CN106533669B (en) | The methods, devices and systems of equipment identification | |
CN104660589B (en) | Method, system and terminal for encrypting control and information analysis of information | |
CN108197485B (en) | Terminal data encryption method and system and terminal data decryption method and system | |
CN107801165B (en) | Business short message pushing method and device, computer equipment and storage medium | |
EP3337088B1 (en) | Data encryption method, decryption method, apparatus, and system | |
CN107786331B (en) | Data processing method, device, system and computer readable storage medium | |
US20150134959A1 (en) | Instant Communication Method and System | |
CN111614683B (en) | Data processing method, device and system and network card | |
CN109472130A (en) | Linux cipher management method, middle control machine, readable storage medium storing program for executing | |
CN106487659B (en) | Information encryption method, information encryption device and terminal | |
CN104270517A (en) | Information encryption method and mobile terminal | |
CN112231309B (en) | Method, device, terminal equipment and medium for removing duplicate of longitudinal federal data statistics | |
CN106685897B (en) | Safe input method, device and system | |
CN114257562A (en) | Instant messaging method, instant messaging device, electronic equipment and computer readable storage medium | |
CN114117482A (en) | Database encryption method and device, electronic equipment and storage medium | |
CN111818466B (en) | Information sending and receiving method and device, electronic equipment and readable storage medium | |
CN103997730A (en) | Method for decrypting, copying and pasting encrypted data | |
CN110912683B (en) | Password storage method and device and password verification method and device | |
CN108513272B (en) | Short message processing method and device | |
CN107707611B (en) | Electric power data cloud processing method, device and system | |
CN106332011B (en) | Short message encryption communication method and terminal | |
KR102319709B1 (en) | Anti-forensic unlocking device and method based on database encryption | |
US20230388112A1 (en) | Method and apparatus for providing secure messaging service |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |