Skip to content
talha-asiffPublic

About

A simple harmless Remote Access Trojan (RAT) example. made with C/C++ (Socket programming) - Controlling windows clients by sending simple string payloads

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

Repository files navigation

NetSock Windows Controller

NetSock is a lightweight, C++ console-based remote administration tool (RAT) for Windows. It utilizes the Winsock2 API to establish a multi-client TCP server, allowing an administrator to send system-level commands, display message alerts, restart/shutdown systems, and launch applications on multiple connected client machines simultaneously or individually.


C C++ Windows Sockets

🚀 Features

  • Multi-Client Control: Manages multiple concurrent connections (tested up to 100).
  • Interactive Console UI: Clean, keyboard-navigable menu using arrow keys and the Enter key.
  • Global & Targeted Actions:
    • Broadcast Alert: Pop up a custom message box on all connected devices.
    • Targeted Alert: Send a message to a specific device using its unique ID.
    • Remote Execution: Launch standard Windows apps (Notepad, Calculator, Chrome, etc.) or run a file using a custom file path.
    • Power Management: Force shutdown or restart all connected devices instantly.

🛠️ Prerequisites & Requirements

Since this program heavily relies on Windows-specific APIs, it is only compatible with Windows environments.

  • Operating System: Windows 10 / 11
  • Compiler: GCC / MinGW (g++) or MSVC (Microsoft Visual Studio)
  • Required Library: ws2_32 (Windows Sockets library)

💻 Compilation & Setup

To compile this project, you must link the ws2_32 library. Here is how you can compile it using different environments:

Option 1: Command Line (MinGW / g++)

Open your command prompt or terminal and run:

g++ main.cpp -o main.exe -lws2_32

⚠️ Important Notes & Security Disclaimer [!WARNING]

Educational & Authorized Use Only: This tool is designed strictly for educational purposes, local network management, or authorized administrative tasks. Using this tool on machines without explicit permission from the owner is illegal and violates computer safety laws. The author is not responsible for any misuse or damage caused by this program.

Troubleshooting App Launches When launching custom paths, ensure the directory path exists on the client machine.

Standard commands (like notepad or calc) work out of the box because they exist in the Windows System32 path variables. For commercial apps like Chrome or Office, they will only launch if they are installed in their default installation directories on the client computer.

About

A simple harmless Remote Access Trojan (RAT) example. made with C/C++ (Socket programming) - Controlling windows clients by sending simple string payloads

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages