!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\oracle\product\10.2.0\client_2\OPatch\   drwxrwxrwx
Free 4.98 GB of 239.26 GB (2.08%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     opatch.pl (2.23 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/local/bin/perl

# $Header: opatch.pl 29-jul-2004.04:23:51 shgangul Exp $
#
# opatch.pl

# Copyright (c) 2004, Oracle. All rights reserved.  
#
#    NAME
#      opatch.pl - <one-line expansion of the name>
#
#    DESCRIPTION
#      A wrapper perl script to invoke OPatch 10.2.
#
#    NOTES
#      Works only in -silent or -force mode
#
#    MODIFIED   (MM/DD/YY)
#    shgangul    07/29/04 - call opatch.bat instead of opatch.exe, 
#                           and parse the error code 
#    shgangul    07/27/04 - Creation

######
#
# Standard modules:
#
use English;         # Let us say "$CHILD_ERROR" instead of "$?", etc.
use strict;          # Enforce strict variables, refs, subs, etc.
use File::Basename();
use File::Spec();

my $opatchScript;
# For windows opatch script is opatch.exe and for unix like env it is opatch
if ( $OSNAME =~ m#Win# )
{
    $opatchScript = File::Spec->catfile(File::Basename::dirname($PROGRAM_NAME), "opatch.bat");
}
else
{
    $opatchScript = File::Spec->catfile(File::Basename::dirname($PROGRAM_NAME), "opatch");
}

my $systemCommand = $opatchScript;

# Invoke OPatch only in -silent or in -force mode for this script
my $isApply = 0;
my $isRollback = 0;
my $isSilent = 0;
my $isForce = 0;
foreach my $arg (@ARGV)
{
    if ($arg eq "apply") 
    {
        $isApply = 1;
    }
    if ($arg eq "rollback") 
    {
        $isRollback = 1;
    }
    if ($arg eq "-silent") 
    {
        $isSilent = 1;
    }
    if ($arg eq "-force") 
    {
        $isForce = 1;
    }
    $systemCommand = $systemCommand . " " . $arg;
}

# Exit gracefully for apply and rollback without -force or -silent
if ((($isApply == 1) || ($isRollback == 1)) && 
    ($isSilent != 1) && ($isForce != 1))
{
    print "This script can be invoked only in -silent mode... exiting\n";
    exit 1;
}

# Execute opatch with the specified options
my $scriptResult = qx/$systemCommand/;
my $childError = 0;
if ( $OSNAME =~ m#Win# )
{
    ( $childError ) = ( $scriptResult =~ m#.*OPatch returns with error code = (\d+).*# );
    if ( $childError !~ m#(\d+)# )
    {
        $childError = 0;
    }
}
else
{
    $childError = $CHILD_ERROR >> 8;
}
print $scriptResult;
exit $childError;

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]--