Делаем PortKnocking клиента
Под Windows штатными средствами нельзя сделать PortKnocking (PowerShell я не осилил).
1. Скопировать на комп curl или wget и написать bat`ник.
curl.exe --connect-timeout 1 http://domain.example.net:12345 curl.exe --connect-timeout 1 http://domain.example.net:54321 curl.exe --connect-timeout 1 http://domain.example.net:33400 cmdkey /generic:domain.example.net /user:DOMAIN\ewgenik start mstsc /v:domain.example.net:56789
2. Скачать готовый клиент под Windows:
knock.exe domain.example.net 12345 54321 33400
3. Создать страничку с javascript и опубликовать ее на общедоступном вебсервере под паролем:
<!DOCTYPE html>
<html>
<body onload="pk('https', 'domain.example.net', '12345', '54321', '33400')">
<div id="demo">
<h2>Hello!</h2>
<button type="button" onclick="pk('https', 'domain.example.net', '12345', '54321', '33400')">send</button>
</div>
<script>
function pk(prot, url, knock1, knock2, knock3) {
var xhttp = new XMLHttpRequest();
xhttp.open("GET", prot + "://" + url + ":" + knock1, true); xhttp.send();
xhttp.open("GET", prot + "://" + url + ":" + knock2, true); xhttp.send();
xhttp.open("GET", prot + "://" + url + ":" + knock3, true); xhttp.send();
}
</script>
</body>
</html>