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-05 01:04
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Discussion] How to use batch files to repair infected files View 1,066 Replies 10
Original Poster Posted 2007-05-02 18:05 ·  中国 安徽 合肥 电信
新手上路
Credits 10
Posts 4
Joined 2007-05-02 16:31
19-year member
UID 87281
Gender Male
Status Offline
Viruses like 威金 and Panda Burning Incense infect executable files across the whole disk, but quite a few of the techniques they use are just bundling. How can batch files be used to restore these infected files?
Floor 2 Posted 2007-05-02 18:52 ·  中国 广东 广州 海珠区 电信
银牌会员
★★★
Credits 1,206
Posts 517
Joined 2007-03-25 01:18
19-year member
UID 82819
Gender Male
Status Offline
Geez, using batch files.....

Never mind whether it can be done or not, just waiting for it would take forever..

Might as well write one in C++ instead..
知,不觉多。不知,乃求知
Floor 3 Posted 2007-05-02 20:32 ·  中国 安徽 合肥 电信
新手上路
Credits 10
Posts 4
Joined 2007-05-02 16:31
19-year member
UID 87281
Gender Male
Status Offline
So what would the general batch-file approach be?
Floor 4 Posted 2007-05-02 20:46 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Open the file in binary mode.... things like the file header... just give up on P.
Floor 5 Posted 2007-05-04 08:39 ·  中国 安徽 合肥 电信
新手上路
Credits 10
Posts 4
Joined 2007-05-02 16:31
19-year member
UID 87281
Gender Male
Status Offline
Then...... let's try a different idea:
For many variants like 威金, they drop one or several virus files into the system folder. If we create a folder with the same name in the same location and set it with special attributes (so it can't be deleted), then run those infected files, they should be restored. So, how can I use a batch file to run files across the whole disk (and then immediately terminate their processes)?
Floor 6 Posted 2007-06-13 09:11 ·  中国 山东 济南 联通
新手上路
Credits 6
Posts 3
Joined 2007-06-13 08:00
19-year member
UID 91140
Gender Male
Status Offline
What an expert. You can tell from the idea he was born in the 70s and only knows how to use DOS.
专门学精典DOS行
Floor 7 Posted 2007-06-13 10:22 ·  中国 广东 广州 天河区 电信
高级用户
★★★
潜水修练批处理
Credits 788
Posts 366
Joined 2006-12-31 02:43
19-year member
UID 75048
Gender Male
Status Offline
Originally posted by chinaman at 2007-5-4 08:39 AM:
Then...... let's try a different idea:
For many variants like 威金, they drop one or several virus files into the system folder. If we create a folder with the same name in the same location and set it with special attributes (purpose ...


There is a similar method, which is to use image hijacking IFEO so that the dropped virus file cannot run, thereby recovering the original file;

But this method is ineffective against some variants, because when an exe infected by those variants runs, it will only drop the virus file and will not also drop the original file. I've also seen some that additionally drop a batch file which deletes the dropped original file after it runs...

So this method is not very broadly applicable
正在潜水修练的批处理小白
Floor 8 Posted 2007-06-13 11:03 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
Floor 9 Posted 2007-06-13 12:04 ·  中国 广东 佛山 电信
高级用户
★★
我思故我在
Credits 512
Posts 228
Joined 2007-01-21 10:31
19-year member
UID 77225
Gender Male
Status Offline
I admire the subject line in the post above ```
我确实是只菜鸟,而且这里X人太多,所以我不敢装X。谁要再说我装X,我就XXOO他。
Floor 10 Posted 2007-06-14 03:03 ·  中国 广西 南宁 电信
新手上路
Credits 13
Posts 12
Joined 2007-06-14 01:54
19-year member
UID 91247
Gender Male
Status Offline
Watching this...
Floor 11 Posted 2007-06-14 08:28 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
Originally posted by qaz1223 at 2007-6-14 03:03:
Watching this...

Watching how to use batch files to repair a space station hit by space junk?
Forum Jump: