|
| 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.
|
|
|
override void | Dispose (bool disposing) |
| Releases the unmanaged resources used by the component and optionally releases the managed resources.
|
|
◆ KeyLogger()
xeno_rat_server.Forms.KeyLogger.KeyLogger |
( |
Node | _client | ) |
|
|
inline |
◆ 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
-
disposing | true 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.
◆ KeyLogger_Load()
void xeno_rat_server.Forms.KeyLogger.KeyLogger_Load |
( |
object | sender, |
|
|
EventArgs | e ) |
|
inlineprivate |
Called when the KeyLogger form is loaded.
◆ label1_Click()
void xeno_rat_server.Forms.KeyLogger.label1_Click |
( |
object | sender, |
|
|
EventArgs | e ) |
|
inlineprivate |
Event handler for the Click event of label1.
- Parameters
-
sender | The object that raised the event. |
e | The event data. |
This method is an event handler for the Click event of label1. It is triggered when the label is clicked.
◆ 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
-
sender | The object that raised the event. |
e | An 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.
◆ 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
-
sender | The source of the event. |
e | An 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'.
◆ 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
-
sender | The source of the event. |
e | An EventArgs that contains the event data. |
◆ 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
-
input | The input string containing placeholders to be replaced. |
- Returns
- The input string with [enter] replaced by new line characters and [space] replaced by space characters.
◆ 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.
◆ textBox1_TextChanged()
void xeno_rat_server.Forms.KeyLogger.textBox1_TextChanged |
( |
object | sender, |
|
|
EventArgs | e ) |
|
inlineprivate |
Event handler for the TextChanged event of textBox1.
- Parameters
-
sender | The source of the event. |
e | An 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
-
sender | The source of the event. |
e | An 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.
◆ 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:
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/xeno rat server/Forms/KeyLogger.cs
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/xeno rat server/Forms/KeyLogger.Designer.cs