Not that I remember, but I changed the script ssh.exp the word "Password" to "password", and for the root user it works, even if I e
and i get this: SGAMONITORL:/var/ossec# /agentless/ssh_integrity_check_linux [email protected] /etc spawn ssh [email protected] =============================================================================== "Estas accediendo a un servidor propiedad de Adserti. El usuario autorizado es responsable de proteger la informacion, mantener el secreto profesional e informar del mal uso de los sistemas. El acceso no autorizado a este sistema o el uso indebido del mismo estan prohibidos y es contrario a las politicas de Adserti. Adserti se reserva el derecho de monitoreo mediante el uso de la tecnologia. En caso de que sea detectada o revelada una posible actividad delictiva o no etica, el personal de seguridad puede proporcionar la evidencia para aplicar las medidas diciplinarias pertinentes." ============================================================================== [email protected]'s password: Last login: Wed Oct 24 13:33:07 2012 from 11.10.1.114 [root@sgasrv7l ~]# INFO: Started. ail $i >/dev/null 2>&1 && md5=`md5sum $i | cut -d " " -f 1` && sha1=`sha1sum $i | cut -d " " -f 1` && echo FWD: `stat --printf "%s:%a:%u:%g" $i`:$md5:$sha1 $i; done; exit INFO: Starting. stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :4ee9fc6b133371b428d71ec6b85abd00:bda321f5354b18a4306e328cc960ad35d45a4428 /etc/quotatab stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :d9164cb0da805bab84edf6e91fa5353f:6b9be93758298f88e782013a2b5d9884d6ba011c /etc/hosts.deny stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :bae514dfbc6352d4c2a929e4a55c151b:ed3ce140831bb508f20a140583221b3110189567 /etc/xdg/menus/system-settings.menu stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :8b61ff0bea2af73a49a4dfef0bb0f2e7:cac8fa07356f94637e16ba6638472e63d6b95460 /etc/xdg/menus/start-here.menu stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :62cac8a7b2bf1836d6d105e47b3a1965:f73ceef57f547c7af5151a64c9aab2c7f5bb8c4b /etc/xdg/menus/applications.menu.kde stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :a28256996d55d5827f0447982301d919:320d756f5285b5b69d3c3b0d72c1df3bf947cacf /etc/xdg/menus/server-settings.menu stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :8afc4f204f37c343e78a29d9982bd466:6931faba298103c03cb3dc6989b04ac405884318 /etc/xdg/menus/kde-screensavers.menu stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :70bb0fb3af18bba5b85098c9bd7f4a1f:2557e33b69c4d8c298f47202c3c93e994503a961 /etc/xdg/menus/applications.menu stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :261cd28ab83ec691263b7e7dcb7fc9d1:0e5fe2277dc720bcd8ab9a8736cf93a604cb46fa /etc/xdg/menus/preferences.menu stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :fd77c5c832ffa0a7152dedbc9b8e38e7:07c332c5174c0e137fbb54d572a8c1e7b4d730d9 /etc/xdg/menus/applications-merged/kde-essential.menu stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :cb5680d42731c9820374a461085376b0:b9f889682fe9e7047e1118d56d1b9e662fdbcdff /etc/xdg/menus/applications-merged/kde-multimedia-music.menu stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :f49a6d167de51dcc6854dabb340cf18e:bd70a6d68abc72b08ff7bb81a6f6e5793821c564 /etc/xdg/menus/kde-settings.menu stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :bb0506bcd029996bf9ebe8012fc454a1:158a498ad801b2757f9a603b2c62055b11ce174a /etc/xdg/menus/kde-information.menu stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :a6a6c093b522c2c232f7ee27e83db0ed:72af345a8ac65cec4700bd993c3f8d8ee6b3b508 /etc/samba/smbusers stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :d41d8cd98f00b204e9800998ecf8427e:da39a3ee5e6b4b0d3255bfef95601890afd80709 /etc/samba/secrets.tdb stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :0eea71665fb6890c06421fd13aa3f849:c7f9a550b77ece79052aa1a630098b911883abde /etc/samba/lmhosts stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :43a8bfa460de6cb0038f33bba11c4c4d:07becbc1fbd9e9b7cf2efc1de20fa5dc21009800 /etc/samba/smb.conf stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :f3b15b230ac18be7e30be9735fa68466:4809ba27bdf1605a46bf8fcbdcdf3d26065d3d3d /etc/sensors.conf stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :f965cac09d33b2d4c53c6b15d4772730:38555ec9bdf209d4f114a6b1d45e13ff5c631020 /etc/im_palette.pal stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :d19bbbed9d713f97f487b9ed9ec3f62f:091d38c25c8fb9b6fb272439a33895a6e440cdf0 /etc/skel/.bash_logout stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :b47fde291a7ff0d6edc9151f3af2ce2d:c0869b72c5606d22d92a6ac986686bb87485a25b /etc/skel/.zshrc stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :75bfe9274427104c608a4956beaef2e3:4d17da4aaa3f63fd2b7cf95066d5decb474a37f0 /etc/skel/.xemacs/init.el stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :6a16e5b87728699ffdebd3e8f3151d65:26fd0bbe42029d1dff9ea506f314d3d863b3539c /etc/skel/.gtkrc stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :c03dade4bb0152c9d0b6d871b4c082f4:d37466f611577d1e48f92a2a5363b54257092499 /etc/skel/.bash_profile stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :68d9a46c4ec07ac828458815d4b3cfad:d2cc18968567e2b664beae7166edef55a6919798 /etc/skel/.kde/Autostart/.directory stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :b4bae87d7ae5dec79524bcd6eefb9acb:09494d68295c788c71758e743f4f97c76381f2c2 /etc/skel/.bashrc stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :7ef643a7b76f6ad50d430e2f6b06d4ce:988142a6a0054aab390124efe4280e0df29d7316 /etc/skel/.emacs stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :6a21b2088cb3f70c3145ce9068f47d7b:aa299eef4c5d08651d1eebbb5c6cfba0e9c9d8f4 /etc/auto.net stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :30afa82e759c95ea880593a4fb43e25e:e326dc3711ce6dce8d6953a83c0e4df70cc72d61 /etc/securetty stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :8fb85af294938afdd2eecd3771c3880a:9d48db3791987c4ba104a8047ad2e44db0f97497 /etc/scsi_id.config stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :3562225116b6ff5dd5849927ca154301:07e678ea33a9fe8ffa1b5d1b46a3dbb9b9cd51f4 /etc/sound/events/mailcheck.soundlist stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :ddcb7a774dc5146f5d3baa9a1ec3645d:c7fcae0d55f2bf6853d825f733d9f8358e4d70dc /etc/sound/events/gtk-events-2.soundlist stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :e17d6d57f3f9f31a1d57eef3d148a161:e926f95657d950203ee2921c9879d2a2495e7f8b /etc/sound/events/gtk-events.soundlist stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :75d65d3416bb20644f8ea795c1d6ebd7:3ad997f9f496279236a27592be637dfee0199db1 /etc/sound/events/gnome.soundlist stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :a8a853345f58b0b32d3fe36941266ba2:e06c09fde40b0f6b2d593f5f9e95cb275b9d2b1f /etc/sound/events/gnome-2.soundlist stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :a4cbeea79d584e49041b15c2de2bab09:5e81103fcac6166d8c38f69f35c253fe287129ec /etc/rc.d/rc6.d/K75netfs stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :fd8b8afdb4717b9669707f8eb712916d:ebc75a90a3dd04caffafdc3211a2586244e14207 /etc/rc.d/rc6.d/K10psacct stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :6e109d54ffbc5ab41fbe43d78f2f4635:373a39782a0667044d65b689d624c0c30bc88a1f /etc/rc.d/rc6.d/K69rpcgssd stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :748a9da237f8714cdcb69bf6bd94b1b9:d71bee7c441f539439ab3b6882f1751c99e0548e /etc/rc.d/rc6.d/K99readahead_early stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :2a7226ab0f9e70b1d3ccd357458e46ba:b220d02d3ddb5e09b828813c36289d108c999126 /etc/rc.d/rc6.d/K72autofs stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :cb42092d7fc1c66ace9253546518d497:3637943f4f37c96f1c91b77d48aa185214e5086e /etc/rc.d/rc6.d/K40smartd stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :7813dc47284e3b398396552a9dd2e7ad:cc69f16e490b995bef7b5d4f9dde2a857d865c7d /etc/rc.d/rc6.d/K30sendmail stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :15a25aa3ff5f861aed913108917b3b5c:d9268539bdea580a778ed5e7184fbdecd04ca444 /etc/rc.d/rc6.d/K89xrdp stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :45f917db48fcb62c147c008e89b3ca65:1c23d32b180de2a155e22fa018804f277f876380 /etc/rc.d/rc6.d/K74nscd stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :245a8e325a2f64cfbe55504b8fa02c25:486c9b2e93752d67ff1ecabedcd90895d9b01e28 /etc/rc.d/rc6.d/K05saslauthd stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :e5d9911c8c40240e1d1b15e37b745267:253c483f716297ffd99c5cb6dfc68d8f6b491c8e /etc/rc.d/rc6.d/K35winbind stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :0048de510a7a4380b6cf5946946afac9:4db333d183c13b8265f3a4a24a89c66c2176f571 /etc/rc.d/rc6.d/K85mdmonitor stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :908f244e1099aabfc71c4a4da9c0fbf8:a9ce31fc3127b7be1b4bc437d541ccb829cdb9eb /etc/rc.d/rc6.d/K01tog-pegasus stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :34fbeec1d4a8d124bd11c7d1270e2045:3f27b370667845a6fad4c4b5a46af9622789f4ae /etc/rc.d/rc6.d/K50tux stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :16ed84999704cda362fc5365aa73301d:7f6d5b433a9d1cefbf3afdc093187ad9e70fe244 /etc/rc.d/rc6.d/K99lvm2-monitor stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :363d838bf795f9c70ba66c58f68cf3fb:a82a87ef394f212ecc6c298bad264914959dbfa4 /etc/rc.d/rc6.d/K92iptables stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :d693116d06499f90c0e0c91c1d71903a:bb7facb1ac04f60ca76a9520ba17e34f5c284eaf /etc/rc.d/rc6.d/K94diskdump stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :610f5e0d53172fcfa29c40f91a875468:bc90974ba6c38896167a5351c076465b99bcfb12 /etc/rc.d/rc6.d/K50snmpd stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :c0d5b854a49d78358e0e1a6c08fda8c6:94a0cd370044fa3ce7ef701904d6c6bf460abeab /etc/rc.d/rc6.d/K05anacron stat: unrecognized option `--printf' Try `stat --help' for more information. FWD: :5785b45089aaa5fb1f33107e31568f4f:6b332a779f5b3da518cc0562b20263be3076fe01 I asume it's working but when i execute it with ossec user i get this: SGAMONITORL:/var/ossec# sudo -u ossec ./agentless/ssh_integrity_check_linux [email protected] /et spawn ssh [email protected] =============================================================================== "Estas accediendo a un servidor propiedad de Adserti. El usuario autorizado es responsable de proteger la informacion, mantener el secreto profesional e informar del mal uso de los sistemas. El acceso no autorizado a este sistema o el uso indebido del mismo estan prohibidos y es contrario a las politicas de Adserti. Adserti se reserva el derecho de monitoreo mediante el uso de la tecnologia. En caso de que sea detectada o revelada una posible actividad delictiva o no etica, el personal de seguridad puede proporcionar la evidencia para aplicar las medidas diciplinarias pertinentes." ============================================================================== Last login: Wed Oct 24 14:02:06 2012 from 11.10.1.114 [root@sgasrv7l ~]# ERROR: Timeout while connecting to host: [email protected] . Daniel Flores
