This repository has been archived on 2025-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
lanScan3/rdp.php
2024-10-07 20:33:03 +02:00

11 lines
312 B
PHP

<?php
$host = filter_input(INPUT_GET, 'v', FILTER_VALIDATE_DOMAIN) ?: filter_input(INPUT_GET, 'v', FILTER_VALIDATE_IP);
if (!$host) {
exit();
}
header('Content-Disposition: attachment; filename='.str_replace(':', '_', $host).'.rdp');
header('Content-Type: application/rdp');
echo "full address:s:$host\n";