403Webshell
Server IP : 152.69.216.235  /  Your IP : 80.80.80.28
Web Server : Apache/2.4.37 (Oracle Linux Server)
System : Linux ust-wp4-prod 5.15.0-310.184.5.2.el8uek.x86_64 #2 SMP Wed Jul 9 16:08:33 PDT 2025 x86_64
User : apache ( 48)
PHP Version : 8.4.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/uptrack/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/uptrack/access-key-from-uln
#!/usr/libexec/platform-python

from __future__ import print_function

import sys
sys.path.append('/usr/share/rhn')

try:
    from up2date_client import up2dateAuth, rpcServer
except ImportError:
    # This is not a ULN-enabled system
    sys.exit(123)

import Uptrack
from six.moves.xmlrpc_client import Fault

system_id = up2dateAuth.getSystemId()
if system_id is None:
    # Not registered.
    sys.exit(124)

server = rpcServer.getServer()
try:
    result = server.system.get_ksplice_key(system_id)
except Fault as e:
    print("Unable to retrieve the Ksplice access key from ULN. ({0})".format(str(e)),
          file=sys.stderr)
    sys.exit(126)


access_key = result.get("key")
if access_key and str(access_key) != "-1":
    print(access_key)
    try:
        cfg = Uptrack.UptrackConfig()
        old_access_key = cfg.accesskey
    except Exception:
        old_access_key = None
    if old_access_key and old_access_key != "INSERT_ACCESS_KEY" and old_access_key != access_key:
        print("Your Ksplice access key is {0} according to ULN,".format(access_key), file=sys.stderr)
        print("but {0} uses a different key.".format(Uptrack.UPTRACK_CONFIG_FILE), file=sys.stderr)
else:
    print("Unable to retrieve the Ksplice access key from ULN.", file=sys.stderr)
    sys.exit(125)

Youez - 2016 - github.com/yon3zu
LinuXploit