403Webshell
Server IP : 3.147.158.171  /  Your IP : 216.73.216.229
Web Server : Apache/2.4.67 (Amazon Linux) OpenSSL/3.5.5
System : Linux ip-172-31-2-178.us-east-2.compute.internal 6.1.172-216.329.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 20 06:31:34 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.21
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/rpm/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/rpm/sysusers.prov
#!/usr/bin/bash

process_u() {
    if [ ! -z "${2##*[!0-9]*}" ]; then
        # Single shared static ID.
        echo "user($1) = $2"
        echo "group($1) = $2"
    elif [[ $2 == *:* ]]; then
        # UID:<group>.
        uid=$(echo $2 | cut -d':' -f1 -)
        group=$(echo $2 | cut -d':' -f2 -)
        if [ ! -z "${group##*[!0-9]*}" ]; then
            # UID:GID.
            echo "user($1) = ${uid}"
            echo "group($1) = ${group}"
        else
            # UID:<groupname>.
            echo "user($1) = ${uid}"
            echo "group(${group})"
        fi
    else
        # Dynamic (or something else uninteresting).
        echo "user($1)"
        echo "group($1)"
    fi
}

process_g() {
    if [ ! -z "${2##*[!0-9]*}" ]; then
        # Static GID.
        echo "group($1) = $2"
    else
        # Dynamic (or something else uninteresting).
        echo "group($1)"
    fi
}

parse() {
    while read line; do
        [ "${line:0:1}" = '#' -o "${line:0:1}" = ';' ] && continue
        line="${line## *}"
        [ -z "$line" ] && continue
        set -- $line
        case "$1" in
            ('u')
                process_u "$2" "$3"
                ;;
            ('g')
                process_g "$2" "$3"
                ;;
            ('m')
                echo "user($2)"
                echo "group($3)"
                ;;
        esac
    done
}

while read fn; do
    parse < "$fn"
done

Youez - 2016 - github.com/yon3zu
LinuXploit