HEX
Server: nginx/1.18.0
System: Linux m1-ws1-ams3 5.4.0-148-generic #165-Ubuntu SMP Tue Apr 18 08:53:12 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /opt/aphex/backups/upload.sh
#!/bin/bash

# Exit if No File is Specified
if [[ "$#"  ==  '0' ]]; then
echo  -e 'ERROR: No File Specified!' && exit 1
fi

# File to Upload
FILE="@$1"

# Find the Best server to upload
SERVER=$(curl -s https://api.gofile.io/getServer | jq  -r ".data|.server")

UPLOAD=$(curl -F token=SsCwurroDlY72S98yUVgFIKyzvOa5nAJ -F folderId=093a105b-47be-4378-9e4b-8382ee9673d1  -F file=${FILE} -s https://${SERVER}.gofile.io/uploadFile)

LINK=$(echo $UPLOAD | jq -r ".data|.downloadPage")

# Print the link!
echo $LINK

echo " "