Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
Apache
: 148.66.134.25 | : 3.12.161.151
66 Domain
8.0.30
amvm
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
lib /
fm-agent /
plugins /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
0
B
-rw-r--r--
apache.py
19.06
KB
-rw-r--r--
apache_kafka.py
12.9
KB
-rw-r--r--
apache_zookeeper.py
6.26
KB
-rw-r--r--
bandwidth.py
21.3
KB
-rw-r--r--
cassandra.py
9.21
KB
-rw-r--r--
cert.py
2.78
KB
-rw-r--r--
couch.py
9.5
KB
-rw-r--r--
cpu_usage.py
33
KB
-rw-r--r--
dem_plugin.py
6.08
KB
-rw-r--r--
disk.py
16.48
KB
-rw-r--r--
docker.py
38.41
KB
-rw-r--r--
elasticsearch.py
2.83
KB
-rw-r--r--
entropy.py
900
B
-rw-r--r--
exim.py
1.01
KB
-rw-r--r--
file_presence.py
5
KB
-rw-r--r--
haproxy.py
13.37
KB
-rw-r--r--
io_stats.py
13.41
KB
-rw-r--r--
jboss.py
13.46
KB
-rw-r--r--
jmx.py
8.02
KB
-rw-r--r--
linux_logs.py
3.4
KB
-rw-r--r--
lm_sensors.py
2.51
KB
-rw-r--r--
logstash_forwarder.py
1.58
KB
-rw-r--r--
memcache.py
5.99
KB
-rw-r--r--
memory_usage.py
26.11
KB
-rw-r--r--
mongo.py
15.96
KB
-rw-r--r--
mysql.py
19.74
KB
-rw-r--r--
nagios.py
5.36
KB
-rw-r--r--
nginx.py
11.96
KB
-rw-r--r--
nodejs.py
6.29
KB
-rw-r--r--
ntp.py
1.98
KB
-rw-r--r--
opcache.py
2.26
KB
-rw-r--r--
oracle.py
15.15
KB
-rw-r--r--
package_upgrade.py
8.08
KB
-rw-r--r--
phpfpm.py
5.51
KB
-rw-r--r--
ping.py
2.45
KB
-rw-r--r--
postfix.py
1.98
KB
-rw-r--r--
postgresql.py
19.13
KB
-rw-r--r--
process.py
16.32
KB
-rw-r--r--
rabbitmq.py
19.33
KB
-rw-r--r--
redis.py
11.19
KB
-rw-r--r--
sendmail.py
2.39
KB
-rw-r--r--
sysctl.py
1.46
KB
-rw-r--r--
tcp.py
6.26
KB
-rw-r--r--
template.py
3.28
KB
-rw-r--r--
tomcat.py
6.79
KB
-rw-r--r--
tomcat_jmx.py
15.82
KB
-rw-r--r--
unbound_dns.py
4.54
KB
-rw-r--r--
uptime.py
3.46
KB
-rw-r--r--
users.py
1.09
KB
-rw-r--r--
uwsgi.py
4.57
KB
-rw-r--r--
varnish.py
4.79
KB
-rw-r--r--
weblogic.py
13.38
KB
-rw-r--r--
weblogic12c.py
18.75
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : uptime.py
import os try: import json except ImportError: import simplejson as json import agent_util import datetime import time import sys from agent_util import float class UptimePlugin(agent_util.Plugin): textkey = "uptime" label = "Machine Uptime" platform = sys.platform @classmethod def get_metadata(self, config): status = agent_util.SUPPORTED msg = None if 'sunos' in self.platform: psr = agent_util.which("psrinfo", exc=True) if not psr: status = agent_util.MISCONFIGURED msg = "Unable to collect uptime data, please make sure psrinfo is installed." else: who = agent_util.which("who", exc=True) if not who: status = agent_util.MISCONFIGURED msg = "Unable to collect uptime data, please make sure Who is installed." metadata = { "time_since_last_boot": { "label": "Time since last boot", "options": None, "status": status, "error_message": msg, "unit": "minutes" }, } return metadata def check(self, textkey, data, config): if textkey == 'time_since_last_boot': lb = '' if 'sunos' in self.platform: psrinfo = agent_util.which("psrinfo", exc=True) retcode, output = agent_util.execute_command(psrinfo) lb = output.strip() lb = lb.split()[-2:] lb = ' '.join(lb) lb = datetime.datetime.strptime(lb, "%m/%d/%Y %H:%M:%S") elif "darwin" in self.platform: sysctl = agent_util.which("sysctl", exc=True) retcode, output = agent_util.execute_command("%s -n kern.boottime" % sysctl) fields = output.strip().split() return time.time() - int(fields[3].strip(",")) elif 'aix' in self.platform: uptime = agent_util.which("uptime", exc=True) retcode, output = agent_util.execute_command(uptime) self.log.debug("####\n%s" % str(output)) lb = re.sub(',|days|day','',str(output)) self.log.debug("####\n%s" % str(lb)) if "day" in output: if "min" in output: lb = re.split(' ',str(lb))[4:7] lb = datetime.timedelta(days=int(lb[0]),minutes=int(lb[-1])) elif "hr" in output: lb = re.split(' ',str(lb))[4:7] lb = datetime.timedelta(days=int(lb[0]),hours=int(lb[-1])) else: lb = re.split(' |:',str(lb))[5:10] lb = datetime.timedelta(days=int(lb[0]),hours=int(lb[-2]),minutes=int(lb[-1])) else: if "min" in output: lb = re.split(' ',str(lb))[4] lb = datetime.timedelta(minutes=int(lb)) elif "hr" in output: lb = re.split(' ',str(lb))[4] lb = datetime.timedelta(hours=int(lb)) else: return 60 else: uptime = open("/proc/uptime").read().split()[0] return int(float(uptime)) ct = datetime.datetime.now() diff = ct - lb return int(diff.total_seconds()) return 0
Close