parent
8440b7416a
commit
4d5530354d
|
@ -19,9 +19,9 @@ function GET() {
|
||||||
;;
|
;;
|
||||||
"TARGET_OS")
|
"TARGET_OS")
|
||||||
DATABASE=/root/udisk/payloads/extensions/OSdatabase
|
DATABASE=/root/udisk/payloads/extensions/OSdatabase
|
||||||
FINGERPRINT=$(cat /var/log/syslog | grep FINGERPRINT | awk '{ print $9 " " $7 }' | sort -u | awk '{ print $2 }' | awk 'END{print}')
|
FINGERPRINT=$(cat /var/log/syslog | grep FINGERPRINT | awk '{ print $9 " " $7 }' | awk '{ print $2 }' | awk 'END{print}')
|
||||||
[[ -f $DATABASE ]] || touch $DATABASE
|
[[ -f $DATABASE ]] || touch $DATABASE
|
||||||
sed -i $FINGERPRINT > /var/log/syslog
|
sed -i $FINGERPRINT /var/log/syslog
|
||||||
if [ -f $DATABASE ] ; then
|
if [ -f $DATABASE ] ; then
|
||||||
TARGET_OS=$(cat $DATABASE | grep $FINGERPRINT | awk '{ print $2 }')
|
TARGET_OS=$(cat $DATABASE | grep $FINGERPRINT | awk '{ print $2 }')
|
||||||
GET TARGET_IP
|
GET TARGET_IP
|
||||||
|
|
Loading…
Reference in New Issue