71 lines
1.5 KiB
Plaintext
71 lines
1.5 KiB
Plaintext
You can compile hping6 at least under:
|
|
|
|
Linux
|
|
OpenBSD
|
|
FreeBSD
|
|
NetBSD
|
|
Solaris
|
|
|
|
With Linux you don't need any libs, nor to be root,
|
|
however you need uid 0 to run hping.
|
|
|
|
Linux
|
|
-----
|
|
|
|
please, follows this steps:
|
|
|
|
$ ./configure (first try ./configure --help)
|
|
$ vi Makefile (optional)
|
|
$ make
|
|
$ su
|
|
# make install
|
|
|
|
FreeBSD, OpenBSD, NetBSD
|
|
------------------------
|
|
|
|
You will need the libpcap and the gmake utility installed on your system.
|
|
|
|
$ ./configure
|
|
$ gmake
|
|
$ su (or calife)
|
|
# gmake install
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
NOTE: You should take care about your net/bpf.h file installing on
|
|
BSD systems (specially with OpenBSD). If your original bpf.h was
|
|
overwritten with the libpcap one probably hping will not work
|
|
with over some interface.
|
|
|
|
For example if you use the libpcap bpf.h on OpenBSD hping will
|
|
not work over PPP interfaces.
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Solaris
|
|
-------
|
|
|
|
$ export CC="gcc"
|
|
$ ./configure
|
|
$ gmake
|
|
$ su
|
|
# gmake install
|
|
|
|
ALL
|
|
---
|
|
|
|
If you need to run hping6 by your normal
|
|
account (i.e. antirez) try the following commands:
|
|
|
|
# chown root:antirez /usr/sbin/hping6
|
|
# chmod 4750 /usr/sbin/hping6
|
|
|
|
WARNING: hping6 is not trusted code, i didn't
|
|
audit for hidden buffers overflow and others
|
|
security related problems. However if (as default)
|
|
LIMITWHENSUID is defined if euid != uid
|
|
it's not possible to use a lot of options
|
|
trivially unsafe.
|
|
|
|
suid it at root is not encouraged.
|
|
|
|
antirez
|