<Location />
AuthType GSSAPI
AuthName "GSSAPI Single Sign On Login"
GssapiCredStore keytab:/etc/httpd/key.keytab
Require valid-user
Require ip 192.168.10.20
</Location>
mshta javascript:new(ActiveXObject)('WScript.Shell').Run('"'+decodeURIComponent(escape('%1'.substr(9)))+'"'),window.close()
SELECT * FROM table t1
LEFT JOIN (SELECT MAX(id) id
FROM table
GROUP BY computer_name, hash) t2
ON t1.id = t2.id
WHERE t2.id IS NULL
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\runapp]
"URL Protocol"=""
@="URL:Universal run app"
[HKEY_CURRENT_USER\SOFTWARE\Classes\runapp\shell]
[HKEY_CURRENT_USER\SOFTWARE\Classes\runapp\shell\open]
[HKEY_CURRENT_USER\SOFTWARE\Classes\runapp\shell\open\command]
@="mshta javascript:new(ActiveXObject)('WScript.Shell').Run(decodeURI('%1'.substr(7))),window.close()"
<a href="runapp:notepad C:\\Users\\User\\Desktop\\test.txt">Открыть test.txt</a>
<a href="http://example.com" class="parent-window-link">example</a>
<a href="http://google.com" class="parent-window-link">google</a>
document.addEventListener('click', function(evt) {
if (evt.target.matches('a.parent-window-link')) {
window.top.location = evt.target.href // <-- all magic here
return false
}
})
@echo off
rem Имя компьютера из переменной окружения COMPUTERNAME
set fullName=%COMPUTERNAME%
rem echo %fullName%
rem Первые три симовла имени
set subName=%fullName:~0,3%
rem echo %subName%
rem Если имя начинается на 001 вывести true иначе false
IF %subName%==001 (echo true) ELSE (echo false)
rem Если имя начинается на 002 вывести true иначе false
IF %subName%==002 (echo true) ELSE (echo false)