|
static async Task< string > | GetCaptionOfActiveWindowAsync () |
| Retrieves the caption of the active window asynchronously.
|
|
static string | GetCaptionOfActiveWindow () |
| Retrieves the caption of the active window.
|
|
static bool | IsAdmin () |
| Checks if the current user is an admin and returns a boolean value indicating the result.
|
|
static string | GetAntivirus () |
| Retrieves the installed antivirus products on the local machine and returns a comma-separated list of the product names.
|
|
static string | GetWindowsVersion () |
| Retrieves the Windows version and architecture information.
|
|
static string | HWID () |
| Generates a unique hardware identifier (HWID) based on various system parameters.
|
|
static string | GetHash (string strToHash) |
| Computes the MD5 hash of the input string and returns the first 20 characters in uppercase.
|
|
static async Task< Node > | ConnectAndSetupAsync (Socket sock, byte[] key, int type=0, int ID=0, Action< Node > OnDisconnect=null) |
| Connects to a socket, sets up a node, and authenticates it asynchronously.
|
|
static async Task | RemoveStartup (string executablePath) |
| Removes any startup entries related to the specified executable path.
|
|
static async Task | Uninstall () |
| Uninstalls the application by removing it from startup, executing a command to delete the application file, and then terminating the current process.
|
|
static async Task< bool > | AddToStartupNonAdmin (string executablePath, string name="XenoUpdateManager") |
| Adds the specified executable to the current user's startup registry without requiring admin privileges.
|
|
static async Task< bool > | AddToStartupAdmin (string executablePath, string name="XenoUpdateManager") |
| Adds the specified executable to the Windows startup for all users and returns a boolean indicating whether the operation was successful.
|
|
static async Task< uint > | GetIdleTimeAsync () |
| Asynchronously retrieves the system's idle time in milliseconds.
|
|
static uint | GetIdleTime () |
| Retrieves the number of milliseconds that have elapsed since the last input event (keyboard or mouse) was received.
|
|
|
static bool | IsUserAnAdmin () |
| Determines whether the current user is a member of the administrator group.
|
|
static IntPtr | GetForegroundWindow () |
| Retrieves a handle to the foreground window (the window with which the user is currently working).
|
|
static int | GetWindowText (IntPtr hWnd, StringBuilder text, int count) |
| Retrieves the text of the specified window's title bar, if it has one.
|
|
static int | GetWindowTextLength (IntPtr hWnd) |
| Retrieves the length, in characters, of the specified window's title bar text (if it has one). If the specified window is a control, the function retrieves the length of the text within the control.
|
|
static IntPtr | GetWindowThreadProcessId (IntPtr hWnd, out uint ProcessId) |
| Retrieves the identifier of the thread that created the specified window and, optionally, the identifier of the process that created the window.
|
|
static bool | GetLastInputInfo (ref LASTINPUTINFO plii) |
| Retrieves the time of the last input event.
|
|
static bool | CloseHandle (IntPtr hObject) |
| Closes an open object handle.
|
|
static async Task< Node > xeno_rat_client.Utils.ConnectAndSetupAsync |
( |
Socket | sock, |
|
|
byte[] | key, |
|
|
int | type = 0, |
|
|
int | ID = 0, |
|
|
Action< Node > | OnDisconnect = null ) |
|
inlinestatic |
Connects to a socket, sets up a node, and authenticates it asynchronously.
- Parameters
-
sock | The socket to connect to. |
key | The byte array key for authentication. |
type | The type of authentication (default is 0). |
ID | The ID for authentication (default is 0). |
OnDisconnect | An action to be performed on disconnection (default is null). |
- Returns
- An authenticated node if successful; otherwise, null.
This method connects to the specified socket, creates a new node with the provided socket handler and disconnection action. It then attempts to authenticate the node asynchronously with the specified type and ID. If the authentication is successful, the authenticated node is returned; otherwise, null is returned.
static string xeno_rat_client.Utils.GetCaptionOfActiveWindow |
( |
| ) |
|
|
inlinestatic |
Retrieves the caption of the active window.
- Returns
- The caption of the active window.
This method retrieves the caption of the active window by obtaining the handle of the foreground window and using it to get the window text. It then retrieves the process ID associated with the window handle and uses it to get the process information, which is used to construct the caption. If the window title is empty, only the process name is used as the caption; otherwise, the process name is appended with the window title.
static string xeno_rat_client.Utils.HWID |
( |
| ) |
|
|
inlinestatic |
Generates a unique hardware identifier (HWID) based on various system parameters.
- Returns
- A string representing the unique hardware identifier (HWID) generated based on the processor count, user name, machine name, operating system version, and total size of the system drive. If an exception occurs during the generation process, the method returns "UNKNOWN".
This method combines various system parameters such as processor count, user name, machine name, operating system version, and total size of the system drive to create a unique hardware identifier (HWID). The method uses a hashing function to generate the HWID and returns it as a string. If any exception occurs during the generation process, the method returns "UNKNOWN" to indicate that the HWID could not be generated accurately.
static async Task xeno_rat_client.Utils.Uninstall |
( |
| ) |
|
|
inlinestatic |
Uninstalls the application by removing it from startup, executing a command to delete the application file, and then terminating the current process.
This method removes the application from the startup, deletes the application file using a command executed in a hidden command prompt window, and then terminates the current process.