Uname:Linux server17213-10344.hostycare.online 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64

403WebShell
403Webshell
Server IP : 103.243.232.44  /  Your IP : 216.73.216.69
Web Server : LiteSpeed
System : Linux server17213-10344.hostycare.online 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User : iamakash ( 1400)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3.9/site-packages/gnome_browser_connector/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/gnome_browser_connector/main.py
# SPDX-License-Identifer: GPL-3.0-or-later

import logging
import os
import sys

from .application import Application
from .constants import CONNECTOR_ARG
from .logs import NameAbbrFilter

def main():
    logging.basicConfig(
        format="%(asctime)s: [%(process)d] %(levelname)s %(name_abbr)s %(message)s",
        level=getattr(
            logging,
            os.getenv("GNOME_BROWSER_CONNECTOR_LOGLEVEL", "warning").upper()
        ),
        stream=sys.stderr
    )
    logging.getLogger().handlers[0].addFilter(NameAbbrFilter())
    logging.debug('Main')

    app = Application()
    code = app.run(sys.argv)

    logging.debug('Quit')

    return code

def connector():
    ensure_argument_exists(CONNECTOR_ARG)
    return main()

def ensure_argument_exists(argument: str):
    if f"--{argument}" not in sys.argv:
        sys.argv.insert(1, f"--{argument}")

Youez - 2016 - github.com/yon3zu
LinuXploit