- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How do I install chkrootkit in HP-UX 11.0
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 07:02 PM
11-11-2003 07:02 PM
How do I install chkrootkit in HP-UX 11.0
I have tried to install chkrootkit-0.42b on HP-UX 11.0 with gcc v 3.2.
get chkrootkit.tar.gz form ftp://ftp.pangeia.com.br/pub/seg/pac/ and
following steps.
# gzip -d chkrootkit.tar.gz
# tar xvf chkrootkit.tar
# cd chkrootkit-0.42b
# make sense
gcc -O -o chklastlog chklastlog.c
chklastlog.c: In function `main':
chklastlog.c:98: storage size of `lastlog_ent' isn't known
chklastlog.c:173: sizeof applied to an incomplete type
chklastlog.c:174: sizeof applied to an incomplete type
chklastlog.c:176: sizeof applied to an incomplete type
*** Error exit code 1
Someone who can install hkrootkit in HP-UX 11.0 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 07:20 PM
11-11-2003 07:20 PM
Re: How do I install chkrootkit in HP-UX 11.0
If you have C Compiler try to compile with it.
There are two possiblity,
1) Down load Source again, and try to complie it.
2) gcc compiler may have problem.
Regards,
Bala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 08:44 PM
11-11-2003 08:44 PM
Re: How do I install chkrootkit in HP-UX 11.0
For now you can download a precompiled version here;
http://wap.mobile4u.de/chkrootkit-0.39a/
Its not the latest version, but it works fine. Simply select each file and right click SAVE TARGET AS (select type ALL FILES) then when done run ./chkrootkit
(These are 64bit binaries so you must run on an 11.0 64bit machine)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 06:32 PM
11-13-2003 06:32 PM
Re: How do I install chkrootkit in HP-UX 11.0
> Down load Source again, and try to complie it.
I try it, but same error occerd.
> gcc compiler may have problem.
Yes I have HP C Compiler.
Change Makefile and compile with HP C Compiler
# CC = gcc
CC = cc
# make sense
cc -O -o chklastlog chklastlog.c
cc: "chklastlog.c", line 98: error 1574: Unknown size for "lastlog_ent".
.
.
> For now you can download a precompiled version here;
> http://wap.mobile4u.de/chkrootkit-0.39a/
# ./chklastlog
sh: ./chklastlog: Execute permission denied.
# ls -l chklastlog
-rwxr-xr-x 1 root root 7216 Nov 14 16:03 chklastlog
This machine is L2000 that must be 64bit. Hummm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2004 10:38 PM
08-15-2004 10:38 PM
Re: How do I install chkrootkit in HP-UX 11.0
I am attempting to compile chkrootkit 0.43 using cc with a similar lack of success and hope to hear from the maintainers again soon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2004 02:28 AM
08-27-2004 02:28 AM
Re: How do I install chkrootkit in HP-UX 11.0
chklastlog.c
I have searched my entire system for lastlog.h [the header file that defines the lastlog_ent structure]. The file does not exist on my system.
.. where may I find lastlog.h?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 07:31 AM
12-13-2004 07:31 AM
Re: How do I install chkrootkit in HP-UX 11.0
# ifndef UT_HOSTSIZE
# define UT_HOSTSIZE 16
# endif /* UT_HOSTSIZE */
# ifndef UT_LINESIZE
# define UT_LINESIZE 12
# endif /* UT_LINESIZE */
#endif
#if defined(hpux)
struct lastlog {
time_t ll_time;
char ll_line[UT_LINESIZE];
char ll_host[UT_HOSTSIZE]; /* same as in utmp */
};
#endif /* hpux */
and add the following to CFLAGS:
CFLAGS = -DHAVE_LASTLOG_H -D _XPG4_EXTENDED -Dhpux
This should fix the compile problems.
--Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 01:11 AM
12-14-2004 01:11 AM
Re: How do I install chkrootkit in HP-UX 11.0
Was the missing #if important?
This just confirmed that my install of HP-UX does not have a lastlog ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 11:46 PM
03-31-2005 11:46 PM
Re: How do I install chkrootkit in HP-UX 11.0
EDIT chkdirs.c
goto line 39
insert the following (after line 39):
#if defined(hpux)
#include
#endif
-------------------------------------------
EDIT chklastlog.c
goto line 47
insert the following (after line 47):
#ifndef UT_HOSTSIZE
# define UT_HOSTSIZE 16
#endif /* UT_HOSTSIZE */
#ifndef UT_LINESIZE
# define UT_LINESIZE 12
#endif /* UT_LINESIZE */
#if defined(hpux)
#include
struct lastlog {
time_t ll_time;
char ll_line[UT_LINESIZE];
char ll_host[UT_HOSTSIZE]; /* same as in utmp */
};
#endif /* hpux */
-------------------------------------------
EDIT Makefile
goto line 7
replace line 7 with:
CFLAGS = -DHAVE_LASTLOG_H -D_XPG4_EXTENDED -Dhpux
goto line 53
replace line 53 with:
${CC} ${CFLAGS} ${LDFLAGS} -o $@ chkdirs.c
PUT A TAB in FRONT of the ${CC} or the makefile will crap the bed!!!!!!!!!
-------------------------------------------
to "make" the package use either:
make sense
or
gmake sense
then run it like this:
./chkrootkit
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2005 06:34 AM
04-01-2005 06:34 AM
Re: How do I install chkrootkit in HP-UX 11.0
I also emailed the authors with the changes (and a link to this forum) to get it to work, hopefully they get them "in" by their next release ;-)
live free or die
harry d brown jr