Xeno-rat
Loading...
Searching...
No Matches
xeno_rat_server.Forms.KeyLogger Class Reference
Inheritance diagram for xeno_rat_server.Forms.KeyLogger:
Collaboration diagram for xeno_rat_server.Forms.KeyLogger:

Public Member Functions

 KeyLogger (Node _client)
 
async Task recvThread ()
 Asynchronously receives data from the client and processes it.
 
string Normalize (string input)
 Replaces the placeholders [enter] and [space] in the input string with new line and space characters respectively.
 

Protected Member Functions

override void Dispose (bool disposing)
 Releases the unmanaged resources used by the component and optionally releases the managed resources.
 

Private Member Functions

void textBox1_TextChanged (object sender, EventArgs e)
 Event handler for the TextChanged event of textBox1.
 
void listView1_SelectedIndexChanged (object sender, EventArgs e)
 Occurs when the selected index of the ListView control changes.
 
void KeyLogger_Load (object sender, EventArgs e)
 Called when the KeyLogger form is loaded.
 
void listView1_ItemActivate (object sender, EventArgs e)
 Handles the event when an item in the list view is activated.
 
void label1_Click (object sender, EventArgs e)
 Event handler for the Click event of label1.
 
void label2_Click (object sender, EventArgs e)
 Event handler for the Click event of the label2 control.
 
void textBox1_TextChanged_1 (object sender, EventArgs e)
 Event handler for the TextChanged event of textBox1.
 
void InitializeComponent ()
 Initializes the components of the KeyLogger form.
 

Private Attributes

Node client
 
string selectedItem = null
 
Dictionary< string, string > applications = new Dictionary<string, string>()
 
System.ComponentModel.IContainer components = null
 Required designer variable.
 
System.Windows.Forms.ListView listView1
 
System.Windows.Forms.TextBox textBox1
 
System.Windows.Forms.Label label1
 
System.Windows.Forms.Label label2
 
System.Windows.Forms.ColumnHeader columnHeader1
 

Constructor & Destructor Documentation

◆ KeyLogger()

xeno_rat_server.Forms.KeyLogger.KeyLogger ( Node _client)
inline
Here is the call graph for this function:

Member Function Documentation

◆ Dispose()

override void xeno_rat_server.Forms.KeyLogger.Dispose ( bool disposing)
inlineprotected

Releases the unmanaged resources used by the component and optionally releases the managed resources.

Parameters
disposingtrue to release both managed and unmanaged resources; false to release only unmanaged resources.

This method releases the unmanaged resources used by the component and optionally releases the managed resources. If disposing is true, this method releases all resources held by any managed objects that this T:System.ComponentModel.Component references. This method is called by the public M:System.ComponentModel.Component.Dispose method and the M:System.ComponentModel.Component.Finalize method.

◆ InitializeComponent()

void xeno_rat_server.Forms.KeyLogger.InitializeComponent ( )
inlineprivate

Initializes the components of the KeyLogger form.

This method initializes and sets up the various UI components of the KeyLogger form, including a ListView, TextBox, and Labels. It also sets event handlers for various UI events such as ItemActivate, SelectedIndexChanged, TextChanged, and Click.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ KeyLogger_Load()

void xeno_rat_server.Forms.KeyLogger.KeyLogger_Load ( object sender,
EventArgs e )
inlineprivate

Called when the KeyLogger form is loaded.

Here is the caller graph for this function:

◆ label1_Click()

void xeno_rat_server.Forms.KeyLogger.label1_Click ( object sender,
EventArgs e )
inlineprivate

Event handler for the Click event of label1.

Parameters
senderThe object that raised the event.
eThe event data.

This method is an event handler for the Click event of label1. It is triggered when the label is clicked.

Here is the caller graph for this function:

◆ label2_Click()

void xeno_rat_server.Forms.KeyLogger.label2_Click ( object sender,
EventArgs e )
inlineprivate

Event handler for the Click event of the label2 control.

Parameters
senderThe object that raised the event.
eAn EventArgs that contains the event data.

This method is an event handler for the Click event of the label2 control. It is triggered when the label2 control is clicked.

Here is the caller graph for this function:

◆ listView1_ItemActivate()

void xeno_rat_server.Forms.KeyLogger.listView1_ItemActivate ( object sender,
EventArgs e )
inlineprivate

Handles the event when an item in the list view is activated.

Parameters
senderThe source of the event.
eAn EventArgs that contains the event data.

This method retrieves the text of the first column of the selected item in the list view. It then normalizes the corresponding value from the 'applications' dictionary and sets it as the text of 'textBox1'.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ listView1_SelectedIndexChanged()

void xeno_rat_server.Forms.KeyLogger.listView1_SelectedIndexChanged ( object sender,
EventArgs e )
inlineprivate

Occurs when the selected index of the ListView control changes.

Parameters
senderThe source of the event.
eAn EventArgs that contains the event data.
Here is the caller graph for this function:

◆ Normalize()

string xeno_rat_server.Forms.KeyLogger.Normalize ( string input)
inline

Replaces the placeholders [enter] and [space] in the input string with new line and space characters respectively.

Parameters
inputThe input string containing placeholders to be replaced.
Returns
The input string with [enter] replaced by new line characters and [space] replaced by space characters.
Here is the caller graph for this function:

◆ recvThread()

async Task xeno_rat_server.Forms.KeyLogger.recvThread ( )
inline

Asynchronously receives data from the client and processes it.

This method continuously listens for incoming data from the connected client. Upon receiving the data, it processes the application and key information. If either the application or key data is null, and the form is not disposed, it closes the form. The received application and key data are then converted to strings using UTF-8 encoding. If the key is an empty string, the method continues to listen for more data. If the application is not already in the applications dictionary, it adds a new entry to the list view and initializes the application in the dictionary. The method then appends the received key to the corresponding application entry in the dictionary. If the selected item matches the current application, it updates the text box with the normalized key data.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ textBox1_TextChanged()

void xeno_rat_server.Forms.KeyLogger.textBox1_TextChanged ( object sender,
EventArgs e )
inlineprivate

Event handler for the TextChanged event of textBox1.

Parameters
senderThe source of the event.
eAn EventArgs that contains the event data.

◆ textBox1_TextChanged_1()

void xeno_rat_server.Forms.KeyLogger.textBox1_TextChanged_1 ( object sender,
EventArgs e )
inlineprivate

Event handler for the TextChanged event of textBox1.

Parameters
senderThe source of the event.
eAn EventArgs that contains the event data.

This method is called when the text in textBox1 is changed. It is typically used to handle any logic or actions that need to be performed when the text changes.

Here is the caller graph for this function:

Member Data Documentation

◆ applications

Dictionary<string, string> xeno_rat_server.Forms.KeyLogger.applications = new Dictionary<string, string>()
private

◆ client

Node xeno_rat_server.Forms.KeyLogger.client
private

◆ columnHeader1

System.Windows.Forms.ColumnHeader xeno_rat_server.Forms.KeyLogger.columnHeader1
private

◆ components

System.ComponentModel.IContainer xeno_rat_server.Forms.KeyLogger.components = null
private

Required designer variable.

◆ label1

System.Windows.Forms.Label xeno_rat_server.Forms.KeyLogger.label1
private

◆ label2

System.Windows.Forms.Label xeno_rat_server.Forms.KeyLogger.label2
private

◆ listView1

System.Windows.Forms.ListView xeno_rat_server.Forms.KeyLogger.listView1
private

◆ selectedItem

string xeno_rat_server.Forms.KeyLogger.selectedItem = null
private

◆ textBox1

System.Windows.Forms.TextBox xeno_rat_server.Forms.KeyLogger.textBox1
private

The documentation for this class was generated from the following files: