OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
twisted
/
conch
/
ssh
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/31/2022 06:22:38 AM
rwxr-xr-x
📄
__init__.py
183 bytes
09/08/2017 10:38:36 AM
rw-r--r--
📁
__pycache__
-
03/31/2022 06:22:39 AM
rwxr-xr-x
📄
_kex.py
7.49 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
address.py
1.13 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
agent.py
9.46 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
channel.py
9.62 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
common.py
2.12 KB
09/08/2017 10:38:35 AM
rw-r--r--
📄
connection.py
25.12 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
factory.py
3.73 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
filetransfer.py
33.53 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
forwarding.py
7.98 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
keys.py
52.35 KB
09/08/2017 10:38:35 AM
rw-r--r--
📄
service.py
1.42 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
session.py
10.95 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
sexpy.py
1.03 KB
09/08/2017 10:38:36 AM
rw-r--r--
📄
transport.py
70.94 KB
03/22/2022 11:03:56 AM
rw-r--r--
📄
userauth.py
26.7 KB
09/08/2017 10:38:36 AM
rw-r--r--
Editing: sexpy.py
Close
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. from __future__ import absolute_import, division from twisted.python.compat import intToBytes def parse(s): s = s.strip() expr = [] while s: if s[0:1] == b'(': newSexp = [] if expr: expr[-1].append(newSexp) expr.append(newSexp) s = s[1:] continue if s[0:1] == b')': aList = expr.pop() s=s[1:] if not expr: assert not s return aList continue i = 0 while s[i:i+1].isdigit(): i+=1 assert i length = int(s[:i]) data = s[i+1:i+1+length] expr[-1].append(data) s=s[i+1+length:] assert 0, "this should not happen" def pack(sexp): s = b"" for o in sexp: if type(o) in (type(()), type([])): s+=b'(' s+=pack(o) s+=b')' else: s+=intToBytes(len(o)) + b":" + o return s