fix SOS
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user