HEX
Server: nginx/1.29.3
System: Linux mail.sarafai.ru 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: dl,exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: //lib/set-root-pw/data
#!/bin/bash

[ -n "$_INCGD_data" ] && return || readonly _INCGD_data=1
source /usr/lib/set-root-pw/json
source /usr/lib/set-root-pw/logging


data_get_uuid()
{
    echo ${METADATA} | json_read uuid
}

data_get_hostname()
{
    echo ${METADATA} | json_read hostname
}

data_get_authorizedkeys()
{
    echo ${METADATA} | json_read "public_keys" ".\+"
}

data_get_passwordhash()
{
    # Some stupid caches
    if [[ "network" = "$SOURCE" ]]; then
        echo ${METADATA} | json_read "x_sel_server_password_hash"
    else
        echo ${VENDORDATA} | json_read "meta" "x_sel_server_password_hash"
    fi
}