REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 1.88 KB
Close
/home/godevadmin/public_html/upload_images/home/000~ROOT~000/lib/fm-agent/countermeasures/plugins/sample.py
Text
Base64
""" FortiMonitor Top Countermeasure Copyright 2023 Fortinet, Inc. All Rights Reserved. fm-ops@fortinet.com """ from CountermeasurePlugin import CountermeasurePlugin class SampleCountermeasure(CountermeasurePlugin): # Human-readable name for the Countermeasure, will be displayed in the control panel and alerts name = "Sample Countermeasure" # Identifier of the author (recommended to be your email address) author = "<unknown>" # Unique identifier for the countermeasure, should be lowercase letters, numbers, underscores, # and periods. No spaces allowed textkey = "sample" # Description of the countermeasure, for display at command line and in the Panopta control panel description = "Sample Countermeasure plugin to use as a starting point for additional plugins." # How long to pause execution of the countermeasure after announcing it as a wall message. Set # to None to disable wall announcements for this countermeasure wall_announce_delay = None # The shortest allowed time between two executions of this plugin, in seconds. If less than # that time has elapsed, the second execution won't be performed. Leave set to None to disable # frequency checks max_frequency = None # The longest amount of time that the plugin should be allowed to run. The Countermeasures # driver will attempt to kill the execution when it exceeds this time, although due to the # condition that may not be guaranteed. max_runtime = None # List of full command lines this plugin requires sudo access for, which is used for validating # sudo configurations sudo_requirements = [] def run(self): """ Execute the countermeasure action and return some sample output """ return_code, output = self.execute("ls -l /") self.save_text_output(output) self.save_return_code(return_code)
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 13
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
CountermeasureLogHelper.py
2.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
CountermeasurePlugin.py
3.66 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
CountermeasureScriptHelper.py
2.34 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
disk_cm.py
656 B
lrw-r--r--
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dmesg.py
626 B
lrw-r--r--
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
netstat.py
637 B
lrw-r--r--
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
reboot.py
844 B
lrw-r--r--
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
sample.py
1.88 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
ServiceRestartHelper.py
4.87 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
top.py
800 B
lrw-r--r--
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
users_cm.py
648 B
lrw-r--r--
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
vmstat.py
601 B
lrw-r--r--
2025-06-18 20:44:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
598 B
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).