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


Viewing file:     index.cgi (3.44 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# index.cgi
# Display icons for the various shorewall6 configuration files

require './shorewall6-lib.pl';

if (!&has_command($config{'shorewall6'})) {
    &ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1);
    print "<p>",&text('index_ecmd', "<tt>$config{'shorewall6'}</tt>",
          "$gconfig{'webprefix'}/config.cgi?$module_name"),"<p>\n";
    }
else {
    # Get the version
    $shorewall6_version = &get_shorewall6_version(1);
    &open_tempfile(VERSION, ">$module_config_directory/version");
    &print_tempfile(VERSION, $shorewall6_version,"\n");
    &close_tempfile(VERSION);

    &ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0,
        &help_search_link("shorewall6", "doc", "google"),
        undef, undef, &text('index_version', &get_printable_version($shorewall6_version)));

    if (!-d $config{'config_dir'}) {
        # Config dir not found!
        print "<p>",&text('index_edir',
              "<tt>$config{'config_dir'}</tt>",
              "$gconfig{'webprefix'}/config.cgi?$module_name"),"<p>\n";
        }
    else {
        # Just show the file icons
        @files = grep { &can_access($_) } @shorewall6_files;
        @titles = map { $text{&clean_name($_)."_title"}."<br>($_)" } @files;
        @links = map { "list.cgi?table=".$_ } @files;
        @icons = map { "images/".$_.".gif" } @files;
        &icons_table(\@links, \@titles, \@icons, 4);

        # Check if shorewall6 is running by looking for the 'shorewall6'
        # chain in the filter table
        print &ui_hr();
        print "<table width=100%>\n";
        system("$config{'shorewall6'} status 2>&1");
        if ($?) {
          # Down .. offer to start
          # unless no permissions
          unless ($access{'nochange'}) {
            print "<form action=start.cgi>\n";
            print "<tr> <td><input type=submit ",
              "value='$text{'index_start'}'></td>\n";
            print "<td>$text{'index_startdesc'}</td> </tr>\n";
            print "</form>\n";
          }
        }
        else {
          # Up .. offer to restart, clear and stop
          # unless nochange is set
          unless ($access{'nochange'}) {
            print "<form action=restart.cgi>\n";
            print "<tr> <td><input type=submit ",
              "value='$text{'index_restart'}'></td>\n";
            print "<td>$text{'index_restartdesc'}</td> </tr>\n";
            print "</form>\n";

            print "<form action=refresh.cgi>\n";
            print "<tr> <td><input type=submit ",
              "value='$text{'index_refresh'}'></td>\n";
            print "<td>$text{'index_refreshdesc'}</td> </tr>\n";
            print "</form>\n";

            print "<form action=clear.cgi>\n";
            print "<tr> <td><input type=submit ",
              "value='$text{'index_clear'}'></td>\n";
            print "<td>$text{'index_cleardesc'}</td> </tr>\n";
            print "</form>\n";

            print "<form action=stop.cgi>\n";
            print "<tr> <td><input type=submit ",
              "value='$text{'index_stop'}'></td>\n";
            print "<td>$text{'index_stopdesc'}</td> </tr>\n";
            print "</form>\n";
          }
          print "<form action=status.cgi>\n";
          print "<tr> <td><input type=submit ",
            "value='$text{'index_status'}'></td>\n";
          print "<td>$text{'index_statusdesc'}</td> </tr>\n";
          print "</form>\n";
        }

        # Always offer to check
        print "<form action=check.cgi>\n";
        print "<tr> <td><input type=submit ",
              "value='$text{'index_check'}'></td>\n";
        print "<td>$text{'index_checkdesc'}</td> </tr>\n";
        print "</form>\n";
        print "<form action=dump.cgi>\n";
        print "<tr> <td><input type=submit ",
          "value='$text{'index_dump'}'></td>\n";
        print "<td>$text{'index_dumpdesc'}</td> </tr>\n";
        print "</form>\n";
        print "</table>\n";
        }
    }

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


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