Exploit database

GH-27c6810675afb107972a1bb66ce777ce

josephgodwinkimani/cloudpanel-2.4.2-cve-2024-44765-recovery

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2024-44765

1 source

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

Repository files4

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

version_checker.sh

Shell · 507 bytes
#!/usr/bin/env bash

# Define the path to the .env file
ENV_FILE="/home/clp/htdocs/app/files/.env"

# Check if the file exists
if [ -f "$ENV_FILE" ]; then
  # Use grep to find the APP_VERSION line and cut to extract the version
  CLOUDPANEL_VERSION=$(grep "APP_VERSION" "$ENV_FILE" | cut -d "'" -f 2)
  if [ -n "$CLOUDPANEL_VERSION" ]; then
    echo "CloudPanel Version: $CLOUDPANEL_VERSION"
  else
    echo "Error: APP_VERSION not found in the .env file."
  fi
else
  echo "Error: .env file not found."
fi