Xeno-rat
Loading...
Searching...
No Matches
xeno_rat_client.Program Class Reference
Collaboration diagram for xeno_rat_client.Program:

Static Public Member Functions

static void OnDisconnect (Node MainNode)
 Prints the connection status of the main node to the console.
 

Static Public Attributes

static StringBuilder ProcessLog = new StringBuilder()
 

Static Private Member Functions

static async Task Main (string[] args)
 Main function for the XenoUpdateManager application.
 
static void CurrentDomain_UnhandledException (object sender, UnhandledExceptionEventArgs e)
 Handles the unhandled exceptions in the current application domain.
 

Static Private Attributes

static Node Server
 
static DllHandler dllhandler = new DllHandler()
 
static string ServerIp = "localhost"
 
static int ServerPort = 1234
 
static byte[] EncryptionKey = new byte[32] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 }
 
static int delay = 1000
 
static string mutex_string = "testing 123123"
 
static int DoStartup = 2222
 
static string Install_path = "nothingset"
 
static string startup_name = "nothingset"
 

Member Function Documentation

◆ CurrentDomain_UnhandledException()

static void xeno_rat_client.Program.CurrentDomain_UnhandledException ( object sender,
UnhandledExceptionEventArgs e )
inlinestaticprivate

Handles the unhandled exceptions in the current application domain.

Parameters
senderThe source of the unhandled exception event.
eAn UnhandledExceptionEventArgs that contains the event data.

This method sends the exception details to the server's subnodes with a heartbeat socket type, and then restarts the application. If the exception is not handled, the application process is terminated.

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

◆ Main()

static async Task xeno_rat_client.Program.Main ( string[] args)
inlinestaticprivate

Main function for the XenoUpdateManager application.

Parameters
argsThe command-line arguments passed to the application.
Returns
An asynchronous task representing the execution of the Main function.

This function sets up the XenoUpdateManager application, including handling exceptions and delays, creating a mutex, and adding the application to startup if required. It then enters a continuous loop to connect to a server, handle the connection, and receive data, with error handling and delay in case of exceptions.

Exceptions
ExceptionThrown when an error occurs during the execution of the Main function.
Here is the call graph for this function:

◆ OnDisconnect()

static void xeno_rat_client.Program.OnDisconnect ( Node MainNode)
inlinestatic

Prints the connection status of the main node to the console.

Parameters
MainNodeThe main node whose connection status is to be checked.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ delay

int xeno_rat_client.Program.delay = 1000
staticprivate

◆ dllhandler

DllHandler xeno_rat_client.Program.dllhandler = new DllHandler()
staticprivate

◆ DoStartup

int xeno_rat_client.Program.DoStartup = 2222
staticprivate

◆ EncryptionKey

byte [] xeno_rat_client.Program.EncryptionKey = new byte[32] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 }
staticprivate

◆ Install_path

string xeno_rat_client.Program.Install_path = "nothingset"
staticprivate

◆ mutex_string

string xeno_rat_client.Program.mutex_string = "testing 123123"
staticprivate

◆ ProcessLog

StringBuilder xeno_rat_client.Program.ProcessLog = new StringBuilder()
static

◆ Server

Node xeno_rat_client.Program.Server
staticprivate

◆ ServerIp

string xeno_rat_client.Program.ServerIp = "localhost"
staticprivate

◆ ServerPort

int xeno_rat_client.Program.ServerPort = 1234
staticprivate

◆ startup_name

string xeno_rat_client.Program.startup_name = "nothingset"
staticprivate

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