Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.52
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
twisted /
protocols /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
haproxy
[ DIR ]
drwxr-xr-x
test
[ DIR ]
drwxr-xr-x
__init__.py
397
B
-rw-r--r--
amp.py
94.23
KB
-rw-r--r--
basic.py
30.9
KB
-rw-r--r--
dict.py
10.64
KB
-rw-r--r--
finger.py
1.19
KB
-rw-r--r--
ftp.py
101.97
KB
-rw-r--r--
htb.py
9.2
KB
-rw-r--r--
ident.py
7.75
KB
-rw-r--r--
loopback.py
11.65
KB
-rw-r--r--
memcache.py
23.1
KB
-rw-r--r--
pcp.py
7.02
KB
-rw-r--r--
policies.py
20.87
KB
-rw-r--r--
portforward.py
2.32
KB
-rw-r--r--
postfix.py
3.55
KB
-rw-r--r--
shoutcast.py
3.48
KB
-rw-r--r--
sip.py
37.07
KB
-rw-r--r--
socks.py
7.74
KB
-rw-r--r--
stateful.py
1.64
KB
-rw-r--r--
tls.py
31.74
KB
-rw-r--r--
wire.py
2.44
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : stateful.py
# -*- test-case-name: twisted.test.test_stateful -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. from io import BytesIO from twisted.internet import protocol class StatefulProtocol(protocol.Protocol): """A Protocol that stores state for you. state is a pair (function, num_bytes). When num_bytes bytes of data arrives from the network, function is called. It is expected to return the next state or None to keep same state. Initial state is returned by getInitialState (override it). """ _sful_data = None, None, 0 def makeConnection(self, transport): protocol.Protocol.makeConnection(self, transport) self._sful_data = self.getInitialState(), BytesIO(), 0 def getInitialState(self): raise NotImplementedError def dataReceived(self, data): state, buffer, offset = self._sful_data buffer.seek(0, 2) buffer.write(data) blen = buffer.tell() # how many bytes total is in the buffer buffer.seek(offset) while blen - offset >= state[1]: d = buffer.read(state[1]) offset += state[1] next = state[0](d) if ( self.transport.disconnecting ): # XXX: argh stupid hack borrowed right from LineReceiver return # dataReceived won't be called again, so who cares about consistent state if next: state = next if offset != 0: b = buffer.read() buffer.seek(0) buffer.truncate() buffer.write(b) offset = 0 self._sful_data = state, buffer, offset
Close