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

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/libexec/webmin/shorewall/   drwxr-xr-x
Free 5.29 GB of 27.03 GB (19.56%)
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 (2.52 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# index.cgi
# Display icons for the various shorewall configuration files

require './shorewall-lib.pl';

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

    &ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0,
        &help_search_link("shorewall", "doc", "google"),
        undef, undef, &text('index_version', &get_printable_version($shorewall_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($_) } @shorewall_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 shorewall is running by looking for the 'shorewall'
        # chain in the filter table
        print &ui_hr();
        print &ui_buttons_start();
        my $ex = system("$config{'shorewall'} status 2>&1");

        if ($ex && !$access{'nochange'}) {
            # Down .. offer to start
            print &ui_buttons_row(
                "start.cgi",
                $text{'index_start'},
                $text{'index_startdesc'});
            }
        elsif (!$ex && !$access{'nochange'}) {
            # Up .. offer to restart, clear and stop
            print &ui_buttons_row(
                "restart.cgi",
                $text{'index_restart'},
                $text{'index_restartdesc'});

            print &ui_buttons_row(
                "refresh.cgi",
                $text{'index_refresh'},
                $text{'index_refreshdesc'});

            print &ui_buttons_row(
                "clear.cgi",
                $text{'index_clear'},
                $text{'index_cleardesc'});

            print &ui_buttons_row(
                "stop.cgi",
                $text{'index_stop'},
                $text{'index_stopdesc'});
            }
        if (!$ex) {
            print &ui_buttons_row(
                "status.cgi",
                $text{'index_status'},
                $text{'index_statusdesc'});
            }

        # Check and dump buttons
        print &ui_buttons_row(
            "check.cgi",
            $text{'index_check'},
            $text{'index_checkdesc'});
        print &ui_buttons_row(
            "dump.cgi",
            $text{'index_dump'},
            $text{'index_dumpdesc'});

        print &ui_buttons_end();
        }
    }

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


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

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