Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.1.1 & Your IP : 3.132.213.245
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
twisted /
conch /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
client
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
insults
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
openssh_compat
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
scripts
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
ssh
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
test
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
ui
[ DIR ]
drwxr-xr-x
2024-11-28 06:59
__init__.py
198
B
-rw-r--r--
2022-02-07 13:12
avatar.py
1.6
KB
-rw-r--r--
2022-02-07 13:12
checkers.py
18.97
KB
-rw-r--r--
2022-02-07 13:12
endpoints.py
29.26
KB
-rw-r--r--
2022-02-07 13:12
error.py
2.6
KB
-rw-r--r--
2022-02-07 13:12
interfaces.py
14.57
KB
-rw-r--r--
2022-02-07 13:12
ls.py
2.63
KB
-rw-r--r--
2022-02-07 13:12
manhole.py
11.57
KB
-rw-r--r--
2022-02-07 13:12
manhole_ssh.py
4.32
KB
-rw-r--r--
2022-02-07 13:12
manhole_tap.py
5.36
KB
-rw-r--r--
2022-02-07 13:12
mixin.py
1.34
KB
-rw-r--r--
2022-02-07 13:12
recvline.py
18.71
KB
-rw-r--r--
2022-02-07 13:12
stdio.py
2.71
KB
-rw-r--r--
2022-02-07 13:12
tap.py
3.12
KB
-rw-r--r--
2022-02-07 13:12
telnet.py
37.16
KB
-rw-r--r--
2022-02-07 13:12
ttymodes.py
2.14
KB
-rw-r--r--
2022-02-07 13:12
unix.py
16.16
KB
-rw-r--r--
2022-02-07 13:12
Save
Rename
# -*- test-case-name: twisted.conch.test.test_manhole -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Asynchronous local terminal input handling @author: Jp Calderone """ import os import sys import termios import tty from twisted.conch.insults.insults import ServerProtocol from twisted.conch.manhole import ColoredManhole from twisted.internet import defer, protocol, reactor, stdio from twisted.python import failure, log, reflect class UnexpectedOutputError(Exception): pass class TerminalProcessProtocol(protocol.ProcessProtocol): def __init__(self, proto): self.proto = proto self.onConnection = defer.Deferred() def connectionMade(self): self.proto.makeConnection(self) self.onConnection.callback(None) self.onConnection = None def write(self, data): """ Write to the terminal. @param data: Data to write. @type data: L{bytes} """ self.transport.write(data) def outReceived(self, data): """ Receive data from the terminal. @param data: Data received. @type data: L{bytes} """ self.proto.dataReceived(data) def errReceived(self, data): """ Report an error. @param data: Data to include in L{Failure}. @type data: L{bytes} """ self.transport.loseConnection() if self.proto is not None: self.proto.connectionLost(failure.Failure(UnexpectedOutputError(data))) self.proto = None def childConnectionLost(self, childFD): if self.proto is not None: self.proto.childConnectionLost(childFD) def processEnded(self, reason): if self.proto is not None: self.proto.connectionLost(reason) self.proto = None class ConsoleManhole(ColoredManhole): """ A manhole protocol specifically for use with L{stdio.StandardIO}. """ def connectionLost(self, reason): """ When the connection is lost, there is nothing more to do. Stop the reactor so that the process can exit. """ reactor.stop() def runWithProtocol(klass): fd = sys.__stdin__.fileno() oldSettings = termios.tcgetattr(fd) tty.setraw(fd) try: stdio.StandardIO(ServerProtocol(klass)) reactor.run() finally: termios.tcsetattr(fd, termios.TCSANOW, oldSettings) os.write(fd, b"\r\x1bc\r") def main(argv=None): log.startLogging(open("child.log", "w")) if argv is None: argv = sys.argv[1:] if argv: klass = reflect.namedClass(argv[0]) else: klass = ConsoleManhole runWithProtocol(klass) if __name__ == "__main__": main()