Skip to content

Commit 7257579

Browse files
committed
Git repository created from hping3-clockskew-0.tar.gz
This is, AFAIK, the most latest source code for hping3. Last time I worked at it was September 2006.
0 parents  commit 7257579

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+57867
-0
lines changed

AUTHORS

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Lead developer and maintainer:
2+
3+
Salvatore Sanfilippo <[email protected]>
4+
5+
Regular contributors:
6+
7+
Nicolas Jombart <[email protected]>
8+
Denis Ducamp <[email protected]>
9+
Yann Berthier <[email protected]>
10+
Stephane Aubert <[email protected]>
11+
12+
Other contributors:
13+
14+
Brieuc Jeunhomme <[email protected]>
15+
16+
Alfonso De Gregorio <[email protected]>
17+
Francesco Potorti` <[email protected]>
18+
Daniel Ginsburg <[email protected]>
19+
Steve Bleazard <[email protected]>
20+
21+
22+
Also thanks to the following people for testing, bug reports, ideas,
23+
minor patches, documentation fixes:
24+
25+
Valeriano Bedeschi <[email protected]>
26+
Lorenzo Cavallaro <[email protected]>
27+
awgn roofing <[email protected]>
28+
Darren Reed <[email protected]>
29+
Lance Spitzner <[email protected]>
30+
Stefano Brandimarte <[email protected]>
31+
"roy kozzer" <[email protected]>
32+
Jason Lunz <[email protected]>
33+
Domenico Andreoli <[email protected]>
34+
Gian-Luca Dei Rossi <[email protected]>
35+
Marco D'Itri <[email protected]>
36+
Rui Miguel Barbosa Machado <[email protected]>
37+
David Bar <[email protected]>
38+
David Coppa <[email protected]>
39+
Shachar Shemesh <[email protected]>
40+
Brieuc Jeunhomme <[email protected]>
41+
Hans-Joachim Knobloch <[email protected]>
42+
Olivier Warin <[email protected]>
43+
44+
--------------------------------------------------------------------------------
45+
Note: if you aren't in this list for an oversight, please inform me.

BUGS

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
------------------------------------------------
2+
Please, use this procedure to report hping3 bugs
3+
------------------------------------------------
4+
5+
- If you are able to use a Wiki:
6+
7+
Go to http://wiki.hping.org/20 and use the 'edit' button to
8+
add your bug report.
9+
10+
- If you can't use the Wiki:
11+
12+
Follow the istructions at wiki.hping.org/20 but instead to add
13+
the bug report in the hping web site, write me an email.

CHANGES

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CHANGES LOG
2+
$Id: CHANGES,v 1.2 2004/03/29 23:12:04 antirez Exp $
3+
4+
30Mar2004 - First public release of hping3

COPYING

+351
Large diffs are not rendered by default.

INSTALL

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
You can compile hping3 at least under:
2+
3+
Linux
4+
OpenBSD
5+
FreeBSD
6+
NetBSD
7+
Solaris
8+
9+
But hping3 is beta, for now it was mostly tested only in Linux,
10+
this should change soon now that the first beta is out.
11+
12+
Note that starting from hping3 libpcap should be used
13+
with all the kind of systems, including Linux.
14+
15+
Linux
16+
-----
17+
18+
please, follows this steps:
19+
20+
$ ./configure (first try ./configure --help)
21+
$ vi Makefile (optional)
22+
$ make
23+
$ su
24+
# make install
25+
26+
FreeBSD, OpenBSD, NetBSD
27+
------------------------
28+
29+
You will need the libpcap and the gmake utility installed on your system.
30+
31+
$ ./configure
32+
$ gmake
33+
$ su (or calife)
34+
# gmake install
35+
36+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
37+
NOTE: You should take care about your net/bpf.h file installing on
38+
BSD systems (specially with OpenBSD). If your original bpf.h was
39+
overwritten with the libpcap one probably hping will not work
40+
with over some interface.
41+
42+
For example if you use the libpcap bpf.h on OpenBSD hping will
43+
not work over PPP interfaces.
44+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
45+
46+
Solaris
47+
-------
48+
49+
$ export CC="gcc"
50+
$ ./configure
51+
$ gmake
52+
$ su
53+
# gmake install
54+
55+
ALL
56+
---
57+
58+
To setuid hping3 is like to open the port to script kiddies
59+
for now. Don't do it in any real multiuser and otherwise
60+
security-sensitive system.
61+
62+
antirez

KNOWN-BUGS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
See the BUGS manual section.

Makefile.in

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# $smu-mark$
2+
# $name: Makefile.in$
3+
# $author: Salvatore Sanfilippo 'antirez'$
4+
# $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
5+
# $license: This software is under GPL version 2 of license$
6+
# $date: Sun Jul 25 17:56:15 MET DST 1999$
7+
# $rev: 3$
8+
9+
CC= gcc
10+
AR=/usr/bin/ar
11+
RANLIB=/usr/bin/ranlib
12+
CCOPT= -O2 -Wall @PCAP_INCLUDE@ @TCL_INC@ @USE_TCL@
13+
DEBUG= -g
14+
#uncomment the following if you need libpcap based build under linux
15+
#(not raccomanded)
16+
COMPILE_TIME=
17+
INSTALL_MANPATH=@MANPATH@
18+
@PCAP@
19+
20+
ARSOBJ = ars.o apd.o split.o rapd.o
21+
22+
OBJ= main.o getifname.o getlhs.o \
23+
parseoptions.o datafiller.o \
24+
datahandler.o gethostname.o \
25+
binding.o getusec.o opensockraw.o \
26+
logicmp.o waitpacket.o resolve.o \
27+
sendip.o sendicmp.o sendudp.o \
28+
sendtcp.o cksum.o statistics.o \
29+
usage.o version.o antigetopt.o \
30+
sockopt.o listen.o \
31+
sendhcmp.o memstr.o rtt.o \
32+
relid.o sendip_handler.o \
33+
libpcap_stuff.o memlockall.o memunlockall.o \
34+
memlock.o memunlock.o ip_opt_build.o \
35+
display_ipopt.o sendrawip.o signal.o send.o \
36+
strlcpy.o arsglue.o random.o scan.o \
37+
hstring.o script.o interface.o \
38+
adbuf.o hex.o apdutils.o sbignum.o \
39+
sbignum-tables.o $(ARSOBJ)
40+
41+
all: .depend hping3
42+
43+
dep: .depend
44+
.depend:
45+
@echo Making dependences
46+
@$(CC) -MM *.c > .depend
47+
48+
libars.a: $(ARSOBJ)
49+
$(AR) rc $@ $^
50+
$(RANLIB) $@
51+
52+
hping3: byteorder.h $(OBJ)
53+
$(CC) -o hping3 $(CCOPT) $(DEBUG) $(OBJ) -L/usr/local/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@
54+
@echo
55+
./hping3 -v
56+
@echo "use \`make strip' to strip hping3 binary"
57+
@echo "use \`make install' to install hping3"
58+
59+
hping3-static: byteorder.h $(OBJ)
60+
$(CC) -static -o hping3-static $(CCOPT) $(DEBUG) $(OBJ) -L/usr/local/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@ -ldl
61+
62+
byteorder.h:
63+
./configure
64+
65+
.c.o:
66+
$(CC) -c $(CCOPT) $(DEBUG) $(COMPILE_TIME) $<
67+
68+
clean:
69+
rm -rf hping3 *.o libars.a
70+
71+
distclean:
72+
rm -rf hping3 *.o byteorder byteorder.h systype.h Makefile libars.a .depend
73+
74+
install: hping3
75+
cp -f hping3 /usr/sbin/
76+
chmod 755 /usr/sbin/hping3
77+
ln -s /usr/sbin/hping3 /usr/sbin/hping
78+
ln -s /usr/sbin/hping3 /usr/sbin/hping2
79+
@if [ -d ${INSTALL_MANPATH}/man8 ]; then \
80+
cp ./docs/hping3.8 ${INSTALL_MANPATH}/man8; \
81+
chmod 644 ${INSTALL_MANPATH}/man8/hping3.8; \
82+
else \
83+
echo "@@@@@@ WARNING @@@@@@"; \
84+
echo "Can't install the man page: ${INSTALL_MANPATH}/man8 does not exist"; \
85+
fi
86+
87+
strip: hping3
88+
@ls -l ./hping3
89+
strip hping3
90+
@ls -l ./hping3
91+
92+
include .depend

NEWS

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Read the README file to know about the new features in general.
2+
3+
------ hping3 alpha2 -------
4+
5+
Two new features for the command line interface.
6+
7+
1) Using the --beep option hping will produce a beep for every matching
8+
packet received (not for ICMP errors).
9+
10+
2) The --flood option to send packets as fast as possible. This
11+
is much faster than "-i u1", because it's actually an endless
12+
loop and in this mode hping will not care to read/show replies
13+
at all.
14+
15+
------ hping3 alpha1 -------
16+
17+
Read the docs/API.txt for information about scripting capabilties.
18+
19+
Check the libs directory for examples of hping scripts.
20+
21+
Try the --scan option in the command line to see the port-scanner features.
22+
23+
Example of the --scan option usage:
24+
25+
# hping3 --scan known 1.2.3.4 -S
26+
27+
Scanning 1.2.3.4 (1.2.3.4), port known
28+
245 ports to scan, use -V to see all the replies
29+
+----+-----------+---------+---+-----+-----+-----+
30+
|port| serv name | flags |ttl| id | win | len |
31+
+----+-----------+---------+---+-----+-----+-----+
32+
9 discard : .S..A... 64 0 32767 44
33+
13 daytime : .S..A... 64 0 32767 44
34+
21 ftp : .S..A... 64 0 32767 44
35+
22 ssh : .S..A... 64 0 32767 44
36+
25 smtp : .S..A... 64 0 32767 44
37+
37 time : .S..A... 64 0 32767 44
38+
80 www : .S..A... 64 0 32767 44
39+
111 sunrpc : .S..A... 64 0 32767 44
40+
113 auth : .S..A... 64 0 32767 44
41+
631 ipp : .S..A... 64 0 32767 44
42+
3306 mysql : .S..A... 64 0 32767 44
43+
6000 x11 : .S..A... 64 0 32767 44
44+
6667 ircd : .S..A... 64 0 3072 44
45+
All replies received. Done.
46+
Not responding ports:

README

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
hping3 README file
2+
3+
4+
DESCRIPTION
5+
6+
hping3 is a network tool able to send custom TCP/IP
7+
packets and to display target replies like ping do with
8+
ICMP replies. hping3 can handle fragmentation, and
9+
almost arbitrary packet size and content, using the
10+
command line interface.
11+
12+
Since version 3, hping implements scripting capabilties,
13+
read the API.txt file under the /docs directory to know
14+
more about it.
15+
16+
As a command line utility, hping is useful to test at
17+
many kind of networking devices like firewalls, routers,
18+
and so. It can be used as a traceroute alike program over all
19+
the supported protocols, firewalk usage, OS fingerprinting,
20+
port-scanner (see the --scan option introduced with hping3),
21+
TCP/IP stack auditing.
22+
23+
It's also really a good didactic tool to learn TCP/IP.
24+
25+
Using Tcl/Tk scripting much more can be done, because
26+
while the hping3 packet generation code is actually the
27+
hping2 put there mainly for compatibility with the command
28+
line interface, all the real news are about scripting.
29+
30+
See the libs directory for example scripts. To run
31+
the example scripts type:
32+
33+
hping3 exec ScriptName.htcl <arguments, if required>
34+
35+
hping3 is developed and manteined by [email protected]
36+
with the help of other hackers, and comes under GPL version
37+
2 of license. Development is open so you can send me
38+
patches/suggestions/affronts without inhibitions.
39+
40+
Please check the AUTHORS file for a list of people that
41+
contribued with code, ideas, bug reports.
42+
43+
Also vim developer, ee.lbl.gov for tcpdump and GNU in general.
44+
45+
DOCUMENTATION
46+
47+
For the hping3 API check docs/API.txt
48+
49+
You can find documentation about hping3 specific functions
50+
at http://wiki.hping.org
51+
52+
Make sure to check the page at http://wiki.hping.org/34
53+
54+
DOWNLOAD
55+
56+
The hping3 primary download site is the following:
57+
58+
http://www.hping.org
59+
60+
----------------------------------------------------------------
61+
How to get the hping3 source code from the anonymous CVS server
62+
----------------------------------------------------------------
63+
64+
$ cvs -d :pserver:[email protected]:/cvsroot/hping2 login
65+
66+
CVS will ask for the password, just press enter, no password is required
67+
68+
than type the following to download the full source code.
69+
70+
$ cvs -z8 -d :pserver:[email protected]:/cvsroot/hping2 checkout hping3s
71+
72+
-----------------------------------
73+
How to update your source code tree
74+
-----------------------------------
75+
76+
change the current directory to /somewhere/hping2, than just type:
77+
78+
$ cvs update
79+
80+
REQUIREMENTS
81+
82+
A supported unix-like OS, gcc, root access.
83+
84+
Libpcap.
85+
86+
Tcl/Tk is optional but strongly suggested.
87+
88+
INSTALLATION
89+
90+
see INSTALL file.
91+
92+
have fun,
93+
antirez

RFCs/INDEX

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
The ARS lib is useless without knowledge about TCP/IP.
2+
This are the RFCs you need to learn what you need, or to
3+
refresh your memory.
4+
5+
FILENAME RFC TITLE
6+
-------- ---------
7+
8+
rfc768.txt User Datagram Protocol
9+
rfc791.txt INTERNET PROTOCOL
10+
rfc792.txt INTERNET CONTROL MESSAGE PROTOCOL
11+
rfc793.txt TRANSMISSION CONTROL PROTOCOL
12+
rfc826.txt An Ethernet Address Resolution Protocol
13+
rfc950.txt Internet Standard Subnetting Procedure
14+
rfc1063.txt IP MTU Discovery Options
15+
rfc1072.txt TCP Extensions for Long-Delay Paths
16+
rfc1112.txt Host Extensions for IP Multicasting
17+
rfc1122.txt Requirements for Internet Hosts -- Communication Layers
18+
rfc1323.txt TCP Extensions for High Performance
19+
rfc1812.txt Requirements for IP Version 4 Routers
20+
rfc2018.txt TCP Selective Acknowledgment Options
21+
rfc2236.txt Internet Group Management Protocol, Version 2
22+
rfc2460.txt Internet Protocol, Version 6 (IPv6)
23+
24+
Note that:
25+
26+
rfc950 Contains information about ICMP extensions
27+
rfc1072 Contains information about TCP options
28+
rfc1112 Contains information about the IGMP protocol

0 commit comments

Comments
 (0)