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


Viewing file:     openbsd-lib.pl (1.81 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# openbsd-lib.pl
# Functions for parsing openbsd ps output

sub list_processes
{
local($pcmd, $line, $i, %pidmap, @plist);
$pcmd = @_ ? "-p $_[0]" : "";
open(PS, "ps -axwwww -o pid,ppid,user,vsz,%cpu,time,nice,tty,ruser,rgid,pgid,lstart,lim,command $pcmd |");
for($i=0; $line=<PS>; $i++) {
    chop($line);
    if ($line =~ /ps -axwwww/ || $line =~ /^\s*PID/) { $i--; next; }
    $line =~ /^\s*(\d+)\s+(\d+)\s+(\S+)\s+(\d+)\s+([\d\.]+)\s+(\S+)\s+(-?\d+)\s+(\S+)\s+(\S+)\s+(\d+)\s+(\d+)\s+(-|\S+\s+\S+\s+\d+\s+\S+\s+\d+|\d+)\s+(\S+)\s+(.*)$/;

    $plist[$i]->{"pid"} = $1;
    $plist[$i]->{"ppid"} = $2;
    $plist[$i]->{"user"} = $3;
    $plist[$i]->{"size"} = "$4 kB";
    $plist[$i]->{"bytes"} = $4 * 1024;
    $plist[$i]->{"cpu"} = $5;
    $plist[$i]->{"time"} = $6;
    $plist[$i]->{"nice"} = $7;
    $plist[$i]->{"_tty"} = $8;
    $plist[$i]->{"_ruser"} = $9;
    $plist[$i]->{"_rgroup"} = getgrgid($10);
    $plist[$i]->{"_pgid"} = $11;
    $plist[$i]->{"_lstart"} = $12;
    $plist[$i]->{"_lim"} = $13 eq "-" ? "Unlimited" : $13;
    $plist[$i]->{"args"} = $14;
    }
close(PS);
return @plist;
}

# renice_proc(pid, nice)
sub renice_proc
{
return undef if (&is_readonly_mode());
local $out = &backquote_logged("renice $_[1] -p $_[0] 2>&1");
if ($?) { return $out; }
return undef;
}

foreach $ia (keys %text) {
    if ($ia =~ /^freebsd(_\S+)/) {
        $info_arg_map{$1} = $text{$ia};
        }
    }

@nice_range = (-20 .. 20);

$has_fuser_command = 0;

# get_new_pty()
# Returns the filehandles and names for a pty and tty
sub get_new_pty
{
local @ptys;
opendir(DEV, "/dev");
@ptys = map { "/dev/$_" } (grep { /^pty/ } readdir(DEV));
closedir(DEV);
local ($pty, $tty);
foreach $pty (@ptys) {
    open(PTY, "+>$pty") || next;
    local $tty = $pty;
    $tty =~ s/pty/tty/;
    open(TTY, "+>$tty") || next;
    local $old = select(PTY); $| = 1;
    select(TTY); $| = 1; select($old);
    return (*PTY, *TTY, $pty, $tty);
    }
return ();
}

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.0031 ]--