tracker - using recursive "finger" to track down users
tracker [-v]user@host
Source is available at http://www.cs.columbia.edu/~hgs/tracker/src/
This should be compilable for all Unix platforms.
Starting from an initial user and host name, the program searches for the most recent sightings of the user, making use of finger output containing idle time and which host the user logged in from.
Output is of the form
host where idle loginwhere host designates the best guess as to where the user is logged on, where is C if the user is at the console (this doesn't always work), the idle time in minutes and the login time of the user.Difficulties:
- Cannot know time zone of remote system, so comparing login times is not possible.
- Since the remote system does not track the name of the user on the telnet client system, this only works if a user logs in under his own name.
- Some systems abbreviate the remote (login) host name, making tracing difficult.
It understands the following forms of finger output:
On since D on T from H I Idle Time Last seen at H on D Login Name TTY Idle When Where user Real Name T h:m Day HH:MM host (...) user name Last login D on H from T (H)
- -v
- Enable tracing output.
All but the last line is tracing output.$ tracker -v hgs@tune.cs.columbia.edu tune.cs.columbia.edu: from erlang.cs.columbia.edu, idle Inf min., since Wed Aug 13 16:38:00 1997 erlang.cs.columbia.edu: from (local), idle 9.8167 min., since Fri Jun 6 08:37:55 1997 erlang.cs.columbia.edu: from (local), idle -1 min., since Fri Jun 6 08:37:55 1997 erlang.cs.columbia.edu: from (local), idle 518 min., since Fri Jun 6 08:37:55 1997 erlang.cs.columbia.edu: from (local), idle -1 min., since Fri Jun 6 08:37:55 1997 erlang.cs.columbia.edu: from (local), idle 9.8167 min., since Fri Jun 6 08:37:55 1997 ... erlang.cs.columbia.edu: from (local), idle -1 min., since Fri Jun 6 08:37:55 1997 erlang.cs.columbia.edu: from (local), idle -1 min., since Fri Jun 6 08:37:55 1997 erlang.cs.columbia.edu: from (local), idle 518 min., since Fri Jun 6 08:37:55 1997 erlang.cs.columbia.edu - 9.8 Fri Jun 6 08:37:55 1997
aliases ishere, lswhod, namemapper,
Henning Schulzrinne, Columbia University
Copyright 1997 by Columbia University; all rights reserved
Permission to use, copy, modify, and distribute this software and its documentation for research and educational purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that the copyright notice and warranty disclaimer appear in supporting documentation, and that the names of the copyright holders or any of their entities not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Use of this software in whole or in parts for direct commercial advantage requires explicit prior permission.
The copyright holders disclaim all warranties with regard to this software, including all implied warranties of merchantability and fitness. In no event shall the copyright holders be liable for any special, indirect or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortuous action, arising out of or in connection with the use or performance of this software.