From owner-freebsd-bugs@FreeBSD.ORG Mon Feb 18 15:07:38 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 CFE1E16A418; Mon, 18 Feb 2008 15:07:38 +0000 (UTC) (envelope-from filter@mail.radiokom.kr.ua) Received: from mail.radiokom.kr.ua (smtp.radiokom.kr.ua [193.17.174.11]) by mx1.freebsd.org (Postfix) with ESMTP id 45D7513C46E; Mon, 18 Feb 2008 15:07:37 +0000 (UTC) (envelope-from filter@mail.radiokom.kr.ua) Received: by mail.radiokom.kr.ua (Postfix, from userid 1003) id 4E5F81D09A; Mon, 18 Feb 2008 17:07:36 +0200 (EET) X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on shayba.homenet.kr.ua X-Spam-Level: ** X-Spam-Status: No, score=2.0 required=6.0 tests=RATWR8_MESSID autolearn=disabled version=3.1.8 Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mail.radiokom.kr.ua (Postfix) with ESMTP id 6AADC1CFDA for ; Mon, 18 Feb 2008 17:07:23 +0200 (EET) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 8F5B619CEC; Mon, 18 Feb 2008 15:06:49 +0000 (UTC) (envelope-from owner-freebsd-security@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 7D10316A481; Mon, 18 Feb 2008 15:06:49 +0000 (UTC) (envelope-from owner-freebsd-security@freebsd.org) Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAA9516A49E for ; Mon, 18 Feb 2008 14:13:57 +0000 (UTC) (envelope-from speedtoys.racing@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.227]) by mx1.freebsd.org (Postfix) with ESMTP id 513E313C4D5 for ; Mon, 18 Feb 2008 14:13:56 +0000 (UTC) (envelope-from speedtoys.racing@gmail.com) Received: by qb-out-0506.google.com with SMTP id a10so1634968qbd.7 for ; Mon, 18 Feb 2008 06:13:56 -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 X-Mailman-Approved-At: Mon, 18 Feb 2008 15:06:44 +0000 X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-security@freebsd.org Errors-To: owner-freebsd-security@freebsd.org 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 List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2008 15:07:39 -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" _______________________________________________ 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"