pull/384/head
TheDragonkeeper 2019-06-01 14:08:04 +01:00 committed by GitHub
parent 4d5530354d
commit 0929d604b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ function GET() {
DATABASE=/root/udisk/payloads/extensions/OSdatabase
FINGERPRINT=$(cat /var/log/syslog | grep FINGERPRINT | awk '{ print $9 " " $7 }' | awk '{ print $2 }' | awk 'END{print}')
[[ -f $DATABASE ]] || touch $DATABASE
sed -i $FINGERPRINT /var/log/syslog
sed -i "/$FINGERPRINT/d" /var/log/syslog
if [ -f $DATABASE ] ; then
TARGET_OS=$(cat $DATABASE | grep $FINGERPRINT | awk '{ print $2 }')
GET TARGET_IP