This commit is contained in:
zj
2025-11-25 00:09:24 +08:00
parent 7f20d846d0
commit 6535c5fc79
16 changed files with 120 additions and 420 deletions

View File

@@ -4,23 +4,9 @@ ROOT_PATH="/home/smart/SmartOrganizer"
URL="https://security.baobaot.com/api/root-agent"
SIGN="DydaR2YpatScmyZKyDFVMvkTrN9TL7vz"
SCREENSHOT=""
PYSHELLNAME="scrot.py"
V1=3
PV=`python3 -V 2>&1|awk '{print $2}'|awk -F '.' '{print $1}'`
if [[ $PV -eq $V1 ]];then
echo "current py version is 3.x.x ,use scrot3.py"
PYSHELLNAME="scrot3.py"
if [[ -f ${ROOT_PATH}/bin/${PYSHELLNAME} ]];then
SCREENSHOT=$(python3 ${ROOT_PATH}/bin/${PYSHELLNAME})
fi
else
PYSHELLNAME="scrot.py"
if [[ -f ${ROOT_PATH}/bin/${PYSHELLNAME} ]];then
SCREENSHOT=$(python ${ROOT_PATH}/bin/${PYSHELLNAME})
fi
if [[ -f ${ROOT_PATH}/bin/scrot.py ]];then
SCREENSHOT=$(python ${ROOT_PATH}/bin/scrot.py)
fi
MACADDRESS=$(echo $(cat /sys/class/net/*/address | grep -v "00:00:00:00:00:00") | sed "s/ /,/g")
HOSTNAME=$(hostname)
# echo ${SCREENSHOT} ${HOSTNAME} ${MACADDRESS}