SUN solaris hacked[请求]

  • 主题发起人 主题发起人 E&E
  • 开始时间 开始时间

E&E

新手上路
注册
2002-05-30
消息
482
荣誉分数
0
声望点数
0
这几天机器好些被黑了,不知道怎么搞定. OS is 9. No firwall installed
有什么log files 之类的可以看看吗? 软件?
 
Command finger displays information about local and remote users.
log files located under /var.
 
Re: Re: SUN solaris hacked[请求]

There is a file /var/adm/utmp or /var/adm/wtmp records all users's account information. Man page utmp shows its structure. I think the following lines can be used in the code:
FILE* fp=fopen(WTMP_FILE, "rb");
struct utmp u;
while(fread(&u, sizeof(u), 1, fp) > 0)
{
// For each entry check whatever you want
// Or get the clue you are interested
}
 
后退
顶部