TIP: Click on subject to list as thread! ANSI
echo: 4dos
to: Jasen Betts
from: Laurent Jumet
date: 1998-10-05 10:23:54
subject: Re^3: Fill a file...

Hello Jasen!

Saturday October 03 1998 06:13, Jasen Betts wrote to LAURENT JUMET:

LJ>>    Purpose is to fill a file with a string, without deleting it or
LJ>> reducing it to zero.

JB> actually, try this (it uses debug):

JB> :: wipe.btm
JB> setlocal
JB> set x=%{at}filesize[%1] %+ set y=
JB> do while %x gt 1
JB> set y=%{at}instr[%{at}eval[ %x %% 16],1,0123456789ABCDEF]%y%
JB> set x=%{at}eval[ %x / 16 ]
JB> enddo
JB> set y=00000000%y
JB> set x=%{at}instr[7,-4,%y] %+ set y=%{at}instr[3,-4,%y]
JB> echo rbx%=r%x%%=rrcx%=r%y%=rn%1%=rw%=rq%|debug

JB> it overwrites the file with the contents of "lower" memory which
JB> shouldn't contain any sensitive information.

    This is a very good work, indeed.
    It's very fast, and the whole file is filled whith non-sensitive data.
    The next time windows will be launched, it will say "Swapfile is
corrupted" but I only need to go to the control panel / virtual
memory, read and type the size again and click OK, that's enough, no need
to really delete/create the swapfile.

Laurent Jumet

--- KeyID: 0xB9973375   GoldED/386 3.00.Beta5+
* Origin: Point de Chat, Liege, BELGIUM (2:293/4005.328)
SEEN-BY: 396/1 632/0 371 633/260 267 270 371 635/506 728 639/252
@PATH: 293/4005 291/709 3615/50 396/1 633/260 635/506 728 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™.