!c99Shell v. 1.0 pre-release build #16!

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/usr/sbin/   drwxr-xr-x
Free 52.3 GB of 127.8 GB (40.92%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     foomatic-getpjloptions (2.09 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/bin/bash
#
# Polls PJL options from local or network printers
#

#
# Till Kamppeter (till.kamppeter@gmx.net)
#
# Copyright 2001 Till Kamppeter
#
# This software may be freely redistributed under the terms of the GNU
# General Public License (http://www.gnu.org/).
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#   Modifed by Patrick Powell 
#   - error messages, fixed problem with netcat
#   - increased timeout, added a job end to sequence
#     as this was needed by a couple of printers

NC=/usr/bin/nc
CAT=/bin/cat
PRINTF=/usr/bin/printf
PERL=/usr/bin/perl

usage(){
    cat <
	   foomatic-getpjloptions  

   :   Device where a local printer is connected to
			   examples: /dev/lp0, /dev/usb/lp0
			   Have your parallel port in EPP/bi-directional mode
			   (see your BIOS settings).
   : Host name or IP of a network printer (HP JetDirect,
			   Socket, ...)
   :     Port of your network printer.
echo
   Uni-directional protocols as remote LPD are not supported.

   The option list is sent to standard output.
EOF
	exit 1;
}

case "$1" in
	-* ) usage;;
	""	) usage;;
esac

    # We have at least one argument, so do the work
    (
	# PJL commands to request the printer information
	$PRINTF "\033%%-12345X"
	$PRINTF "@PJL\r\n"
	$PRINTF "@PJL INFO VARIABLES\r\n"
	$PRINTF "@PJL INFO ID\r\n"
	$PRINTF "@PJL INFO CONFIG\r\n"
	$PRINTF "\033%%-12345X"
    ) 
bool(false)

:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0052 ]--