From owner-freebsd-questions@FreeBSD.ORG Tue Jul 26 23:18:47 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 69BE616A41F for ; Tue, 26 Jul 2005 23:18:47 +0000 (GMT) (envelope-from mtbeedee@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id F066843D46 for ; Tue, 26 Jul 2005 23:18:46 +0000 (GMT) (envelope-from mtbeedee@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so52864wra for ; Tue, 26 Jul 2005 16:18:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZtC7Ly1pmMSPnkQTSijEpN6VrXxENx4DnApp7oFdKCPqk4LXTnKQZf8ctawRFL00Bn/RU3WDxGqBiSzSOwhS0rSPnD0+O7uAUAYIF7vIxOqK4wD9TFmjOvAPfibXx0JCVLaxjwgDvbiiItWiHSpfHatSJXW6r47Oq2Lgw/vC8pE= Received: by 10.54.8.60 with SMTP id 60mr99587wrh; Tue, 26 Jul 2005 16:18:46 -0700 (PDT) Received: by 10.54.159.14 with HTTP; Tue, 26 Jul 2005 16:18:46 -0700 (PDT) Message-ID: Date: Tue, 26 Jul 2005 19:18:46 -0400 From: Michael Beattie To: Lane In-Reply-To: <200507261807.23024.lane@joeandlane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050726183029.M97284@neptune.atopia.net> <200507261807.23024.lane@joeandlane.com> Cc: freebsd-questions@freebsd.org Subject: Re: cat /dev/urandom X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Michael Beattie List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jul 2005 23:18:47 -0000 `cat /dev/urandom` will do just that... it's not also going to run code from within that output. On 7/26/05, Lane wrote: > 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 ra= ndom > > > sequence of `rm *` was generated... would it be executed? > > > > > > I tried that to fix my terminal and forgot it might cause damage as r= oot, > > > even if its just being cat'd to the screen. I thought I saw some fil= es > > > 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: >=20 > `cat /dev/urandom` >=20 > could /dev/urandom generate arbitrary and potentially executable code? >=20 > I'm curious, too >=20 > lane > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" >