Skip to content

An fully weaponized advanced featured windows keylogger made by Xanthorox AI, Fully undetectable by defender , uses advanced methods Very easy to use and compact

Notifications You must be signed in to change notification settings

Xanthorox/Xenlogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Xenlogger

An fully weaponized advanced featured windows keylogger made by Xanthorox AI, Fully undetectable by defender , uses advanced methods Very easy to use and compact

Forgithub-Again2.mp4

How it works

Includes & Linking: Includes necessary headers like <windows.h> and <winhttp.h>. The #pragma comment(lib, "winhttp.lib") tells the linker to include the WinHTTP library (alternatively, use -lwinhttp in the compile command).

Configuration: BOT_TOKEN_PLAINTEXT and CHAT_ID_PLAINTEXT are where you paste your credentials directly as strings. Crucially, this version uses these plaintext strings directly for network communication.

Dynamic API Loading (InitializeAPIs):

It loads necessary DLLs (kernel32.dll, user32.dll, winhttp.dll, ole32.dll, rpcrt4.dll, advapi32.dll) using direct calls to LoadLibraryA with plain DLL names. This proved more reliable in debugging than using XORed DLL names.

It then uses GetProcAddress (via the GetAPI helper) to get the memory addresses of all required Windows API functions using their exact, case-sensitive names (stored in str_fn_... constants). This avoids listing them directly in the import table, adding a layer against basic static analysis.

It returns true only if all essential function pointers are successfully obtained.

Networking (WinHTTP):

Uses the WinHTTP API instead of WinINet for potentially better robustness or different interaction with firewalls/proxies.

GetPublicIPAddress uses WinHTTP to connect to api.ipify.org.

SendSimpleTelegramPing uses WinHTTP to send a basic GET request to the Telegram sendMessage endpoint. It constructs the URL using the plaintext Bot Token and Chat ID.

SendFileToTelegram uses WinHTTP to send a multipart/form-data POST request containing the keystroke log file. It also constructs the URL and body using the plaintext Bot Token and Chat ID.

Unique ID & Info Gathering: GenerateTargetUniqueID (using CoCreateGuid) and GetCurrentUsername get basic target info. GetPublicIPAddress fetches the external IP.

Initial Report: WinMain calls InitializeAPIs, gathers the ID/User/IP, sends a test ping, and then sends a formatted message containing this info to your Telegram bot using SendMsgToTelegram.

Keyboard Hook (LowLevelKeyboardProc): Uses SetWindowsHookExA with WH_KEYBOARD_LL to capture keystrokes system-wide. It translates key codes into readable strings, handling Shift, Caps Lock, special keys, and basic symbols.

Keystroke Buffering: Keystrokes are appended to a global string (g_keystrokeBuffer) protected by a mutex (g_bufferMutex_keystrokes) for thread safety.

Timed Sending (LogSenderWorkerThread):

Runs in a separate background thread.

Every 60 seconds (std::this_thread::sleep_for), it checks the keystroke buffer.

If the buffer isn't empty, it writes the contents to a temporary file (using GetTemporaryLogFilePath for a somewhat randomized name in the temp directory).

It then calls SendFileToTelegram to upload this temporary file to your bot.

Finally, it deletes the temporary file using fnDeleteFileA

How to build the exe

i used linux to build the cpp code u can use this command

''x86_64-w64-mingw32-g++ -o Xanthorox_keylogger.exe keylogger.cpp -lws2_32 -lole32 -lrpcrt4 -lwinhttp -static-libgcc -static-libstdc++ -s -Wl,-subsystem,windows -std=c++17 -pthread -static''

Note = make sure your compiler is properly adjusted or else u will get problem with the build , not on the code but from the compiler

About

An fully weaponized advanced featured windows keylogger made by Xanthorox AI, Fully undetectable by defender , uses advanced methods Very easy to use and compact

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages