[root@localhost ~] Pyrasite Shell 2.0 Connected to 'python test.py' Python 3.6.3 (default, Nov 1 2017, 18:31:17) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux Type "help", "copyright", "credits" or "license" for more information. (DistantInteractiveConsole) >>> import sys >>> import uncompyle6 >>> dir() ['DistantInteractiveConsole', 'InteractiveConsole', 'ReverseConnection', 'ReversePythonConnection', 'ReversePythonShell', 'StringIO', 'Test', '__annotations__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', '__warningregistry__', 'json', 'pyrasite', 'socket', 'sys', 'test', 'threading', 'time', 'traceback', 'uncompyle6'] >>> dir(test) ['__annotations__', '__call__', '__class__', '__closure__', '__code__', '__defaults__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__get__', '__getattribute__', '__globals__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__kwdefaults__', '__le__', '__lt__', '__module__', '__name__', '__ne__', '__new__', '__qualname__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__'] >>> dir(Test) ['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'foo'] >>> dir(Test.foo) ['__annotations__', '__call__', '__class__', '__closure__', '__code__', '__defaults__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__get__', '__getattribute__', '__globals__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__kwdefaults__', '__le__', '__lt__', '__module__', '__name__', '__ne__', '__new__', '__qualname__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__'] >>> uncompyle6.main.decompile(3.6, test.__code__, sys.stdout) print('test') while True: print('123') time.sleep(3)<uncompyle6.semantics.pysource.SourceWalker object at 0x7f0a563a4ef0> >>> uncompyle6.main.decompile(3.6, Test.foo.__code__, sys.stdout) for i in range(10): print('foo')<uncompyle6.semantics.pysource.SourceWalker object at 0x7f0a556dae10> >>>
|