POV-Ray : Newsgroups : povray.general : Writing binary files with POV script : Re: Writing binary files with POV script Server Time
4 Aug 2024 08:25:24 EDT (-0400)
  Re: Writing binary files with POV script  
From: Warp
Date: 24 Aug 2003 20:08:08
Message: <3f49535d@news.povray.org>
nospam <Pet### [at] nymaliasnetalmost> wrote:
> However, it might is best that vinary I/O not be added.
> Consider the ability to have a pov-script that in turn writes
> a (binary) .exe file containing a virus?  Or what is to stop
> povray from overwriting the system password file, or
> command.com?

  What stops it from doing it now?
  You can easily make a POV-script which overwrites c:\autoexec.bat with
some nasty command. You can make one which overwrites important system
files with 0-sized files (or containing whatever garbage you like).
  Support for binary writing does not add any additional danger which is
not there already.

  And the answer to the question: I/O restrictions.
  (In NT-based and Unix-based systems the OS will probably not allow
overwriting such files, but in older Windows systems it's very possible.)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.