mirror of
https://github.com/ersinkoc/RDP-Security.git
synced 2026-04-26 06:35:52 +03:00
No description
| src | ||
| tools/Install | ||
| WebPortal | ||
| .cursorrules | ||
| .gitignore | ||
| appsettings.json | ||
| ARCHITECTURE.md | ||
| CODE_GUIDELINES.md | ||
| FILESTRUCTURE.md | ||
| install.ps1 | ||
| install_log.txt | ||
| PROJECT.md | ||
| RDP_Security.sln | ||
| README.md | ||
RDP Security Agent
A Windows service that provides secure RDP access management through a REST API.
Features
- RDP service management (enable/disable)
- RDP port configuration
- Active session monitoring
- IP whitelist management
- Secure API with key authentication
- Automatic service startup
- Comprehensive logging
Installation
- Download the latest release
- Extract the files to a temporary location
- Open PowerShell as Administrator
- Navigate to the extracted folder
- Run the installation script:
.\tools\Install\install.ps1
The installer will:
- Create necessary directories
- Install the Windows service
- Configure firewall rules
- Generate an API key
- Start the service
Uninstallation
- Open PowerShell as Administrator
- Navigate to the installation folder
- Run the uninstallation script:
.\tools\Install\uninstall.ps1
API Documentation
Authentication
All API requests require an API key to be sent in the X-API-Key header.
Endpoints
RDP Management
GET /api/rdp/status- Get RDP service statusPOST /api/rdp/enable- Enable RDP servicePOST /api/rdp/disable- Disable RDP servicePUT /api/rdp/port/{port}- Change RDP port
Session Management
GET /api/sessions- List active sessionsGET /api/sessions/{id}- Get session detailsPOST /api/sessions/{id}/terminate- Terminate a session
Whitelist Management
GET /api/whitelist- List whitelisted IPsPOST /api/whitelist- Add IP to whitelistDELETE /api/whitelist/{ip}- Remove IP from whitelist
Configuration
The service configuration is stored in C:\ProgramData\RdpAgent\config.json.
Logs
Service logs are stored in C:\ProgramData\RdpAgent\logs\.
Security Considerations
- The service runs under the NETWORK SERVICE account
- API access is restricted by API key authentication
- All sensitive data is encrypted
- The service maintains an audit log of all operations
Support
For issues and feature requests, please create an issue in the repository.