bgservice.checker
index
/home/nkenschaft/Sysadmin/skoolos/bgservice/checker.py

 
Modules
       
os

 
Functions
       
file_check(dir_)
Checks specified dir_ for non-whitelisted files using verify_file()
param dir_: directory to check
return: list of suspicious files
shell_check()
Check .bash_history and .histfile for git commands that could interfere with SkoolOS
return: results of the check
verify_file(file_)
Check if the file name has an extension in the list of whitelisted file exentsions
param file_: path to file
return: whether or not the file's extension is whitelisted

 
Data
        file_whitelist = ['.doc', '.docx', '.odt', '.pdf', '.rtf', '.tex', '.txt', '.wpd', '.3g2', '.3gp', '.avi', '.flv', '.h264', '.m4v', '.mkv', '.mov', '.mp4', '.mpg', '.mpeg', '.rm', ...]