CN101527626B - Storage and recovery method of static data during TELNET user operating process - Google Patents

Storage and recovery method of static data during TELNET user operating process Download PDF

Info

Publication number
CN101527626B
CN101527626B CN2008101015259A CN200810101525A CN101527626B CN 101527626 B CN101527626 B CN 101527626B CN 2008101015259 A CN2008101015259 A CN 2008101015259A CN 200810101525 A CN200810101525 A CN 200810101525A CN 101527626 B CN101527626 B CN 101527626B
Authority
CN
China
Prior art keywords
data
telnet
operating process
client
cstringlist
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.)
Expired - Fee Related
Application number
CN2008101015259A
Other languages
Chinese (zh)
Other versions
CN101527626A (en
Inventor
王征
尹航
孙海波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Venus Information Technology Co Ltd
Original Assignee
Beijing Venus Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Venus Information Technology Co Ltd filed Critical Beijing Venus Information Technology Co Ltd
Priority to CN2008101015259A priority Critical patent/CN101527626B/en
Publication of CN101527626A publication Critical patent/CN101527626A/en
Application granted granted Critical
Publication of CN101527626B publication Critical patent/CN101527626B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a storage and recovery method of static data during the TELNET user operating process, which belongs to an important technology of network security. The method is characterized in that the one-time comprehensive display is performed to the entire operating process of the user on the basis of obtaining a TELNET data packet. The method comprises the following steps: the object of a CStringList (character string list) is defined, a packet grasping system is used for recording the conversation process of the TELNET at a time with unlimited storage form; the data transmitted to the client-side by a server is filtered out; a data structure is constructed and used for simulating the screen display; and the data transmitted to the client side by the server is analyzed. The invention has the advantages that the method solves the technical problem that the network data packet is stored in the database to be convenient for analyzed data transmission and transformation and is further more effective for checking the operating process.

Description

The preservation back method of TELNET user's operating process static data
Technical field
The present invention relates to one of a kind of important technology as network security---the preservation back method of TELNET user's operating process static data.
Background technology
Many network security products all have network packet are saved in the database, so that analyze later on.
The operating process that is to use a kind of terminal emulator (emulator) to come analog subscriber mostly to the playback of the user of TELNET (Telnet) operation, but this terminal emulation simulation has an important shortcoming:
● in the reciprocal process of TELNET, the window size of client has a fixed dimension, that is to say, along with user's continuous operation, information old on the screen can constantly be covered by new information.
The roll display mode that this new screen message covers old screen message is unfavorable for observing.
This can make user's all operations information be illustrated in simultaneously on the screen by the order of operating, not the problem that can cause old information to be capped to a kind of new static playback TELNET method of operating that above problem proposes just in the present invention.
Summary of the invention
The objective of the invention is to design a kind of preservation back method of TELNET user's operating process static data, it shows all operations of certain session of user and screen output with static state, is convenient to the network security management personnel and checks easily.
TELNET client-side program in the reality and serve end program will be consulted a window size earlier before beginning is mutual.This window size means that but the line number of client screen character display and columns are conditional, and along with mutual carrying out, when having new information to show, old information will be eliminated in the mode of screen scroll.Therefore, the interactive information that the user can see in a TELNET conversation procedure is conditional, and the present invention has solved this problem exactly, and all interactive information can be viewed simultaneously, that is to say window size is become infinity that old information can not be eliminated.
The preservation back method of a kind of TELNET user's operating process static data of the present invention is to obtain on the TELNET network data package base packet to be carried out analysis and filter, forming the partial data of a static state operation.
A kind of preservation back method of TELNET user's operating process static data, this method comprises:
Define the step of the object of a CStringList (character string chained list),
The conversation procedure of certain TELNET is noted the step that the preservation form is not limit by packet snapping system;
With direction is that server mails to the step that the data filter of client comes out;
Construct a data structure and be used for the step that simulated screen shows;
Resolution server mails to the step of the data of client.
Beneficial effect of the present invention: solve network packet and be saved in the database,, conveniently check so that the technical problem of the transfer of data of analyzing later on, conversion can once display operational order and the result of telnet.
Because the telnet agreement has a negotiable fixed value for the window size of screen, be nearest information with regard to having caused the information of seeing on the screen like this, the old information that surpasses screen size has been eliminated, the invention solves this problem, make all screen messages all obtain demonstration simultaneously, can not be eliminated.
Description of drawings
The whole block diagram of Fig. 1 method.
The present invention is further described below in conjunction with drawings and Examples.
Embodiment
Embodiment 1: as shown in Figure 1,
A kind of preservation back method of TELNET user's operating process static data, this method comprises the steps:
The object of a CStringList of definition, this is a chained list that node type is a character string, is used for simulated screen output; Define two variable i PosX, iPosY, be used for representing the current location of cursor.The iPosX indication should be operated at which character bit of certain row, which node among the iPosY indication CStringList, i.e. current line.First character position of first node among the CStringList is iPosX=1, iPosY=1.
Treatment step is as follows:
(1) by packet snapping system the conversation procedure of certain TELNET is noted earlier, the preservation form is not limit.
(2) be that the data filter that server mails to client comes out with direction.
(3) data structure of structure is used for simulated screen and shows that such as the CStringList class of using among the MFC, each CString wherein represents the delegation of screen, each character representative row.And use a pair of integer variable to preserve the screen position of cursor.
(4) resolution server mails to the data of client:
● filter out all and consult option with the order and the son of IAC beginning;
● handle escape sequence (escape character (ESC) sequence):
Escape sequence is a kind of character string that service end is sent to client, is used for controlling the cursor action of client.
■ handles cursor control class sequence, and the variable of preserving cursor position is set according to parameter;
ESC[#; #H or ESC[#; The #f moving cursor is listed as # to row #
The FSC[#A cursor # that moves up is capable
It is capable that ESC[#B moves down cursor #
ESC[#C is (right side) moving cursor # character bit forward
ESC[#D is (left side) moving cursor # character bit backward
■ handles and removes the class sequence, and in order to preserve the screen result of user's operation, this class sequence does not process;
ESC[2J clears screen, and the starting position of cursor positioning in the upper left corner
ESC[K removes current line
The escape sequence order of ■ other types does not process, and directly abandons;
■ handles carriage return, line feed character: the cursor position of x axle variable will preserve to(for) carriage return character puts 1; For line feed, y axle variable is added 1;
■ then outputs among the CString List according to cursor position for displayable character;
CStringList had promptly formed displayable TELNET operating process after ■ disposed, and can directly form any displayable output, such as the html page or leaf.
Embodiment 2: as shown in Figure 1, a kind of preservation back method of TELNET user's operating process static data, comprised the special control character of two classes in the TELNET agreement, a class is to be the command sequence of beginning with IAC (hexadecimal FF), is used for consulting variety of option; Another kind of is so-called escape sequence (escape character (ESC) sequence), is with the character string of Esc[beginning, is used for controlling screen format, such as cursor position, font color, clear character etc.Key of the present invention promptly is how to control escape sequence, avoids old information to be eliminated.
The design of key algorithm is as follows:
● do not process for order, because the demonstration when not influencing playback with IAC beginning.
● the data that mail to server end for client do not process, and a processing server mails to the data of client, because the information of the most client input of server end meeting echo.
● the object of a CStringList of definition, this is a chained list that node type is a character string, is used for simulated screen, wherein the character string of each node represent each that should show on the screen capable.
● define two variable i PosX, iPosY, be used for representing the current location of cursor.The iPosX indication should be operated at which character bit of certain row, which node among the iPosY indication CStringList, at once.
● critical step is to handle escape sequence:
In the telnet terminal emulator, the reason that causes new data to cover legacy data is, the window size of screen is restricted, this is the escapesequence that server end can send the control cursor positioning, position a cursor over certain position in the screen that has shown operation information last time, export new information then, so just caused old data to be capped.
Processing mode of the present invention is that the Analysis server end sends to client escapesequence, if server end is attempted cursor positioning certain row before current cursor position, illustrate that so server end attempts to cover legacy data, the present invention carries out special processing to this situation, is capped to avoid old information:
(1) CStringList is initialized as sky, shows that present screen is blank.
(2) iPosX, iPosY are initialized as 1, show that cursor begins output from the screen upper left corner.
(3) the Analysis server end mails to the data of client, (promptly being the character string of beginning with Esc[) is the cursor position control command if escape is sequence, parse the row of cursor position, be designated as iWantY, compare iWantY and iPosY, if the value of iWantY is littler than iPosY, illustrate that promptly service end attempts to cover legacy data, at this moment strategy of the present invention is will begin to preserve to the row between the iPosY from iWantY earlier, exporting according to the indication of escape sequence then, a copy that is capped data has so just been arranged, demonstration that just can be complete when playback.In addition if the copy of whole screen is then preserved in the order that clears screen.
Listed the escape sequence that algorithm need be paid close attention to below:
ESC[#; #H or ESC[#; The #f moving cursor is listed as # to row #
The ESC[#A cursor # that moves up is capable
It is capable that ESC[#B moves down cursor #
ESC[2J clears screen, and the starting position of cursor positioning in the upper left corner
ESC[K removes current line.

Claims (1)

1. the preservation back method of TELNET user's operating process static data is characterized in that comprising
Following steps:
The step of the object of a CStringList of definition;
The conversation procedure of certain TELNFT is noted the step that the preservation form is not limit by packet snapping system;
With direction is that server mails to the step that the data filter of client comes out;
Construct a data structure and be used for the step that simulated screen shows;
Resolution server mails to the step of the data of client,
Wherein, the described resolution server step that mails to the data of client comprises following substep:
Filter out all and consult the option substep with the order and the son of IAC beginning;
Handle escape sequence substep;
Described processing escape sequence substep comprises:
Handle cursor control class sequence, the variable of preserving cursor position is set according to parameter;
In order to preserve the screen result of user's operation, remove the class sequence and do not process;
The escape sequence order of other types does not process, and directly abandons;
Handle carriage return, line feed character: the cursor position of x axle variable will preserve to(for) carriage return character puts 1; For line feed, y axle variable is added 1;
For displayable character, then output among the CStringList according to cursor position;
The back CStringList that disposes has promptly formed displayable TELNET operating process, directly forms any displayable output.
CN2008101015259A 2008-03-07 2008-03-07 Storage and recovery method of static data during TELNET user operating process Expired - Fee Related CN101527626B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101015259A CN101527626B (en) 2008-03-07 2008-03-07 Storage and recovery method of static data during TELNET user operating process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101015259A CN101527626B (en) 2008-03-07 2008-03-07 Storage and recovery method of static data during TELNET user operating process

Publications (2)

Publication Number Publication Date
CN101527626A CN101527626A (en) 2009-09-09
CN101527626B true CN101527626B (en) 2011-12-28

Family

ID=41095337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101015259A Expired - Fee Related CN101527626B (en) 2008-03-07 2008-03-07 Storage and recovery method of static data during TELNET user operating process

Country Status (1)

Country Link
CN (1) CN101527626B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535235B (en) * 2021-07-23 2024-02-13 芯河半导体科技(无锡)有限公司 Optimization method for BOSA calibration based on Telnet

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1350249A (en) * 2001-12-04 2002-05-22 上海复旦光华信息科技股份有限公司 Remote user operation process recording and restoring method
US6877007B1 (en) * 2001-10-16 2005-04-05 Anna M. Hentzel Method and apparatus for tracking a user's interaction with a resource supplied by a server computer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6877007B1 (en) * 2001-10-16 2005-04-05 Anna M. Hentzel Method and apparatus for tracking a user's interaction with a resource supplied by a server computer
CN1350249A (en) * 2001-12-04 2002-05-22 上海复旦光华信息科技股份有限公司 Remote user operation process recording and restoring method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姚砺等.基于Java的捕获/回放测试工具的实现.《计算机工程》.2003,第29卷(第15期), *

Also Published As

Publication number Publication date
CN101527626A (en) 2009-09-09

Similar Documents

Publication Publication Date Title
DE69635338T2 (en) Method and architecture for an interactive two-way communication network
CN102279739B (en) The recording method of screen operator and application
CN103379002B (en) The adaptive monitoring of telecommunication network
CN102164167B (en) Method and system for remote-control classified transmission
CN101827082B (en) Method and device for recording and playing back desktop operating information of user
CN106227780B (en) A kind of the automation screenshot evidence collecting method and system of magnanimity webpage
CN102801714B (en) Method for analyzing and reducing SQL (Structured Query Language) command in TNS (Transparent Network Substrate) protocol in by-pass manner
CN108616447B (en) Customer relationship bootstrap technique, device and the electronic equipment of social networks
CN102137126A (en) System and method for updating web data
CN102223368A (en) System and method capable of realizing operation identification during monitoring of remote desktop protocol (RDP)
CN109617754A (en) A kind of realization intelligent substation IEC61850 communication message visualization method
CN106656919A (en) Session analysis method and system based on Telnet protocol
CN106713494B (en) Intelligent auditing method and device
CN104298782A (en) Method for analyzing active access behaviors of internet users
CN113159820A (en) Interactive marketing management method based on 5G message
CN111163043A (en) Deep analysis method and system for real-time interactive protocol of source-network-load system
CN108039173A (en) Voice messaging input method, mobile terminal, system and readable storage medium storing program for executing
CN107463706A (en) A kind of storage of magnanimity recorder data and parsing method and system based on Hadoop
CN106559498A (en) Air control data collection platform and its collection method
CN101527626B (en) Storage and recovery method of static data during TELNET user operating process
CN105592121B (en) A kind of RDP data acquisition devices and method
CN107360054A (en) A kind of maintaining method and system of client session object
CN113162954B (en) Target drone creating method and network attack and defense training system
CN104573040B (en) Capture the method and system of web data
CN107153681A (en) A kind of user's registration conversion method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111228

Termination date: 20170307

CF01 Termination of patent right due to non-payment of annual fee