From owner-freebsd-questions@FreeBSD.ORG Tue Jun 17 14:30:07 2003 Return-Path: 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 E233F37B401 for ; Tue, 17 Jun 2003 14:30:07 -0700 (PDT) Received: from adsl-64-161-78-226.dsl.lsan03.pacbell.net (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 3064643F85 for ; Tue, 17 Jun 2003 14:30:07 -0700 (PDT) (envelope-from oremanj@adsl-64-161-78-226.dsl.lsan03.pacbell.net) Received: (qmail 95334 invoked by uid 1001); 17 Jun 2003 21:32:28 -0000 Date: Tue, 17 Jun 2003 14:32:28 -0700 From: Joshua Oreman To: Marc Wiz Message-ID: <20030617213228.GA95305@webserver.get-linux.org> References: <200306171101.35080.rohitvis@rogers.com> <3EEF6CDD.7010109@mac.com> <20030617193640.GB6281@freshaire.wiz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030617193640.GB6281@freshaire.wiz.com> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: Keylogger For FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2003 21:30:08 -0000 On Tue, Jun 17, 2003 at 02:36:40PM -0500 or thereabouts, Marc Wiz seemed to write: > On Tue, Jun 17, 2003 at 03:32:45PM -0400, Chuck Swiger wrote: > > Rohit wrote: > > >I'd like to write a keylogger for my freebsd box. Something that would log > > >all keyboard activity on my pc. I have peeked at the keyboard files in the > > >kernel. However, if someone could point me int the right direction... it > > >will be greatly appreciated. > > > > At the shell level, something like the history command or 'script' is > > probably more useful. However, for a starting point maybe see > > /usr/src/sys/dev/kbd. > > In one of the older BSD (as in from UC Berkeley) releases (I think > it was 4.2) there was an ioctl that would let you spy on a tty. I > don't remember the ioctl params or name of the ioctl parm but it > was there. > > If it's not in the current source (FreeBSD source) you hopefully > should be able to find the BSD sources somewhere on the net. man 8 watch -- Josh > > Marc > > -- > Marc Wiz > marc@wiz.com > Yes, that really is my last name. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"