Annotation of embedaddon/hping2/INSTALL, revision 1.1
1.1 ! misho 1: You can compile hping2 at least under:
! 2:
! 3: Linux
! 4: OpenBSD
! 5: FreeBSD
! 6: NetBSD
! 7: Solaris
! 8:
! 9: With Linux you don't need any libs, nor to be root,
! 10: however you need uid 0 to run hping.
! 11:
! 12: Linux
! 13: -----
! 14:
! 15: please, follows this steps:
! 16:
! 17: $ ./configure (first try ./configure --help)
! 18: $ vi Makefile (optional)
! 19: $ make
! 20: $ su
! 21: # make install
! 22:
! 23: FreeBSD, OpenBSD, NetBSD
! 24: ------------------------
! 25:
! 26: You will need the libpcap and the gmake utility installed on your system.
! 27:
! 28: $ ./configure
! 29: $ gmake
! 30: $ su (or calife)
! 31: # gmake install
! 32:
! 33: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
! 34: NOTE: You should take care about your net/bpf.h file installing on
! 35: BSD systems (specially with OpenBSD). If your original bpf.h was
! 36: overwritten with the libpcap one probably hping will not work
! 37: with over some interface.
! 38:
! 39: For example if you use the libpcap bpf.h on OpenBSD hping will
! 40: not work over PPP interfaces.
! 41: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
! 42:
! 43: Solaris
! 44: -------
! 45:
! 46: $ export CC="gcc"
! 47: $ ./configure
! 48: $ gmake
! 49: $ su
! 50: # gmake install
! 51:
! 52: ALL
! 53: ---
! 54:
! 55: If you need to run hping2 by your normal
! 56: account (i.e. antirez) try the following commands:
! 57:
! 58: # chown root:antirez /usr/sbin/hping2
! 59: # chmod 4750 /usr/sbin/hping2
! 60:
! 61: WARNING: hping2 is not trusted code, i didn't
! 62: audit for hidden buffers overflow and others
! 63: security related problems. However if (as default)
! 64: LIMITWHENSUID is defined if euid != uid
! 65: it's not possible to use a lot of options
! 66: trivially unsafe.
! 67:
! 68: suid it at root is not encouraged.
! 69:
! 70: antirez
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>