!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/libexec/webmin/iscsi-client/   drwxr-xr-x
Free 50.94 GB of 127.8 GB (39.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     list_ifaces.cgi (2.4 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Display all known interfaces

use strict;
use warnings;
require './iscsi-client-lib.pl';
our (%text);

&ui_print_header(undef, $text{'ifaces_title'}, "");

my $ifaces = &list_iscsi_ifaces();
ref($ifaces) || &error(&text('ifaces_elist', $ifaces));
if (@$ifaces) {
    # Show current connections
    my @tds = ( "width=5" );
    print &ui_form_start("delete_ifaces.cgi");
    print &ui_columns_start(
        [ "", $text{'ifaces_name'}, $text{'ifaces_transport'},
          $text{'ifaces_ifacename'}, $text{'ifaces_ipaddress'},
          $text{'ifaces_uses'} ],
        100, 0, \@tds);
    foreach my $c (@$ifaces) {
        my $uses = join(" | ", map { &text('ifaces_on', $_->{'target'}, $_->{'ip'}) } @{$c->{'targets'}});
        print &ui_checked_columns_row([
            $c->{'name'},
            uc($c->{'iface.transport_name'}),
            $c->{'iface.net_ifacename'} ||
                "<i>$text{'ifaces_notset'}</i>",
            $c->{'iface.ipaddress'} ||
                "<i>$text{'ifaces_notset'}</i>",
            $uses || "<i>$text{'ifaces_nouses'}</i>",
            ], \@tds, "d", $c->{'name'}, 0, $c->{'builtin'});
        }
    print &ui_columns_end();
    print &ui_form_end([ [ undef, $text{'ifaces_delete'} ] ]);
    }
else {
    print "<b>$text{'ifaces_none'}</b><p>\n";
    }

# Show form to add
print &ui_form_start("add_iface.cgi", "post");
print &ui_table_start($text{'ifaces_header'}, undef, 2);

# Interface name
print &ui_table_row($text{'ifaces_name'},
    &ui_textbox("name", undef, 40));

# Transport type
print &ui_table_row($text{'ifaces_transport'},
    &ui_select("transport", "tcp",
           [ [ "tcp", "TCP" ],
             [ "iser", "ISER" ],
             [ "cxgb3i", "Chelsio CXGB3I" ],
             [ "bnx2i", "Broadcom BNX2I" ],
             [ "be2iscsi", "ServerEngines BE2ISCSI" ] ]));

# Source IP address
print &ui_table_row($text{'ifaces_ipaddress'},
    &ui_opt_textbox("ipaddress", undef, 20, $text{'ifaces_ipaddressdef'}));

# MAC address
print &ui_table_row($text{'ifaces_hwaddress'},
    &ui_opt_textbox("hwaddress", undef, 30, $text{'ifaces_ipaddressdef'}));

# Source interface
my @active;
if (&foreign_check("net")) {
    &foreign_require("net");
    @active = grep { $_->{'name'} ne 'lo' } &net::active_interfaces();
    }
if (@active) {
    print &ui_table_row($text{'ifaces_ifacename'},
        &ui_select("ifacename", undef,
               [ [ '', "&lt;$text{'ifaces_ipaddressdef'}&gt;" ],
                 map { $_->{'fullname'} }
                 grep { $_->{'virtual'} eq '' } @active ]));
    }

print &ui_table_end();
print &ui_form_end([ [ undef, $text{'create'} ] ]);

&ui_print_footer("", $text{'index_return'});

:: 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.0061 ]--