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

Public Member Functions

 DllHandler ()
 
async Task DllNodeHandler (Node subServer)
 Handles the DLL node by receiving, loading, and invoking the specified DLL.
 

Public Attributes

Dictionary< string, Assembly > Assemblies = new Dictionary<string, Assembly>()
 
string classpath = "Plugin.Main"
 

Static Private Member Functions

static Assembly CurrentDomain_AssemblyResolve (object sender, ResolveEventArgs args)
 Handles the resolution of the "xeno rat client" assembly and returns the executing assembly if the requested assembly name matches.
 

Constructor & Destructor Documentation

◆ DllHandler()

xeno_rat_client.DllHandler.DllHandler ( )
inline
Here is the call graph for this function:

Member Function Documentation

◆ CurrentDomain_AssemblyResolve()

static Assembly xeno_rat_client.DllHandler.CurrentDomain_AssemblyResolve ( object sender,
ResolveEventArgs args )
inlinestaticprivate

Handles the resolution of the "xeno rat client" assembly and returns the executing assembly if the requested assembly name matches.

Parameters
senderThe source of the event.
argsThe event data.
Returns
The executing assembly if the requested assembly name matches; otherwise, null.
Here is the caller graph for this function:

◆ DllNodeHandler()

async Task xeno_rat_client.DllHandler.DllNodeHandler ( Node subServer)
inline

Handles the DLL node by receiving, loading, and invoking the specified DLL.

Parameters
subServerThe Node representing the sub-server to handle the DLL.
Exceptions
ExceptionThrown when an error occurs during the handling of the DLL node.
Returns
A task representing the asynchronous operation.

This method handles the DLL node by receiving the name of the DLL, checking if it is already loaded, and loading it if necessary. If the DLL is loaded, it creates an instance of the specified class and invokes the "Run" method using reflection. If an exception occurs during the handling of the DLL node, it sends a failure message along with the exception message to the sub-server.

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

Member Data Documentation

◆ Assemblies

Dictionary<string, Assembly> xeno_rat_client.DllHandler.Assemblies = new Dictionary<string, Assembly>()

◆ classpath

string xeno_rat_client.DllHandler.classpath = "Plugin.Main"

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