Xeno-rat
|
Public Member Functions | |
InfoGrab (Node _client) | |
Static Public Member Functions | |
static List< Login > | DeserializeLoginList (byte[] bytes) |
Deserializes a byte array into a list of Login objects. | |
static List< Cookie > | DeserializeCookieList (byte[] bytes) |
Deserializes a byte array into a list of cookies. | |
static List< WebHistory > | DeserializeWebHistoryList (byte[] bytes) |
Deserializes a byte array into a list of WebHistory objects. | |
static List< Download > | DeserializeDownloadList (byte[] bytes) |
Deserializes a byte array into a list of Download objects. | |
static List< CreditCard > | DeserializeCreditCardList (byte[] bytes) |
Deserializes a byte array into a list of CreditCard objects. | |
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 | DisableAllButtons () |
Disables all the buttons in the form. | |
void | EnableAllButtons () |
Enables all the buttons within the form. | |
void | InfoGrab_Load (object sender, EventArgs e) |
Called when the InfoGrab form is loaded. | |
async void | button1_Click (object sender, EventArgs e) |
Disables all buttons, sends a byte array to the client, receives a byte array from the client, and processes the data to display in a rich text box. | |
async void | button3_Click (object sender, EventArgs e) |
Handles the button click event by sending a byte to the client and receiving data asynchronously. | |
async void | button5_Click (object sender, EventArgs e) |
Sends a request to the client and displays the received data in richTextBox3. | |
async void | button7_Click (object sender, EventArgs e) |
Disables all buttons, sends a byte array to the client, receives a byte array from the client, and processes the data to display in a rich text box. | |
async void | button9_Click (object sender, EventArgs e) |
Sends a request to the client and displays the received data in a rich text box. | |
void | richTextBox1_TextChanged (object sender, EventArgs e) |
Event handler for the TextChanged event of the richTextBox1 control. | |
void | button2_Click (object sender, EventArgs e) |
Handles the button click event to save the content of the richTextBox to a text file. | |
void | button4_Click (object sender, EventArgs e) |
Handles the click event of button4 by saving the content of richTextBox2 to a text file. | |
void | button6_Click (object sender, EventArgs e) |
Handles the button click event to save the content of richTextBox3 to a text file. | |
void | button8_Click (object sender, EventArgs e) |
Handles the button click event to save the content of richTextBox4 to a text file. | |
void | button10_Click (object sender, EventArgs e) |
Handles the click event of button10 by saving the content of richTextBox5 to a text file. | |
void | InitializeComponent () |
Initializes the components of the form. | |
Private Attributes | |
Node | client |
System.ComponentModel.IContainer | components = null |
Required designer variable. | |
System.Windows.Forms.RichTextBox | richTextBox1 |
System.Windows.Forms.RichTextBox | richTextBox2 |
System.Windows.Forms.RichTextBox | richTextBox3 |
System.Windows.Forms.RichTextBox | richTextBox4 |
System.Windows.Forms.RichTextBox | richTextBox5 |
System.Windows.Forms.Button | button1 |
System.Windows.Forms.Button | button2 |
System.Windows.Forms.Button | button3 |
System.Windows.Forms.Button | button4 |
System.Windows.Forms.Button | button5 |
System.Windows.Forms.Button | button6 |
System.Windows.Forms.Button | button7 |
System.Windows.Forms.Button | button8 |
System.Windows.Forms.Button | button9 |
System.Windows.Forms.Button | button10 |
|
inline |
|
inlineprivate |
Handles the click event of button10 by saving the content of richTextBox5 to a text file.
sender | The object that raised the event. |
e | The event data. |
This method creates a new thread to handle the file saving operation in order to prevent freezing the UI. It prompts the user to select a location to save the file and then writes the content of richTextBox5 to the selected file.
|
inlineprivate |
Disables all buttons, sends a byte array to the client, receives a byte array from the client, and processes the data to display in a rich text box.
sender | The object that raised the event. |
e | The event data. |
This method disables all buttons, sends a byte array to the client using asynchronous communication, receives a byte array from the client using asynchronous communication, processes the received data to display in a rich text box, and then enables all buttons. If no data is received from the client, an error message is displayed, and the form is closed.
|
inlineprivate |
Handles the button click event to save the content of the richTextBox to a text file.
sender | The object that raised the event. |
e | The event arguments. |
This method creates a new thread to handle the file saving operation in order to prevent blocking the main UI thread. It prompts the user to select a location to save the file and then writes the content of the richTextBox to the selected file. The file is saved in the .txt format.
|
inlineprivate |
Handles the button click event by sending a byte to the client and receiving data asynchronously.
sender | The object that raised the event. |
e | The event data. |
This method disables all buttons, sends a byte to the client using the client and receives data asynchronously. If the received data is null, it displays an error message and closes the form. Then, it deserializes the received data into a list of cookies and populates the richTextBox2 with the cookie information. Finally, it enables all buttons.
|
inlineprivate |
Handles the click event of button4 by saving the content of richTextBox2 to a text file.
sender | The object that raised the event. |
e | The event data. |
This method creates a new thread to handle the file saving operation in order to prevent the UI from freezing. It prompts the user to select a location to save the file and then writes the content of richTextBox2 to the selected file. The file is saved in a text format with a .txt extension.
System.InvalidOperationException | Thrown when the operation is not valid for the current state of the control, such as when the control is in a state that does not allow writing. |
System.ObjectDisposedException | Thrown when the control has already been disposed. |
|
inlineprivate |
Sends a request to the client and displays the received data in richTextBox3.
sender | The object that raised the event. |
e | The event data. |
This method sends a request to the client using the SendAsync method and awaits the response using the ReceiveAsync method. If the received data is null, it displays an error message and closes the form. It then deserializes the received data into a list of WebHistory objects and populates richTextBox3 with the string representation of each WebHistory object. Finally, it enables all buttons after completing the operation.
Exception | Thrown when an error occurs with the infograbbing. |
|
inlineprivate |
Handles the button click event to save the content of richTextBox3 to a text file.
sender | The object that raised the event. |
e | The event arguments. |
This method creates a new thread to handle the file saving operation in order to prevent blocking the main UI thread. It initializes a SaveFileDialog to prompt the user for the file path and name. If the user selects a valid file path and name, the method writes the content of richTextBox3 to the specified text file using asynchronous file I/O operations.
|
inlineprivate |
Disables all buttons, sends a byte array to the client, receives a byte array from the client, and processes the data to display in a rich text box.
sender | The object that raised the event. |
e | The event data. |
Exception | Thrown when an error occurs with the infograbbing. |
This method disables all buttons, sends a byte array with value 3 to the client using the SendAsync method of the client object. It then receives a byte array from the client using the ReceiveAsync method of the client object. If the received data is null, it displays an error message and closes the form. It deserializes the received byte array into a list of Download objects using the DeserializeDownloadList method. It then iterates through the list of Download objects, concatenates their string representations, and displays the result in a rich text box. Finally, it enables all buttons after completing the operation.
|
inlineprivate |
Handles the button click event to save the content of richTextBox4 to a text file.
sender | The object that raised the event. |
e | The event arguments. |
This method creates a new thread to handle the file saving operation in the background, ensuring that the UI remains responsive. It prompts the user to select a location to save the file using a SaveFileDialog. If the user selects a valid location and confirms the save operation, the content of richTextBox4 is asynchronously written to the selected file. The method sets the thread's apartment state to STA (Single-Threaded Apartment) to ensure proper interaction with the UI components.
|
inlineprivate |
Sends a request to the client and displays the received data in a rich text box.
sender | The object that raised the event. |
e | The event data. |
Exception | Thrown when an error occurs during the infograbbing process. |
This method sends a request to the client using the SendAsync method and waits for the response using the ReceiveAsync method. If the received data is null, an error message is displayed, and the form is closed. The received data is deserialized into a list of CreditCard objects, and each object is appended to the textdata string. The textdata is then displayed in the richTextBox5 control, and all buttons are enabled after the operation is completed.
|
inlinestatic |
Deserializes a byte array into a list of cookies.
bytes | The byte array to be deserialized. |
This method deserializes the input byte array bytes into a list of cookies. It reads the number of cookies from the byte array, then iterates through each cookie's properties (host, name, path, value, and expiration) and adds them to the cookie list. The method returns the deserialized list of cookies.
|
inlinestatic |
Deserializes a byte array into a list of CreditCard objects.
bytes | The byte array to be deserialized. |
This method deserializes the input byte array into a list of CreditCard objects. It reads the number of CreditCard objects from the byte array, and then iterates through the array to read the details of each CreditCard object, including name, month, year, number, and date_modified. The method then constructs a CreditCard object for each set of details and adds it to the list.
|
inlinestatic |
Deserializes a byte array into a list of Download objects.
bytes | The byte array to be deserialized. |
This method deserializes the input byte array into a list of Download objects. It reads the number of downloads from the byte array, and then iterates through the array to read tab URLs and target paths for each download. It creates a new Download object for each pair of tab URL and target path, and adds it to the download list.
|
inlinestatic |
Deserializes a byte array into a list of Login objects.
bytes | The byte array to be deserialized. |
This method deserializes the input byte array into a list of Login objects. It reads the number of Login objects from the byte array, and then iterates through the array to read the URL, username, and password for each Login object. The method constructs a new Login object for each set of URL, username, and password, and adds it to the list. The deserialized list of Login objects is then returned.
|
inlinestatic |
Deserializes a byte array into a list of WebHistory objects.
bytes | The byte array to be deserialized. |
This method deserializes the input byte array into a list of WebHistory objects. It reads the number of WebHistory objects from the byte array, and then iterates through the array to read the URL, title, and timestamp for each WebHistory object. It then constructs a new WebHistory object using the read data and adds it to the list. The method returns the deserialized list of WebHistory objects.
|
inlineprivate |
Disables all the buttons in the form.
This method iterates through all the controls in the form and disables any buttons found.
|
inlineprotected |
Releases the unmanaged resources used by the component and optionally releases the managed resources.
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 disposes of all resources held by the components field.
|
inlineprivate |
Enables all the buttons within the form.
This method iterates through all the controls within the form and enables any control of type Button.
|
inlineprivate |
|
inlineprivate |
Initializes the components of the form.
|
inlineprivate |
Event handler for the TextChanged event of the richTextBox1 control.
sender | The source of the event. |
e | An EventArgs that contains the event data. |
This method is called when the text in the richTextBox1 control is changed.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Required designer variable.
|
private |
|
private |
|
private |
|
private |
|
private |