!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/usr/share/doc/rrdtool/examples/   drwxr-xr-x
Free 12.77 GB of 61.93 GB (20.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ifOctets.tcl (1.21 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/env tclsh8.6

#package require Tnm 3.0
package require Rrd 1.7.0

set rrdfile "[lindex $argv 0]-[lindex $argv 1].rrd"

# create rrdfile if not yet existent
if {[file exists $rrdfile] == 0} {
    Rrd::create $rrdfile --step 5 \
        DS:inOctets:COUNTER:10:U:U DS:outOctets:COUNTER:10:U:U \
        RRA:AVERAGE:0.5:1:12
}

# get an snmp session context
set session [Tnm::snmp generator -address [lindex $argv 0]]

# walk through the ifDescr column to find the right interface
$session walk descr IF-MIB!ifDescr {

    # is this the right interface?
    if {"[Tnm::snmp value $descr 0]" == "[lindex $argv 1]"} {

    # get the instance part of this table row
    set inst [lindex [Tnm::mib split [Tnm::snmp oid $descr 0]] 1]

    # get the two interface's octet counter values
    set in [lindex [lindex [$session get IF-MIB!ifInOctets.$inst] 0] 2]
    set out [lindex [lindex [$session get IF-MIB!ifOutOctets.$inst] 0] 2]

    # write the values to the rrd
    puts "$in $out"
    Rrd::update $rrdfile --template inOctets:outOctets N:$in:$out

    Rrd::graph gaga.png --title "gaga" \
        DEF:in=$rrdfile:inOctets:AVERAGE \
        DEF:out=$rrdfile:outOctets:AVERAGE \
        AREA:in#0000FF:inOctets \
        LINE2:out#00C000:outOctets

    #puts [Rrd::fetch $rrdfile AVERAGE]
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.6074 ]--