X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=debian%2Fossec-hids%2Fvar%2Fossec%2Fagentless%2Fssh_integrity_check_bsd;fp=debian%2Fossec-hids%2Fvar%2Fossec%2Fagentless%2Fssh_integrity_check_bsd;h=0000000000000000000000000000000000000000;hp=658d1a5a06647f5bafbfc033e72fe6787f63fbbe;hb=946517cefb8751a43a89bda4220221f065f4e5d1;hpb=3f728675941dc69d4e544d3a880a56240a6e394a diff --git a/debian/ossec-hids/var/ossec/agentless/ssh_integrity_check_bsd b/debian/ossec-hids/var/ossec/agentless/ssh_integrity_check_bsd deleted file mode 100755 index 658d1a5..0000000 --- a/debian/ossec-hids/var/ossec/agentless/ssh_integrity_check_bsd +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env expect - -# Agentless monitoring -# -# Copyright (C) 2009 Trend Micro Inc. -# All rights reserved. -# -# This program is a free software; you can redistribute it -# and/or modify it under the terms of the GNU General Public -# License (version 2) as published by the FSF - Free Software -# Foundation. - -# Main script -source "agentless/main.exp" - -# SSH to the box and pass the directories to check -if [catch { - spawn ssh $hostname -} loc_error] { - send_user "\nERROR: Opening connection: $loc_error.\n" - exit 1; -} - -source $sshsrc -source $susrc - -set timeout 600 -send "for i in `find $args 2>/dev/null`;do tail \$i >/dev/null 2>&1 && md5=`md5 \$i | cut -d \"=\" -f 2|cut -d \" \" -f 2` && sha1=`sha1 \$i | cut -d \"=\" -f 2|cut -d \" \" -f 2` && echo FWD: `stat -f \"%Dz:%Dp:%Du:%Dg\" \$i`:\$md5:\$sha1 \$i; done; exit\r" -send "exit\r" - -expect { - timeout { - send_user "\nERROR: Timeout while running commands on host: $hostname .\n" - exit 1; - } - eof { - send_user "\nINFO: Finished.\n" - exit 0; - } -} - -exit 0;