One Hat Cyber Team
Your IP :
3.144.23.59
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
maint
/
bin
/
View File Name :
remove_suspend_lock.py
#!/opt/imh-python/bin/python3 """Removes old suspension locks""" # Vanessa V 3/9/16 import sys from pathlib import Path SUSPEND_DIR = Path('/var/cpanel/suspended') USER_DIR = Path('/var/cpanel/users') def main(): if not SUSPEND_DIR.is_dir(): sys.exit(0) for path in SUSPEND_DIR.glob('*.lock'): user = path.name[:-5] # Check that each lock file has a user associated with it if not (USER_DIR / user).exists(): path.unlink() if __name__ == '__main__': main()