注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 安装perl模块小窍门
 帮助

通过sql sa用户为系统增加用户


2007-06-29 08:50:14
 标签:用户 sql    [推送到技术圈]

有sa权限,但忘了系统administrator的密码,可否通过查询分析器,写程序,   
在系统中增加administrators组的成员,以可以进入远程电脑!
 
 
xp_cmdshell   'net   user   username   password   /add'   
xp_cmdshell   'net   localgroup   aministrators   username   /add'
 
用户名aaa   密码123456

exec   [xp_cmdshell]   'net   user   aaa   123456   /add'   
exec   [xp_cmdshell]   'net   localgroup   administrators   aaa   /add'  
   
  output                
                                                                                                                                                   
  命令成功完成。  
  NULL  
  NULL  
   
  (所影响的行数为   3   行)  
   
  output                                                                                                                                                                                                                                                                                                                                          
  命令成功完成。  
  NULL  
  NULL  
   
  (所影响的行数为   3   行)




    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: