[TUHS] Shell control through external commands
Corey Lindsly
corey at lod.com
Fri Jul 15 08:47:23 AEST 2016
>
> At one time they were shell scripts e.g. "exit 0" for "true".
>
> --
> Dave Horsfall DTM (VK2KFU) "Those who don't understand security will suffer."
>
Indeed. Here's what they look like in Solaris 8 .. /usr/bin/true is just
comments.
lod# cat /usr/bin/true
#!/usr/bin/sh
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
# All Rights Reserved
# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.
#ident "@(#)true.sh 1.6 93/01/11 SMI" /* SVr4.0 1.4 */
lod# cat /usr/bin/false
#!/usr/bin/sh
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
# All Rights Reserved
# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.
#ident "@(#)false.sh 1.6 93/01/11 SMI" /* SVr4.0 1.3 */
exit 255
lod# uname -a
SunOS lod 5.8 Generic_108528-05 sun4u sparc SUNW,UltraAX-i2
lod#
--corey
More information about the TUHS
mailing list