!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/scripts/hv/   drwxr-xr-x
Free 294.46 GB of 429.69 GB (68.53%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     hwcheck.sh (2.19 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/bin/bash
#
# File:     hwcheck.sh
#
# Purpose:  Check Current Hardware Config
#
# Version:  1.1.6
#
# Author:   Nate Kennison
#           <nate@hivelocity.net>
#
# Date:     1.28.2021
#
# License:  GPL version 2

#update pciids (this hangs)
#update-pciids > /dev/null 2>&1

#determine OS and Version
os=$(cat /etc/os-release |grep PRETTY_NAME | cut -f2 -d'=' | sed 's/"//g')

snumber=$(cat /etc/ssh/sshd_config |grep -w Port | sed 's/Port //g' | sed 's/#//g')
disk=$(fdisk -l |grep Disk |awk '{print $1,$2,$3,$4}' | sed s/,// | grep /dev/ | awk '{print $2,$3}' | grep -v loop)
part=$(df -h)
cpu=$(cat /proc/cpuinfo |grep "model name" | awk '{print $4,$5,$6,$7,$8,$9,$10}' | awk '!a[$0]++')
cpuc=$(cat /proc/cpuinfo |grep cores |awk '{print $4}'|awk 'NR < 2')
ram=$(free -m |grep "Mem" |awk '{print $2}')
cpuct=$(cat /proc/cpuinfo  | grep cores | awk '{print $4}' |wc -l)

if [[ `uname -ar | egrep -i i386` ]]; then
        bit=32
elif [[ `uname -ar | egrep -i 64` ]]; then
        bit=64
fi

echo "CPU(s):"
echo "$cpu"
echo ""
echo "$cpuc Physcial CPU Cores per CPU"
echo "$cpuct CPU Cores Total"
echo ""
echo "$ram Megabytes of RAM"
echo ""
echo "Hard Drives:"
echo "$disk"
echo ""
echo "Partitions:"
echo "$part"
echo ""
echo "Operating System: $os $bit Bit"
echo ""
echo "Configured SSH Port: $snumber"
echo ""

#check for 10gig
if [[ `which ethtool 2> /dev/null` ]];then
    interfaces=$(ip a | grep state | grep -v lo | awk '{print $2}' | cut -d : -f 1)
    tengig="False"
    for interface in $interfaces; do
        if [[ `ethtool $interface | grep 10000` ]]; then
            echo "$interface is 10Gig"
            tengig="True"
        fi
    done
elif [[ `lspci | egrep -i '10gig/|10-gigabit/|10GBASE-T'` ]];then
    tengig="True"
    lspci | egrep -i '10gig|10-gigabit'
fi

if [[ $tengig == "True" ]] ; then
    echo "10Gig detected."
    echo ""
fi


#check for nvidia card
if [[ `lspci | egrep -i 'VGA|3D'` ]];then
    lspci | egrep -i 'VGA|3D'
    echo ""
fi

if [[ `parted -l | grep /dev/md 2> /dev/null` ]];then
    echo "Software RAID Detected!"
    echo "Active drives:"
    cat /proc/mdstat |grep md
fi

#Check for cPanel
if [[ -d "/scripts" ]];then
    echo "cPanel detected"
else
    echo "No cPanel detected"
fi

sleep 1

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0956 ]--