Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.105
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
sudo /
examples /
Delete
Unzip
Name
Size
Permission
Date
Action
example_approval_plugin.py
557
B
-rw-r--r--
2025-09-21 14:35
example_audit_plugin.py
3.3
KB
-rw-r--r--
2025-09-21 14:35
example_conversation.py
4.04
KB
-rw-r--r--
2025-09-21 14:35
example_debugging.py
3.62
KB
-rw-r--r--
2025-09-21 14:35
example_group_plugin.py
1.8
KB
-rw-r--r--
2025-09-21 14:35
example_io_plugin.py
5.35
KB
-rw-r--r--
2025-09-21 14:35
example_policy_plugin.py
6.06
KB
-rw-r--r--
2025-09-21 14:35
pam.conf
1.15
KB
-rw-r--r--
2025-09-21 14:35
sudo.conf
3.89
KB
-rw-r--r--
2025-09-21 14:35
sudoers
4.07
KB
-rw-r--r--
2025-09-21 14:35
syslog.conf
1.05
KB
-rw-r--r--
2025-09-21 14:35
Save
Rename
import sudo from datetime import datetime class BusinessHoursApprovalPlugin(sudo.Plugin): def check(self, command_info: tuple, run_argv: tuple, run_env: tuple) -> int: error_msg = "" now = datetime.now() if now.weekday() >= 5: error_msg = "That is not allowed on the weekend!" if now.hour < 8 or now.hour > 17: error_msg = "That is not allowed outside the business hours!" if error_msg: sudo.log_info(error_msg) raise sudo.PluginReject(error_msg)