Hackfut Security File Manager
Current Path:
/usr/lib/python2.6/site-packages/sos/policies
usr
/
lib
/
python2.6
/
site-packages
/
sos
/
policies
/
📁
..
📄
__init__.py
(13.17 KB)
📄
__init__.pyc
(16.93 KB)
📄
__init__.pyo
(16.93 KB)
📄
debian.py
(1.36 KB)
📄
debian.pyc
(2.01 KB)
📄
debian.pyo
(2.01 KB)
📄
osx.py
(300 B)
📄
osx.pyc
(769 B)
📄
osx.pyo
(769 B)
📄
redhat.py
(6.09 KB)
📄
redhat.pyc
(6.95 KB)
📄
redhat.pyo
(6.95 KB)
📄
ubuntu.py
(1.09 KB)
📄
ubuntu.pyc
(1.84 KB)
📄
ubuntu.pyo
(1.84 KB)
Editing: osx.py
from sos.policies import Policy from sos.utilities import shell_out class OSXPolicy(Policy): distro = "Mac OS X" @classmethod def check(class_): try: return "Mac OS X" in shell_out("sw_vers") except Exception: return False # vim: et ts=4 sw=4
Upload File
Create Folder