Google
 

jueves, 7 de agosto de 2008

Comandos last y lastb

Buenass

Hoy he descubierto dos nuevos comandos que me han sorprendido. Son bastante útiles y muestran la información muy ordenada. Los comandos son last, que muestra las últimas conexiones al sistema y lastb, que muestra las últimas conexiones fallidas.

$last
root tty1 Thu Aug 7 21:44 - 21:44 (00:00)
root tty1 Thu Aug 7 21:44 - 21:44 (00:00)
david :0 Thu Aug 7 21:44 still logged in
reboot system boot 2.6.24-19-generi Thu Aug 7 21:44 - 22:05 (00:20)
david :0 Thu Aug 7 14:18 - down (01:04)
reboot system boot 2.6.24-19-generi Thu Aug 7 14:17 - 15:23 (01:05)
david :0 Wed Aug 6 15:33 - down (02:26)
reboot system boot 2.6.24-19-generi Wed Aug 6 15:32 - 17:59 (02:27)
david :0 Wed Aug 6 10:13 - down (04:45)
reboot system boot 2.6.24-19-generi Wed Aug 6 10:13 - 14:59 (04:45)
david :0 Tue Aug 5 18:10 - down (01:49)
reboot system boot 2.6.24-19-generi Tue Aug 5 18:08 - 19:59 (01:51)
david :0 Tue Aug 5 16:33 - down (00:58)
reboot system boot 2.6.24-19-generi Tue Aug 5 16:33 - 17:31 (00:58)
david :0 Tue Aug 5 10:45 - down (03:47)
$

$lastb
lastb
UNKNOWN Thu Aug 7 22:07 - 22:07 (00:00)
david Sun Aug 3 13:54 - 13:54 (00:00)

btmp begins Sun Aug 3 13:54:10 2008
$

Acabo de realizar un intento de log in con un usuario falso y da el aviso con el usuario UNKNOWN.

David

No hay comentarios: