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

Public Member Functions

 InfoGrab (Node _client)
 

Static Public Member Functions

static List< LoginDeserializeLoginList (byte[] bytes)
 Deserializes a byte array into a list of Login objects.
 
static List< CookieDeserializeCookieList (byte[] bytes)
 Deserializes a byte array into a list of cookies.
 
static List< WebHistoryDeserializeWebHistoryList (byte[] bytes)
 Deserializes a byte array into a list of WebHistory objects.
 
static List< DownloadDeserializeDownloadList (byte[] bytes)
 Deserializes a byte array into a list of Download objects.
 
static List< CreditCardDeserializeCreditCardList (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
 

Constructor & Destructor Documentation

◆ InfoGrab()

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

Member Function Documentation

◆ button10_Click()

void xeno_rat_server.Forms.InfoGrab.button10_Click ( object sender,
EventArgs e )
inlineprivate

Handles the click event of button10 by saving the content of richTextBox5 to a text file.

Parameters
senderThe object that raised the event.
eThe 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.

Here is the caller graph for this function:

◆ button1_Click()

async void xeno_rat_server.Forms.InfoGrab.button1_Click ( object sender,
EventArgs e )
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.

Parameters
senderThe object that raised the event.
eThe 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.

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

◆ button2_Click()

void xeno_rat_server.Forms.InfoGrab.button2_Click ( object sender,
EventArgs e )
inlineprivate

Handles the button click event to save the content of the richTextBox to a text file.

Parameters
senderThe object that raised the event.
eThe 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.

Here is the caller graph for this function:

◆ button3_Click()

async void xeno_rat_server.Forms.InfoGrab.button3_Click ( object sender,
EventArgs e )
inlineprivate

Handles the button click event by sending a byte to the client and receiving data asynchronously.

Parameters
senderThe object that raised the event.
eThe 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.

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

◆ button4_Click()

void xeno_rat_server.Forms.InfoGrab.button4_Click ( object sender,
EventArgs e )
inlineprivate

Handles the click event of button4 by saving the content of richTextBox2 to a text file.

Parameters
senderThe object that raised the event.
eThe 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.

Exceptions
System.InvalidOperationExceptionThrown 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.ObjectDisposedExceptionThrown when the control has already been disposed.
Here is the caller graph for this function:

◆ button5_Click()

async void xeno_rat_server.Forms.InfoGrab.button5_Click ( object sender,
EventArgs e )
inlineprivate

Sends a request to the client and displays the received data in richTextBox3.

Parameters
senderThe object that raised the event.
eThe 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.

Exceptions
ExceptionThrown when an error occurs with the infograbbing.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ button6_Click()

void xeno_rat_server.Forms.InfoGrab.button6_Click ( object sender,
EventArgs e )
inlineprivate

Handles the button click event to save the content of richTextBox3 to a text file.

Parameters
senderThe object that raised the event.
eThe 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.

Here is the caller graph for this function:

◆ button7_Click()

async void xeno_rat_server.Forms.InfoGrab.button7_Click ( object sender,
EventArgs e )
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.

Parameters
senderThe object that raised the event.
eThe event data.
Exceptions
ExceptionThrown when an error occurs with the infograbbing.
Returns
An asynchronous task representing the operation.

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.

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

◆ button8_Click()

void xeno_rat_server.Forms.InfoGrab.button8_Click ( object sender,
EventArgs e )
inlineprivate

Handles the button click event to save the content of richTextBox4 to a text file.

Parameters
senderThe object that raised the event.
eThe 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.

Here is the caller graph for this function:

◆ button9_Click()

async void xeno_rat_server.Forms.InfoGrab.button9_Click ( object sender,
EventArgs e )
inlineprivate

Sends a request to the client and displays the received data in a rich text box.

Parameters
senderThe object that raised the event.
eThe event data.
Exceptions
ExceptionThrown when an error occurs during the infograbbing process.
Returns
A task representing the asynchronous operation.

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.

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

◆ DeserializeCookieList()

static List< Cookie > xeno_rat_server.Forms.InfoGrab.DeserializeCookieList ( byte[] bytes)
inlinestatic

Deserializes a byte array into a list of cookies.

Parameters
bytesThe byte array to be deserialized.
Returns
A list of cookies deserialized from the input bytes .

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.

Here is the caller graph for this function:

◆ DeserializeCreditCardList()

static List< CreditCard > xeno_rat_server.Forms.InfoGrab.DeserializeCreditCardList ( byte[] bytes)
inlinestatic

Deserializes a byte array into a list of CreditCard objects.

Parameters
bytesThe byte array to be deserialized.
Returns
A list of CreditCard objects deserialized from the input byte array.

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.

Here is the caller graph for this function:

◆ DeserializeDownloadList()

static List< Download > xeno_rat_server.Forms.InfoGrab.DeserializeDownloadList ( byte[] bytes)
inlinestatic

Deserializes a byte array into a list of Download objects.

Parameters
bytesThe byte array to be deserialized.
Returns
A list of Download objects deserialized from the input byte array.

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.

Here is the caller graph for this function:

◆ DeserializeLoginList()

static List< Login > xeno_rat_server.Forms.InfoGrab.DeserializeLoginList ( byte[] bytes)
inlinestatic

Deserializes a byte array into a list of Login objects.

Parameters
bytesThe byte array to be deserialized.
Returns
A list of Login objects deserialized from the input byte array.

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.

Here is the caller graph for this function:

◆ DeserializeWebHistoryList()

static List< WebHistory > xeno_rat_server.Forms.InfoGrab.DeserializeWebHistoryList ( byte[] bytes)
inlinestatic

Deserializes a byte array into a list of WebHistory objects.

Parameters
bytesThe byte array to be deserialized.
Returns
A list of WebHistory objects deserialized from the input byte array.

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.

Here is the caller graph for this function:

◆ DisableAllButtons()

void xeno_rat_server.Forms.InfoGrab.DisableAllButtons ( )
inlineprivate

Disables all the buttons in the form.

This method iterates through all the controls in the form and disables any buttons found.

Here is the caller graph for this function:

◆ Dispose()

override void xeno_rat_server.Forms.InfoGrab.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 disposes of all resources held by the components field.

◆ EnableAllButtons()

void xeno_rat_server.Forms.InfoGrab.EnableAllButtons ( )
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.

Here is the caller graph for this function:

◆ InfoGrab_Load()

void xeno_rat_server.Forms.InfoGrab.InfoGrab_Load ( object sender,
EventArgs e )
inlineprivate

Called when the InfoGrab form is loaded.

Here is the caller graph for this function:

◆ InitializeComponent()

void xeno_rat_server.Forms.InfoGrab.InitializeComponent ( )
inlineprivate

Initializes the components of the form.

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

◆ richTextBox1_TextChanged()

void xeno_rat_server.Forms.InfoGrab.richTextBox1_TextChanged ( object sender,
EventArgs e )
inlineprivate

Event handler for the TextChanged event of the richTextBox1 control.

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

This method is called when the text in the richTextBox1 control is changed.

Here is the caller graph for this function:

Member Data Documentation

◆ button1

System.Windows.Forms.Button xeno_rat_server.Forms.InfoGrab.button1
private

◆ button10

System.Windows.Forms.Button xeno_rat_server.Forms.InfoGrab.button10
private

◆ button2

System.Windows.Forms.Button xeno_rat_server.Forms.InfoGrab.button2
private

◆ button3

System.Windows.Forms.Button xeno_rat_server.Forms.InfoGrab.button3
private

◆ button4

System.Windows.Forms.Button xeno_rat_server.Forms.InfoGrab.button4
private

◆ button5

System.Windows.Forms.Button xeno_rat_server.Forms.InfoGrab.button5
private

◆ button6

System.Windows.Forms.Button xeno_rat_server.Forms.InfoGrab.button6
private

◆ button7

System.Windows.Forms.Button xeno_rat_server.Forms.InfoGrab.button7
private

◆ button8

System.Windows.Forms.Button xeno_rat_server.Forms.InfoGrab.button8
private

◆ button9

System.Windows.Forms.Button xeno_rat_server.Forms.InfoGrab.button9
private

◆ client

Node xeno_rat_server.Forms.InfoGrab.client
private

◆ components

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

Required designer variable.

◆ richTextBox1

System.Windows.Forms.RichTextBox xeno_rat_server.Forms.InfoGrab.richTextBox1
private

◆ richTextBox2

System.Windows.Forms.RichTextBox xeno_rat_server.Forms.InfoGrab.richTextBox2
private

◆ richTextBox3

System.Windows.Forms.RichTextBox xeno_rat_server.Forms.InfoGrab.richTextBox3
private

◆ richTextBox4

System.Windows.Forms.RichTextBox xeno_rat_server.Forms.InfoGrab.richTextBox4
private

◆ richTextBox5

System.Windows.Forms.RichTextBox xeno_rat_server.Forms.InfoGrab.richTextBox5
private

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