Vulnerability Development mailing list archives

Re: dumb idea(s) (tm)


From: "Crist Clark" <crist.clark () globalstar com>
Date: Fri, 29 Jun 2001 11:48:16 -0700

Doru Petrescu wrote:

in regards to "Re: Antivirus scanner DoS with zip archives" by "Aycan
Irican <aycan () mars prosoft com tr>"

let's analize this idea some guy had ... he wanted to create a long file
without using disk space to store it ...

$> perl -e 'print "A"x1000000000' | gzip -f | dd of=file1
        Out of memory!
        0+1 records in
        0+1 records out

first, consider removing 'dd' ... try like this:

I think dd(1) is the easiest way to do this,

  $ touch bighonkin.file &&
  $ ls -l bighonkin.file
  -rw-r--r--  1 cclark  mis  0 Jun 29 11:45 bighonkin.file
  $ df .
  Filesystem   1K-blocks     Used    Avail Capacity  Mounted on
  /dev/ad0s2e    2421089  1447713   779689    65%    /home
  $ dd if=/dev/zero of=bighonkin.file count=1 seek=1000m
  1+0 records in
  1+0 records out
  512 bytes transferred in 0.000462 secs (1108093 bytes/sec)
  $ ls -l bighonkin.file
  -rw-r--r--  1 cclark  mis  536870912512 Jun 29 11:45 bighonkin.file
  $ df .
  Filesystem   1K-blocks     Used    Avail Capacity  Mounted on
  /dev/ad0s2e    2421089  1447753   779649    65%    /home

-- 
Crist J. Clark                                Network Security Engineer
crist.clark () globalstar com                    Globalstar, L.P.
(408) 933-4387                                FAX: (408) 933-4926

The information contained in this e-mail message is confidential,
intended only for the use of the individual or entity named above.  If
the reader of this e-mail is not the intended recipient, or the employee
or agent responsible to deliver it to the intended recipient, you are
hereby notified that any review, dissemination, distribution or copying
of this communication is strictly prohibited.  If you have received this
e-mail in error, please contact postmaster () globalstar com


Current thread: