Linux ams-business-8.hostwindsdns.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
LiteSpeed
Server IP : 192.236.177.161 & Your IP : 216.73.216.50
Domains :
Cant Read [ /etc/named.conf ]
User : ajzdfbpz
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib64 /
python2.7 /
site-packages /
Cheetah /
Delete
Unzip
Name
Size
Permission
Date
Action
Macros
[ DIR ]
drwxr-xr-x
2024-02-12 23:56
Templates
[ DIR ]
drwxr-xr-x
2024-02-12 23:56
Tests
[ DIR ]
drwxr-xr-x
2024-02-12 23:56
Tools
[ DIR ]
drwxr-xr-x
2024-02-12 23:56
Utils
[ DIR ]
drwxr-xr-x
2024-02-12 23:56
CacheRegion.py
4.24
KB
-rw-r--r--
2019-05-10 17:46
CacheRegion.pyc
6.5
KB
-rw-r--r--
2019-09-17 18:15
CacheRegion.pyo
6.46
KB
-rw-r--r--
2019-09-17 18:15
CacheStore.py
2.9
KB
-rw-r--r--
2019-05-10 17:46
CacheStore.pyc
5.71
KB
-rw-r--r--
2019-09-17 18:15
CacheStore.pyo
5.71
KB
-rw-r--r--
2019-09-17 18:15
CheetahWrapper.py
23.73
KB
-rw-r--r--
2019-09-17 18:15
CheetahWrapper.pyc
21.69
KB
-rw-r--r--
2019-09-17 18:15
CheetahWrapper.pyo
21.63
KB
-rw-r--r--
2019-09-17 18:15
Compiler.py
81.01
KB
-rw-r--r--
2019-05-10 17:46
Compiler.pyc
75.61
KB
-rw-r--r--
2019-09-17 18:15
Compiler.pyo
75.54
KB
-rw-r--r--
2019-09-17 18:15
DirectiveAnalyzer.py
2.33
KB
-rw-r--r--
2019-09-17 18:15
DirectiveAnalyzer.pyc
3.82
KB
-rw-r--r--
2019-09-17 18:15
DirectiveAnalyzer.pyo
3.82
KB
-rw-r--r--
2019-09-17 18:15
Django.py
590
B
-rw-r--r--
2019-05-10 17:46
Django.pyc
942
B
-rw-r--r--
2019-09-17 18:15
Django.pyo
942
B
-rw-r--r--
2019-09-17 18:15
DummyTransaction.py
3.24
KB
-rw-r--r--
2019-05-10 17:46
DummyTransaction.pyc
5.51
KB
-rw-r--r--
2019-09-17 18:15
DummyTransaction.pyo
5.51
KB
-rw-r--r--
2019-09-17 18:15
ErrorCatchers.py
1.34
KB
-rw-r--r--
2019-05-10 17:46
ErrorCatchers.pyc
3.12
KB
-rw-r--r--
2019-09-17 18:15
ErrorCatchers.pyo
3.12
KB
-rw-r--r--
2019-09-17 18:15
FileUtils.py
10.25
KB
-rw-r--r--
2019-05-10 17:46
FileUtils.pyc
13.09
KB
-rw-r--r--
2019-09-17 18:15
FileUtils.pyo
13.09
KB
-rw-r--r--
2019-09-17 18:15
Filters.py
7.16
KB
-rw-r--r--
2019-09-17 18:15
Filters.pyc
8.21
KB
-rw-r--r--
2019-09-17 18:15
Filters.pyo
8.21
KB
-rw-r--r--
2019-09-17 18:15
ImportHooks.py
4.33
KB
-rw-r--r--
2019-05-10 17:46
ImportHooks.pyc
4.14
KB
-rw-r--r--
2019-09-17 18:15
ImportHooks.pyo
4.14
KB
-rw-r--r--
2019-09-17 18:15
ImportManager.py
17.13
KB
-rw-r--r--
2019-09-17 18:15
ImportManager.pyc
17.17
KB
-rw-r--r--
2019-09-17 18:15
ImportManager.pyo
17.17
KB
-rw-r--r--
2019-09-17 18:15
LoadTemplate.py
1.66
KB
-rw-r--r--
2019-05-10 17:46
LoadTemplate.pyc
1.93
KB
-rw-r--r--
2019-09-17 18:15
LoadTemplate.pyo
1.93
KB
-rw-r--r--
2019-09-17 18:15
NameMapper.py
12.14
KB
-rw-r--r--
2019-09-17 18:15
NameMapper.pyc
13.01
KB
-rw-r--r--
2019-09-17 18:15
NameMapper.pyo
13.01
KB
-rw-r--r--
2019-09-17 18:15
Parser.py
102.8
KB
-rw-r--r--
2019-05-10 17:46
Parser.pyc
78.62
KB
-rw-r--r--
2019-09-17 18:15
Parser.pyo
78.46
KB
-rw-r--r--
2019-09-17 18:15
Servlet.py
1.2
KB
-rw-r--r--
2019-09-17 18:15
Servlet.pyc
1.84
KB
-rw-r--r--
2019-09-17 18:15
Servlet.pyo
1.84
KB
-rw-r--r--
2019-09-17 18:15
SettingsManager.py
9.97
KB
-rw-r--r--
2019-05-10 17:46
SettingsManager.pyc
11.4
KB
-rw-r--r--
2019-09-17 18:15
SettingsManager.pyo
11.4
KB
-rw-r--r--
2019-09-17 18:15
SourceReader.py
7.59
KB
-rw-r--r--
2019-05-10 17:46
SourceReader.pyc
11.67
KB
-rw-r--r--
2019-09-17 18:15
SourceReader.pyo
11.67
KB
-rw-r--r--
2019-09-17 18:15
Template.py
83.63
KB
-rw-r--r--
2019-05-10 17:46
Template.pyc
66.37
KB
-rw-r--r--
2019-09-17 18:15
Template.pyo
66.28
KB
-rw-r--r--
2019-09-17 18:15
TemplateCmdLineIface.py
2.78
KB
-rw-r--r--
2019-05-10 17:46
TemplateCmdLineIface.pyc
3.49
KB
-rw-r--r--
2019-09-17 18:15
TemplateCmdLineIface.pyo
3.49
KB
-rw-r--r--
2019-09-17 18:15
Unspecified.py
251
B
-rw-r--r--
2019-05-10 17:46
Unspecified.pyc
807
B
-rw-r--r--
2019-09-17 18:15
Unspecified.pyo
807
B
-rw-r--r--
2019-09-17 18:15
Version.py
1.5
KB
-rw-r--r--
2019-09-17 18:15
Version.pyc
1.77
KB
-rw-r--r--
2019-09-17 18:15
Version.pyo
1.24
KB
-rw-r--r--
2019-09-17 18:15
__init__.py
471
B
-rw-r--r--
2019-05-10 17:46
__init__.pyc
637
B
-rw-r--r--
2019-09-17 18:15
__init__.pyo
637
B
-rw-r--r--
2019-09-17 18:15
_namemapper.so
16.15
KB
-rwxr-xr-x
2019-09-17 18:15
compat.py
1.43
KB
-rw-r--r--
2019-09-17 18:15
compat.pyc
1.71
KB
-rw-r--r--
2019-09-17 18:15
compat.pyo
1.71
KB
-rw-r--r--
2019-09-17 18:15
convertTmplPathToModuleName.py
755
B
-rw-r--r--
2019-05-10 17:46
convertTmplPathToModuleName.pyc
983
B
-rw-r--r--
2019-09-17 18:15
convertTmplPathToModuleName.pyo
983
B
-rw-r--r--
2019-09-17 18:15
Save
Rename
''' Filters for the #filter directive as well as #transform #filter results in output filters Cheetah's $placeholders . #transform results in a filter on the entirety of the output ''' from Cheetah.compat import unicode # Additional entities WebSafe knows how to transform. No need to include # '<', '>' or '&' since those will have been done already. webSafeEntities = {' ': ' ', '"': '"'} class Filter(object): """A baseclass for the Cheetah Filters.""" def __init__(self, template=None): """Setup a reference to the template that is using the filter instance. This reference isn't used by any of the standard filters, but is available to Filter subclasses, should they need it. Subclasses should call this method. """ self.template = template def filter(self, val, encoding=None, str=str, **kw): ''' Pass Unicode strings through unmolested, unless an encoding is specified. ''' if val is None: return u'' if isinstance(val, unicode): # ignore the encoding and return the unicode object return val else: try: return unicode(val) except UnicodeDecodeError: # we could put more fallbacks here, but we'll just pass the str # on and let DummyTransaction worry about it return str(val) RawOrEncodedUnicode = Filter EncodeUnicode = Filter class Markdown(EncodeUnicode): ''' Markdown will change regular strings to `Markdown <http://daringfireball.net/projects/markdown/>`_ Such that:: My Header ========= Becomes:: <h1>My Header</h1> and so on. Markdown is meant to be used with the #transform tag, as it's usefulness with #filter is marginal at best ''' def filter(self, value, **kwargs): # This is a bit of a hack to allow outright embedding # of the markdown module. import markdown encoded = super(Markdown, self).filter(value, **kwargs) return markdown.markdown(encoded) class CodeHighlighter(EncodeUnicode): ''' The CodeHighlighter filter depends on the "pygments" module which you can download and install from: http://pygments.org/ What the CodeHighlighter assumes the string that it's receiving is source code and uses pygments.lexers.guess_lexer() to try to guess which parser to use when highlighting it. CodeHighlighter will return the HTML and CSS to render the code block, syntax highlighted, in a browser NOTE: I had an issue installing pygments on Linux/amd64/Python 2.6 dealing with importing of pygments.lexers. I was able to correct the failure by adding:: raise ImportError to line 39 of pygments/plugin.py (since importing pkg_resources was causing issues). ''' def filter(self, source, **kwargs): encoded = super(CodeHighlighter, self).filter(source, **kwargs) try: from pygments import highlight from pygments import lexers from pygments import formatters except ImportError as ex: print('<%s> - Failed to import pygments! (%s)' % (self.__class__.__name__, ex)) print('-- You may need to install it from: http://pygments.org') return encoded lexer = None try: lexer = lexers.guess_lexer(source) except lexers.ClassNotFound: lexer = lexers.PythonLexer() formatter = formatters.HtmlFormatter(cssclass='code_highlighter') encoded = highlight(encoded, lexer, formatter) css = formatter.get_style_defs('.code_highlighter') return '''<style type="text/css"><!-- %(css)s --></style>%(source)s''' % {'css': css, 'source': encoded} class MaxLen(Filter): def filter(self, val, **kw): """Replace None with '' and cut off at maxlen.""" output = super(MaxLen, self).filter(val, **kw) if 'maxlen' in kw and len(output) > kw['maxlen']: return output[:kw['maxlen']] return output class WebSafe(Filter): """Escape HTML entities in $placeholders. """ def filter(self, val, **kw): s = super(WebSafe, self).filter(val, **kw) # These substitutions are copied from cgi.escape(). s = s.replace("&", "&") # Must be done first! s = s.replace("<", "<") s = s.replace(">", ">") # Process the additional transformations if any. if 'also' in kw: also = kw['also'] entities = webSafeEntities # Global variable. for k in also: if k in entities: v = entities[k] else: v = "&#%s;" % ord(k) s = s.replace(k, v) return s class Strip(Filter): """Strip leading/trailing whitespace but preserve newlines. This filter goes through the value line by line, removing leading and trailing whitespace on each line. It does not strip newlines, so every input line corresponds to one output line, with its trailing newline intact. We do not use val.split('\\n') because that would squeeze out consecutive blank lines. Instead, we search for each newline individually. This makes us unable to use the fast C .split method, but it makes the filter much more widely useful. This filter is intended to be usable both with the #filter directive and with the proposed #sed directive (which has not been ratified yet.) """ def filter(self, val, **kw): s = super(Strip, self).filter(val, **kw) result = [] start = 0 # The current line will be s[start:end]. while True: # Loop through each line. end = s.find('\n', start) # Find next newline. if end == -1: # If no more newlines. break chunk = s[start:end].strip() result.append(chunk) result.append('\n') start = end + 1 # Write the unfinished portion after the last newline, if any. chunk = s[start:].strip() result.append(chunk) return "".join(result) class StripSqueeze(Filter): """Canonicalizes every chunk of whitespace to a single space. Strips leading/trailing whitespace. Removes all newlines, so multi-line input is joined into one ling line with NO trailing newline. """ def filter(self, val, **kw): s = super(StripSqueeze, self).filter(val, **kw) s = s.split() return " ".join(s) ################################################## # MAIN ROUTINE -- testing def test(): s1 = "abc <=> &" s2 = " asdf \n\t 1 2 3\n" print("WebSafe INPUT:", repr(s1)) print(" WebSafe:", repr(WebSafe().filter(s1))) print() print(" Strip INPUT:", repr(s2)) print(" Strip:", repr(Strip().filter(s2))) print("StripSqueeze:", repr(StripSqueeze().filter(s2))) print("Unicode:", repr(EncodeUnicode().filter(u'aoeu12345\u1234'))) if __name__ == "__main__": test() # vim: shiftwidth=4 tabstop=4 expandtab