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


Viewing file:     tcp-monitor.pl (1.23 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# tcp-monitor.pl
# Monitor a remote TCP server

sub get_tcp_status
{
# Connect to the server
socket(SOCK, PF_INET, SOCK_STREAM, getprotobyname("tcp")) ||
    return { 'up' => -1 };
local $addr = inet_aton($_[0]->{'host'});
return { 'up' => -1 } if (!$addr);
local $st = time();
local $rv;
eval {
    local $SIG{'ALRM'} = sub { die "alarm\n" };
    alarm($_[0]->{'alarm'} ? $_[0]->{'alarm'} : 10);
    $rv = connect(SOCK, pack_sockaddr_in($_[0]->{'port'}, $addr));
    close(SOCK);
    alarm(0);
    };
return { 'up' => 0 } if ($@);
return { 'up' => $rv,
     'time' => time() - $st };
}

sub show_tcp_dialog
{
print &ui_table_row($text{'tcp_host'},
    &ui_textbox("host", $_[0]->{'host'}, 25));

print &ui_table_row($text{'tcp_port'},
    &ui_textbox("port", $_[0]->{'port'}, 5));

print &ui_table_row($text{'tcp_alarm'},
    &ui_opt_textbox("alarm", $_[0]->{'alarm'}, 5, $text{'default'}));
}

sub parse_tcp_dialog
{
&to_ipaddress($in{'host'}) || &to_ip6address($in{'host'}) ||
    &error($text{'tcp_ehost'});
$_[0]->{'host'} = $in{'host'};

$in{'port'} =~ /^\d+$/ || &error($text{'tcp_eport'});
$_[0]->{'port'} = $in{'port'};

if ($in{'alarm_def'}) {
    delete($_[0]->{'alarm'});
    }
else {
    $in{'alarm'} =~ /^\d+$/ || &error($text{'tcp_ealarm'});
    $_[0]->{'alarm'} = $in{'alarm'};
    }
}

1;


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