From owner-freebsd-bugs@FreeBSD.ORG Mon Feb 18 14:12:27 2008 Return-Path: Delivered-To: FreeBSD-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E06BB16A476 for ; Mon, 18 Feb 2008 14:12:27 +0000 (UTC) (envelope-from speedtoys.racing@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.237]) by mx1.freebsd.org (Postfix) with ESMTP id 87D4413C4F2 for ; Mon, 18 Feb 2008 14:12:27 +0000 (UTC) (envelope-from speedtoys.racing@gmail.com) Received: by qb-out-0506.google.com with SMTP id a10so1633998qbd.7 for ; Mon, 18 Feb 2008 06:12:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:references:message-id:from:to:in-reply-to:content-type:x-mailer:mime-version:subject:content-transfer-encoding:date:cc; bh=9bLxeBN1YR5P3J2TSpLos4itvksm2Ux1AanE2niW2bg=; b=ZOyEdss95X3i8MhsBN78Bfix8JDkL7TFMi4gMJYZ9EUIZPkyEujwimahKNvfu/IqNOGN38fjogkwzGfq4ywdYDY+5ieboOoWspZCZgkd4yhDEKMEqn8uAfIAIkPBGw/xp91bDgLf4mcd+dThBCKcxBmeiUjytb45XtIO5EnwCgQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=references:message-id:from:to:in-reply-to:content-type:x-mailer:mime-version:subject:content-transfer-encoding:date:cc; b=K8WTuo+gYNAU8BscKx9WUJ+sYcbKzVrxD9L63QBa+ggoz5AZwSDBAoRJnt5kcjoqK1gwLS8RG0+1Dc3JWgBSId99lhXsVcrKKB1Tn4I9SrI4c70JG3jGYX7THSqyBt1KufWhilFPjRl9dlaefKk8JM6FiKRPfsv+v8FPT5B5/ms= Received: by 10.110.68.10 with SMTP id q10mr3339856tia.28.1203343083226; Mon, 18 Feb 2008 05:58:03 -0800 (PST) Received: from ?10.6.146.10? ( [166.193.195.177]) by mx.google.com with ESMTPS id h18sm10024404wxd.18.2008.02.18.05.57.55 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Feb 2008 05:58:01 -0800 (PST) References: <47B90868.7000900@electron-tube.net> <86odae5rgr.fsf@ds4.des.no> Message-Id: From: Speedtoys To: Kurt Buff In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes X-Mailer: iPhone Mail (4A93) Mime-Version: 1.0 (iPhone Mail 4A93) Content-Transfer-Encoding: quoted-printable Date: Mon, 18 Feb 2008 08:57:46 -0500 Cc: "freebsd-fs@freebsd.org" , =?UTF-8?Q?Dag-Erling_Sm=C3=B8rgrav?= , "FreeBSD-bugs@freebsd.org" , "freebsd-stable@freebsd.org" , "freebsd-security@freebsd.org" Subject: Re: How to take down a system to the point of requiring a newfs with one line of C (userland) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2008 14:12:28 -0000 Time for the idiot(proof) function call. Got brakes? =3D=3D=3D=3D=3D=3D 25hrs or one season with one pad set is possible. Save money and pit =20= time, compromise nothing. Ask how. TXT or Tone: 8414546712@txt.att.net http://www.speedtoys.com On Feb 18, 2008, at 8:27 AM, "Kurt Buff" wrote: > Patient: Doctor, it hurts when I do this! > > Doctor: Don't do that... > > On Feb 18, 2008 1:23 PM, Dag-Erling Sm=C3=B8rgrav wrote: >> Jim Bryant writes: >>> #include >>> #include >>> >>> int main(int argc, char **argv) { int i; char buf[1024]; bzero=20 >>> (buf, 1024); for(i =3D 0; i < 10000; i++) { sprintf(buf, "touch %s%=20= >>> 05d\n", argv[1], i); system((const char *)buf);} return(0);} >> >> Subject should be "how to take down a system [...] with three lines =20= >> of >> badly written C, provided you have root privileges already and are =20= >> too >> lazy to just dd if=3D/dev/zero of=3D/dev/ad0s1 count=3D100", which = would >> accomplish the job much faster. >> >> Purely in the interest of showing off, here is my version. It is 81 >> bytes shorter than yours, it is valid C99 with POSIX extensions =20 >> (yours >> is not), and it produces 11,450 files in about 0.2% of the time yours >> takes to produce 10,000. >> >> #include >> #define b(i,v) for(int v=3D48;v<127;++v){f[i]=3Dv; >> #define a(i) b(i,v##i) >> int main(void){char f[5]=3D{'/'};a(1)a(2)a(3)truncate(f,0);}}}} >> >> DES >> -- >> Dag-Erling Sm=C3=B8rgrav - des@des.no >> >> _______________________________________________ >> freebsd-security@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-security >> To unsubscribe, send any mail to = "freebsd-security-unsubscribe@freebsd.org=20 >> " >> > _______________________________________________ > freebsd-security@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-security > To unsubscribe, send any mail to = "freebsd-security-unsubscribe@freebsd.org=20 > " > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"