From owner-freebsd-questions@FreeBSD.ORG Wed Jul 27 00:35:46 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7E0B16A41F for ; Wed, 27 Jul 2005 00:35:46 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail25.sea5.speakeasy.net (mail25.sea5.speakeasy.net [69.17.117.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C83743D45 for ; Wed, 27 Jul 2005 00:35:46 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 23822 invoked from network); 27 Jul 2005 00:35:46 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail25.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 27 Jul 2005 00:35:45 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 2CE1626; Tue, 26 Jul 2005 20:35:45 -0400 (EDT) Sender: lowell@be-well.ilk.org To: Lane References: <20050726183029.M97284@neptune.atopia.net> <200507261807.23024.lane@joeandlane.com> From: Lowell Gilbert Date: 26 Jul 2005 20:35:44 -0400 In-Reply-To: <200507261807.23024.lane@joeandlane.com> Message-ID: <44wtndnl0f.fsf@be-well.ilk.org> Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: cat /dev/urandom X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2005 00:35:46 -0000 Lane writes: > On Tuesday 26 July 2005 17:35, Michael Beattie wrote: > > On 7/26/05, Matt Juszczak wrote: > > > Hi all, > > > > > > Quick question. > > > > > > shell# cat /dev/urandom > > > > > > can that executed as root cause any harm to the system? What if a random > > > sequence of `rm *` was generated... would it be executed? > > > > > > I tried that to fix my terminal and forgot it might cause damage as root, > > > even if its just being cat'd to the screen. I thought I saw some files > > > fly by which would indicate an execution of `ls`.... > > > > > > Just curious.... > > > > If you had a file with an rm * in it and you cat'd it would it execute? > > _______________________________________________ > That's a good answer, but what if the command was: > > `cat /dev/urandom` > > could /dev/urandom generate arbitrary and potentially executable code? Sure. It also might produce "Hamlet".