Hackfut Security File Manager
Current Path:
/usr/lib/python2.6/site-packages/clcommon/cpapi/plugins
usr
/
lib
/
python2.6
/
site-packages
/
clcommon
/
cpapi
/
plugins
/
📁
..
📄
__init__.py
(41 B)
📄
__init__.pyc
(154 B)
📄
__init__.pyo
(154 B)
📄
cpanel.py
(11.59 KB)
📄
cpanel.pyc
(10.92 KB)
📄
cpanel.pyo
(10.92 KB)
📄
directadmin.py
(4.46 KB)
📄
directadmin.pyc
(5.69 KB)
📄
directadmin.pyo
(5.69 KB)
📄
interworx.py
(1.32 KB)
📄
interworx.pyc
(2.04 KB)
📄
interworx.pyo
(2.04 KB)
📄
ispmanager.py
(4.42 KB)
📄
ispmanager.pyc
(4.94 KB)
📄
ispmanager.pyo
(4.94 KB)
📄
nopanel.py
(1002 B)
📄
nopanel.pyc
(1.65 KB)
📄
nopanel.pyo
(1.65 KB)
📄
plesk.py
(2.58 KB)
📄
plesk.pyc
(3.66 KB)
📄
plesk.pyo
(3.66 KB)
📄
universal.py
(1.42 KB)
📄
universal.pyc
(1.92 KB)
📄
universal.pyo
(1.92 KB)
Editing: interworx.py
#!/usr/bin/python # -*- coding: utf-8 -*- import os import ConfigParser import re from clcommon.cpapi.cpapiexceptions import NotSupported from clcommon.cpapi.plugins.universal import _dblogin_cplogin_pairs __cpname__ = 'InterWorx' PARSE_URI_PATTERN = re.compile(r'(.+)://(.+):(.+)@.*') def detect(): return os.path.isfile('/usr/local/interworx/iworx.ini') IWORX_INI = '/usr/local/interworx/iworx.ini' def db_access(_conf_path=IWORX_INI): access = dict() data_config = ConfigParser.ConfigParser() data_config.read(_conf_path) mysql_uri = data_config.get(section='mysql', option='rootdsn').strip('\"') parse_result = PARSE_URI_PATTERN.search(mysql_uri) (db, login, passwd) = (None, None, None) if parse_result: (db, login, passwd) = parse_result.group(1, 2, 3) access['login'] = login access['pass'] = passwd access['host'] = data_config.get(section='mysql', option='default_server').strip('\"') access['db'] = db return access def cpusers(): raise NotSupported('Getting all users registered in the Control Panel is not currently supported. ' 'Is under development.') def dblogin_cplogin_pairs(cplogin_lst=None, with_system_users=False): access = db_access() data = _dblogin_cplogin_pairs(cplogin_lst=cplogin_lst, access=access) return data
Upload File
Create Folder