Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.133.128.223
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib64 /
python2.7 /
compiler /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
1023
B
-rw-r--r--
2020-11-16 22:23
__init__.pyc
1.27
KB
-rw-r--r--
2020-11-16 22:23
__init__.pyo
1.27
KB
-rw-r--r--
2020-11-16 22:23
ast.py
36.63
KB
-rw-r--r--
2020-11-16 22:23
ast.pyc
70.43
KB
-rw-r--r--
2020-11-16 22:23
ast.pyo
70.43
KB
-rw-r--r--
2020-11-16 22:23
consts.py
468
B
-rw-r--r--
2020-11-16 22:23
consts.pyc
737
B
-rw-r--r--
2020-11-16 22:23
consts.pyo
737
B
-rw-r--r--
2020-11-16 22:23
future.py
1.85
KB
-rw-r--r--
2020-11-16 22:23
future.pyc
2.89
KB
-rw-r--r--
2020-11-16 22:23
future.pyo
2.89
KB
-rw-r--r--
2020-11-16 22:23
misc.py
1.75
KB
-rw-r--r--
2020-11-16 22:23
misc.pyc
3.65
KB
-rw-r--r--
2020-11-16 22:23
misc.pyo
3.65
KB
-rw-r--r--
2020-11-16 22:23
pyassem.py
23.69
KB
-rw-r--r--
2020-11-16 22:23
pyassem.pyc
25.33
KB
-rw-r--r--
2020-11-16 22:23
pyassem.pyo
24.78
KB
-rw-r--r--
2020-11-16 22:23
pycodegen.py
46.69
KB
-rw-r--r--
2020-11-16 22:23
pycodegen.pyc
55.19
KB
-rw-r--r--
2020-11-16 22:23
pycodegen.pyo
54.76
KB
-rw-r--r--
2020-11-16 22:23
symbols.py
14.15
KB
-rw-r--r--
2020-11-16 22:23
symbols.pyc
17.26
KB
-rw-r--r--
2020-11-16 22:23
symbols.pyo
17.23
KB
-rw-r--r--
2020-11-16 22:23
syntax.py
1.41
KB
-rw-r--r--
2020-11-16 22:23
syntax.pyc
1.84
KB
-rw-r--r--
2020-11-16 22:23
syntax.pyo
1.84
KB
-rw-r--r--
2020-11-16 22:23
transformer.py
51.86
KB
-rw-r--r--
2020-11-16 22:23
transformer.pyc
46.51
KB
-rw-r--r--
2020-11-16 22:23
transformer.pyo
44.74
KB
-rw-r--r--
2020-11-16 22:23
visitor.py
3.8
KB
-rw-r--r--
2020-11-16 22:23
visitor.pyc
4.09
KB
-rw-r--r--
2020-11-16 22:23
visitor.pyo
4.09
KB
-rw-r--r--
2020-11-16 22:23
Save
Rename
from compiler import ast # XXX should probably rename ASTVisitor to ASTWalker # XXX can it be made even more generic? class ASTVisitor: """Performs a depth-first walk of the AST The ASTVisitor will walk the AST, performing either a preorder or postorder traversal depending on which method is called. methods: preorder(tree, visitor) postorder(tree, visitor) tree: an instance of ast.Node visitor: an instance with visitXXX methods The ASTVisitor is responsible for walking over the tree in the correct order. For each node, it checks the visitor argument for a method named 'visitNodeType' where NodeType is the name of the node's class, e.g. Class. If the method exists, it is called with the node as its sole argument. The visitor method for a particular node type can control how child nodes are visited during a preorder walk. (It can't control the order during a postorder walk, because it is called _after_ the walk has occurred.) The ASTVisitor modifies the visitor argument by adding a visit method to the visitor; this method can be used to visit a child node of arbitrary type. """ VERBOSE = 0 def __init__(self): self.node = None self._cache = {} def default(self, node, *args): for child in node.getChildNodes(): self.dispatch(child, *args) def dispatch(self, node, *args): self.node = node klass = node.__class__ meth = self._cache.get(klass, None) if meth is None: className = klass.__name__ meth = getattr(self.visitor, 'visit' + className, self.default) self._cache[klass] = meth ## if self.VERBOSE > 0: ## className = klass.__name__ ## if self.VERBOSE == 1: ## if meth == 0: ## print "dispatch", className ## else: ## print "dispatch", className, (meth and meth.__name__ or '') return meth(node, *args) def preorder(self, tree, visitor, *args): """Do preorder walk of tree using visitor""" self.visitor = visitor visitor.visit = self.dispatch self.dispatch(tree, *args) # XXX *args make sense? class ExampleASTVisitor(ASTVisitor): """Prints examples of the nodes that aren't visited This visitor-driver is only useful for development, when it's helpful to develop a visitor incrementally, and get feedback on what you still have to do. """ examples = {} def dispatch(self, node, *args): self.node = node meth = self._cache.get(node.__class__, None) className = node.__class__.__name__ if meth is None: meth = getattr(self.visitor, 'visit' + className, 0) self._cache[node.__class__] = meth if self.VERBOSE > 1: print "dispatch", className, (meth and meth.__name__ or '') if meth: meth(node, *args) elif self.VERBOSE > 0: klass = node.__class__ if klass not in self.examples: self.examples[klass] = klass print print self.visitor print klass for attr in dir(node): if attr[0] != '_': print "\t", "%-12.12s" % attr, getattr(node, attr) print return self.default(node, *args) # XXX this is an API change _walker = ASTVisitor def walk(tree, visitor, walker=None, verbose=None): if walker is None: walker = _walker() if verbose is not None: walker.VERBOSE = verbose walker.preorder(tree, visitor) return walker.visitor def dumpNode(node): print node.__class__ for attr in dir(node): if attr[0] != '_': print "\t", "%-10.10s" % attr, getattr(node, attr)