中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-05 00:11
48,038 topics / 350,123 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » [Discussion] How to use batch files to repair infected files
Printable Version  1,065 / 10
Floor1 chinaman Posted 2007-05-02 18:05
新手上路 Posts 4 Credits 10
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?
Floor2 flyinspace Posted 2007-05-02 18:52
银牌会员 Posts 517 Credits 1,206
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..
Floor3 chinaman Posted 2007-05-02 20:32
新手上路 Posts 4 Credits 10
So what would the general batch-file approach be?
Floor4 slore Posted 2007-05-02 20:46
铂金会员 Posts 2,478 Credits 5,212
Open the file in binary mode.... things like the file header... just give up on P.
Floor5 chinaman Posted 2007-05-04 08:39
新手上路 Posts 4 Credits 10
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)?
Floor6 doscnceo Posted 2007-06-13 09:11
新手上路 Posts 3 Credits 6
What an expert. You can tell from the idea he was born in the 70s and only knows how to use DOS.
Floor7 dikex Posted 2007-06-13 10:22
高级用户 Posts 366 Credits 788
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
Floor8 zh159 Posted 2007-06-13 11:03
金牌会员 Posts 1,467 Credits 3,687
Floor9 qinbuer Posted 2007-06-13 12:04
高级用户 Posts 228 Credits 512
I admire the subject line in the post above ```
Floor10 qaz1223 Posted 2007-06-14 03:03
新手上路 Posts 12 Credits 13
Watching this...
Floor11 zh159 Posted 2007-06-14 08:28
金牌会员 Posts 1,467 Credits 3,687
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?
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023