403Webshell
Server IP : 34.87.99.72  /  Your IP : 216.73.217.31
Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n
System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64
User : bitnami ( 1000)
PHP Version : 7.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/bitnami/scripts/init/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/bitnami/scripts/init/bitnami_credentials_file
#!/bin/sh
#
# Create a separate file with credentials based on welcome message.
# Copyright 2021 Bitnami.com All Rights Reserved
#

. /opt/bitnami/scripts/init/functions

if [ "xbitnami" != "xroot" ] && [ -d "/home/bitnami" ]; then
    USERHOME="/home/bitnami"
else
    USERHOME="/root"
fi

cp /dev/null $USERHOME/bitnami_credentials || exit 1
chown bitnami:bitnami $USERHOME/bitnami_credentials || exit 1
chmod 0400 $USERHOME/bitnami_credentials || exit 1

bitnami_credentials_header() {
  echo "Welcome to the Bitnami LAMP Stack"
  echo 

  application_password=`get_applications_password`
  if [ "x$application_password" = "x" ] ; then
    application_password='some-secret-password'
  fi
  # If the application uses password and we have configured one
  if [ "xsome-secret-password" != "x" -a "x$application_password" != "x" ]; then
    if [ "x" != "x" ] ; then
      echo "******************************************************************************"
      echo "The default username and password is '' and '$application_password'."
      echo "******************************************************************************"
      echo 
    else
      echo "******************************************************************************"
      echo "The default password is '$application_password'."
      echo "******************************************************************************"
      echo 
    fi
    echo "You can also use this password to access the databases and any other component the stack includes."
    echo 
  fi
  echo "Please refer to https://docs.bitnami.com/ for more details."
  echo 
}

run_once_globally_check "bitnami_credentials_template"
if [ $? -eq 0 ]; then
  mkdir -p "$DATA_DIR/bitnami_credentials" && chmod 0755 "$DATA_DIR/bitnami_credentials" && rm -f "$DATA_DIR/bitnami_credentials/*"
  bitnami_credentials_header >$DATA_DIR/bitnami_credentials/credentials
fi

cat $DATA_DIR/bitnami_credentials/credentials > $USERHOME/bitnami_credentials

Youez - 2016 - github.com/yon3zu
LinuXploit