Vulnerability Development mailing list archives

Re: dumb idea(s) (tm)


From: matias <s0t4ipv6 () shellcode com ar>
Date: Mon, 2 Jul 2001 10:55:16 -0400 (ART)

On Fri, 29 Jun 2001, Crist Clark wrote:

mother:/tmp$ touch bighonkin.file
mother:/tmp$ ls -l bighonkin.file
-rw-r-----   1 s0t4ipv6 users           0 Jul  2 10:53 bighonkin.file
mother:/tmp$ df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda2              1984044   1606720    274912  85% /
/dev/hdb1              2371820   1456960    794376  65% /opt
mother:/tmp$ dd if=/dev/zero of=bighonkin.file count=1 seek=1000m
dd: invalid number `1000m'
mother:/tmp$


any idea? my system is slackware 7.0.

thx

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


================================================================
Matias Sedalo.______________________http://www.shellcode.com.ar/


Current thread: