AnonSec Shell
Server IP : 20.75.53.88  /  Your IP : 216.73.217.138   [ Reverse IP ]
Web Server : Apache
System : Linux VMRALP-3 4.4.0-256-generic #290~14.04.1-Ubuntu SMP Thu Jun 20 09:24:50 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29+esm15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Domains : 3 Domains
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /var/lib/dpkg/info/landscape-client.config
#!/bin/sh

PACKAGE=landscape-client

CONFIGFILE=/etc/landscape/client.conf
set -e
. /usr/share/debconf/confmodule

var_in_file() {
    var="$1"
    file="$2"
    line=$(grep "^$var\s*=\s*" "$file" 2>/dev/null || true)
    echo "$line"
}

get_var_from_file() {
    var="$1"
    file="$2"
    val=$(grep "^$var\s*=\s*" "$file" 2>/dev/null | tail -n1 | sed "s/^.*=\s*//")
    echo "$val"
}

update_var() {
    var="$1"
    file="$2"
    line=$(var_in_file $var $file)
    if [ -n "$line" ]; then
        val=$(get_var_from_file $var $file)
        # Store value from config file in debconf.
        db_set $PACKAGE/$var $val
    fi
}

# Load config file, if it exists.
if [ -e $CONFIGFILE ]; then
    # Replace old registration_password to registration_key
    sed -i -r 's/^registration_password[[:blank:]]*=/registration_key =/' $CONFIGFILE
    # Config file is "ini" type, not shell, so we cannot source it
    # If a setting is defined in the config file, update it in debconf
    # db.
    update_var "computer_title" "$CONFIGFILE"
    update_var "account_name" "$CONFIGFILE"
    update_var "registration_key" "$CONFIGFILE"
    update_var "url" "$CONFIGFILE"
    update_var "exchange_interval" "$CONFIGFILE"
    update_var "urgent_exchange_interval" "$CONFIGFILE"
    update_var "ping_url" "$CONFIGFILE"
    update_var "ping_interval" "$CONFIGFILE"
    update_var "http_proxy" "$CONFIGFILE"
    update_var "https_proxy" "$CONFIGFILE"
    update_var "tags" "$CONFIGFILE"
fi

# Ask questions.
# Do debconf configuration
db_get $PACKAGE/register_system
if [ "$RET" = true ]; then
    priority=high
else
    priority=medium
fi
db_input "$priority" $PACKAGE/computer_title || true
db_input "$priority" $PACKAGE/account_name || true
db_input "$priority" $PACKAGE/registration_key || true

db_go || true

Anon7 - 2022
AnonSec Team