REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 1.29 KB
Close
/bin/fm-agent/fm_agent_noroot.py
Text
Base64
#!/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 = "2025.2.14" # 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()
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
countermeasure.py
2.99 KB
lrwxr-xr-x
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fm_agent.py
3.74 KB
lrwxr-xr-x
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fm_agent_noroot.py
1.29 KB
lrw-r--r--
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
maintenance.py
1.73 KB
lrwxr-xr-x
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
maintenance_noroot.py
1.72 KB
lrwxr-xr-x
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
register.py
1.32 KB
lrw-r--r--
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
report.py
1.89 KB
lrw-r--r--
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
update_config.py
1.52 KB
lrw-r--r--
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).