Debian Codegraph @

ChangeLog

raw
1 2020-07-05 Roy Hills <[email protected]>
2
3 * ike-scan.c: Remove unused variables "idfile" and "idstrings", and
4 the associated options -F and --idfile. These were never used, and
5 were causing warnings with GCC 10.2
6
7 * ike-scan.c: Add "break" statement after call to usage() in options
8 switch statement. This isn't required as usage() never returns,
9 but it's harmless and prevents a "this statement may fall through"
10 compiler warning with GCC 8.3.0.
11
12 * utils.c: Use labs() rather than abs() when computing time
13 difference as time_t is normally "long" and using abs() generates
14 a compiler warning with GCC 10.2
15
16 2020-07-05 Roy Hills <[email protected]>
17
18 * README.md, ike-backoff-patterns, ike-scan.1, ike-vendor-ids: Update
19 wiki references to use new URL http://www.royhills.co.uk/wiki/
20
21 2014-05-23 Richard Moore <rich@...>
22
23 * ika-scan.c, ike-scan.c: Added option to bind to a specific interface.
24
25 2014-03-21 Roy Hills <[email protected]>
26
27 * isakmp.c: Added fclose call to fix the potential file pointer
28 resource leak in print_psk_crack_values().
29
30 2013-12-01 Roy Hills <[email protected]>
31
32 * configure.ac, .gitignore: Added configure option --enable-gcov to
33 enable gcov code coverage.
34
35 2013-11-12 Roy Hills <[email protected]>
36
37 * ike-scan.c: Disallow the use of both --aggressive and --ikev2 options.
38 This fixes debian bug #512962.
39
40 2013-11-10 Roy Hills <[email protected]>
41
42 * isakmp.c: Updated attribute maps with new values and updated
43 RFC references.
44
45 * TODO: Removed items that have been addressed or are no longer
46 required.
47
48 2013-10-27 Roy Hills <[email protected]>
49
50 * ike-scan.c, ike-scan.h, isakmp.c: Use payload type 43 instead of
51 13 for vendor ID payloads with ikev2. This implementation requires
52 that the --ikev2 or -2 option be specified before the --vendor or -e
53 option to work correctly.
54
55 * isakmp.c: Updated maps from RFC 5996 (new IKEv2 RFC which replaces
56 4306), RFC 5282, RFC 5114, and RFC 6467.
57
58 * ike-vendor-ids, check-deocde: Minor change to Firewall-1 NGX vendor
59 id name.
60
61 2013-10-26 Roy Hills <[email protected]>
62
63 * ike-scan.c: Add support for sending key exchange payload for ECP
64 Diffie-Hellman groups 19, 20 and 21 with --dhgroup=n. The Key
65 Exchange payload length for these groups is as detailed in RFC 4753.
66 DH groups 19 and 20 tested in aggressive mode with Checkpoint VPN-1
67 R77.
68
69 2013-09-04 Roy Hills <[email protected]>
70
71 * Added references to the github repository in README, *.c and *.h
72 in place of the ike-scan email address and the pattern submission
73 URL.
74
75 * configure.ac: Change the bug-report string in AC_INIT from the
76 ike-scan email address to the github URL.
77
78 2013-08-17 Roy Hills <[email protected]>
79
80 * check-vendor-ids, Makefile.am: New check script to validate the
81 vendor ID patterns as part of "make check" from Jonathan Claudius.
82
83 2013-08-16 Roy Hills <[email protected]>
84
85 * .travis.yaml: New file to enable autobuild on Travis CI.
86
87 * .gitignore: New file listing patterns to exclude from the repository.
88
89 * COPYING: New file.
90
91 * check-decode: Modified so "make check" works with new
92 HeartBeat_Notify VID name.
93
94 * configure.ac: Incremented version to 1.9.4 to distinguish new
95 version under git revision control.
96
97 * ike-vendor-ids: Merged in vendor ID additions from Jonathan Claudius.
98
99 * Removed $Id$ keywords from all files, and associated rcsid variable
100 from C sources.
101
102 2013-08-15 Roy Hills <[email protected]>
103
104 * Final SVN revision before migration to git.
105
106 2012-12-14 Jesper Kückelhahn <(email withheld)>
107
108 * ike-vendor-ids: Added new vendor IDs from research while developing
109 script for nmap.
110
111 2011-09-22 Roy Hills <[email protected]>
112
113 * ike-scan.c: Removed most occurances of set but unused variables as
114 reported by -Wunused-but-set-variable in gcc 4.6. There is one
115 occuurance of this error remaining, because the --idstrings
116 option has not been fully implemented.
117
118 2011-04-04 Roy Hills <[email protected]>
119
120 * configure.ac: incremented version number to 1.9.3
121
122 * configure.ac: Remove version number from AM_INIT_AUTOMAKE macro,
123 as this usage is obsolete now.
124
125 * ike-scan.c, ike-scan.h: Modify add_host_pattern() and add_host() so
126 we always use the more efficient inet_aton() rather than
127 get_host_address() for IPnet/bits, IPnet:mask and IPstart-IPend
128 patterns.
129
130 * ike-scan.c: Add support for IPnet:netmask format in
131 add_host_pattern().
132
133 * ike-scan.c: Change all uses of sprintf() to snprintf().
134
135 2011-03-30 Roy Hills <[email protected]>
136
137 * acinclude.m4: Removed #include <features.h> from GCC_FORTIFY_SOURCE
138 macro, as this header is not portable.
139
140 * configure.ac: Added GCC_WEXTRA macro if we are compiling with GCC
141 to enable extra warnings, and define ATTRIBUTE_UNUSED to the
142 appropriate pragma depending on whether we are using GCC or not.
143
144 * utils.c: Added ATTRIBUTE_UNUSED to sig_alarm parameter to avoid
145 unused parameter warning.
146
147 * ike-scan.c: Add some casts to unsigned to avoid "comparison between
148 signed and unsigned" warnings.
149
150 2010-12-07 Roy Hills <[email protected]>
151
152 * acinclude.m4: Added GCC_WEXTRA macro to determine if the C compiler
153 supports the -Wextra switch to enable extra warnings.
154
155 * ike-scan.c, isakmp.c, utils.c, psk-crack.c: Addressed some of the
156 unsigned/signed comparisons flagged up with -Wextra.
157
158 2009-08-15 Roy Hills <[email protected]>
159
160 * ike-scan.c, utils.c: Improve handling of --bandwidth and
161 --interval options: Allow either upper or lowercase
162 multiplier letters and give an error if an unknown multiplier
163 character is used. Previously an unknown multiplier character
164 or one with the wrong case was silently ignored and treated as
165 no multiplier at all.
166
167 * wrappers.c: Change Strtoul so it gives an error if the
168 underlying strtoul function finishes at an unconvertable
169 character other than NULL or whitespace.
170
171 * configure.ac: Added extra warnings "-Wshadow -Wwrite-strings"
172 for gcc.
173
174 2009-08-14 Roy Hills <[email protected]>
175
176 * ike-scan.c, ike-scan.h, psk-crack.h, configure.ac, error.c: Removed
177 syslog functionality as this is not used and has been #ifdef'ed out
178 for some time.
179
180 2009-05-06 Roy Hills <[email protected]>
181
182 * configure.ac: Upgraded for autoconf 2.61
183
184 2009-03-06 Roy Hills <[email protected]>
185
186 * acinclude.m4: Added macros to detect compiler support for
187 -fstack-protect, -D_FORTIFY_SOURCE and -Wformat-security.
188
189 * configure.ac: Conditionally enable compiler flags for
190 -fstack-protect, -D_FORTIFY_SOURCE and -Wformat-security using
191 the new acinclude.m4 autoconf macros.
192
193 * configure.ac: Incremented version to 1.9.2
194
195 2008-09-01 Roy Hills <[email protected]>
196
197 * ike-scan.c: Improved the description of the --trans option in
198 the help output.
199
200 * wrappers.c: Modified Strtoul so it only permits fully convertable
201 strings. This avoids the problem mentioned by ML with 1=7/128
202 in an advanced transform specification.
203
204 * ike-scan.c: Corrected those calls to Strtoul that assumed the old
205 behaviour, where a string could be terminated by any non convertable
206 character.
207
208 * check-packet, pkt-custom-proposal.dat: Corrected the advanced
209 transform specification, and added an additional transform using
210 variable length attributes.
211
212 2008-03-07 Roy Hills <[email protected]>
213
214 * isakmp.c: Added additional XAUTH authentication methods to auth_map.
215
216 * ike-backoff-patterns: Added Cisco PIX 7.0
217
218 * ike-vendor-ids: Added Windows 2008 server
219
220 2007-06-09 Roy Hills <[email protected]>
221
222 * check-error: new checking script to test response to error
223 conditions.
224
225 2007-04-22 Roy Hills <[email protected]>
226
227 * utils.c: New function "dupstr", which is a local implementation
228 of the common but non-standard library function "strdup".
229
230 * ike-scan.c: Replace calls to malloc/strcpy with calls to the
231 new dupstr function. This makes the code tidier and also reduces
232 the number of calls to the potentially dangerous strcpy function.
233
234 2007-04-17 Roy Hills <[email protected]>
235
236 * ike-scan.h: Undefined SYSLOG, as we don't use this any more, and I
237 doubt that anyone else needs it. The syslog functionality may be
238 removed in a future release.
239
240 2007-04-13 Roy Hills <[email protected]>
241
242 * configure.ac: Added checks for strlcat and strlcpy, with
243 replacement functions using the OpenBSD implementations if they are
244 not present.
245
246 * strlcat.c, strlcpy.c: New source files from the OpenBSD source at
247 http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/string
248
249 2007-03-06 Roy Hills <[email protected]>
250
251 * configure.ac: Incremented version number to 1.9.1.
252
253 * ike-vendor-ids, ike-backoff-patterns: various minor changes and
254 additions.
255
256 2007-01-26 Roy Hills <[email protected]>
257
258 * Released v1.9 Tarball size: 1412689, Zip size: 2260655.
259 tarball md5sum: bed63c7d2f54c482525a735be7b5e720
260 Zip md5sum: 5a224a60235189ba1b8882c98e09489c
261
262 2007-01-14 Roy Hills <[email protected]>
263
264 * ike-scan.c: Refactored display_packet() to ensure that payload
265 is correctly aligned.
266
267 2007-01-13 Roy Hills <[email protected]>
268
269 * check-decode: New tests for pkt-main-natt-response,
270 pkt-aggr-cert-response, pkt-v2-notify-response and
271 pkt-checkpoint-notify.
272
273 * check-packet: New test for pkt-single-trans.
274
275 * ike-scan.c: Added conditional code to write received IKE packet to
276 a file. This is used to create data files for use with check-decode,
277 and is not intended for production use.
278
279 * psk-crack.h: Include <sys/time.h> and <time.h>.
280
281 * ike-scan.c: Added O_TRUNC option to writepkttofile open() call.
282
283 2007-01-02 Roy Hills <[email protected]>
284
285 * check-psk-crack-4: New checking script to improve coverage of
286 psk-crack.c and hash_functions.h. Test coverage for these
287 source files is now:
288
289 96.88% of 64 lines executed in file hash_functions.h
290 95.28% of 318 lines executed in file psk-crack.c
291
292 * check-packet, check-decode: Added new tests to improve coverage of
293 ike-scan.c and isakmp.c. Test coverage for these files is
294 now:
295
296 71.18% of 1957 lines executed in file ike-scan.c
297 69.61% of 964 lines executed in file isakmp.c
298
299 * ike-scan.c, ike-scan.h: Added new --readpktfromfile option.
300 This option reads the packet from the specified file rather
301 than from the network. It is intended for debugging and
302 testing purposes, to allow the IKE packet decoding to be
303 easily checked. This option is not documented, because it is
304 designed purely for testing.
305
306 2006-12-30 Roy Hills <[email protected]>
307
308 * ike-scan.c, isakmp.c: Added support for IKEv2 with new --ikev2
309 option.
310
311 * configure.ac: Incremented version to 1.8.7.
312
313 2006-12-27 Roy Hills <[email protected]>
314
315 * ike-scan.c, isakmp.c: New option --rcookie to set the responder
316 cookie to the specified value. Modified make_isakmp_header() to
317 support specification of the responder cookie.
318
319 2006-12-23 Roy Hills <[email protected]>
320
321 * psk-crack.c, psk-crack.h: Moved nortel_user into psk_entry struct
322 to permit cracking a mixture of Nortel and standard PSKs, although
323 the command line options do not currently permit this.
324
325 * psk-crack.c: Changed cracking loop order, so that the candidate
326 password selection (either the next work from the dictionary, or
327 the next brute-force string) is the outher loop, and the PSK entry
328 selection the inner one. This avoids having to rewind the
329 dictionary file, which permits the use of stdin for the
330 dictionary.
331
332 This also cured an as-yet unfound bug, which caused false positive
333 matches against the last candidate password when cracking multiple
334 PSK entries.
335
336 * psk-crack.c: Added support for using stdin for the dictionary file
337 with "--dictionary=-". This allows us to use other programs to
338 generate the candidate passwords, e.g:
339 john --incremental --stdout | psk-crack --dictionary=- psk-file
340
341 * hash_functions.h: New header file containing "inline static"
342 functions for MD5, SHA1, hmac_md5 and hmac_sha1.
343
344 * configure.ac: Incremented version to 1.8.6.
345
346 2006-12-21 Roy Hills <[email protected]>
347
348 * ike-scan.c: Added --nat-t option to enable RFC 3947 NAT Traversal.
349 This option adds the Non-ESP marker to outbound packets and
350 strips the marker from responses. It also changes the default
351 source and destination UDP ports to 4500.
352
353 2006-12-18 Roy Hills <[email protected]>
354
355 * ike-scan.c: Added experimental support for RFC 3947 NAT-Traversal.
356
357 2006-12-17 Roy Hills <[email protected]>
358
359 * isakmp.c: Added CRACK (128) to auth map. This is defined in
360 draft-harkins-ipsra-crack-00 "IKE Challenge/Response for
361 Authenticated Cryptographic Keys", but I've not seen it used in
362 practice.
363
364 2006-11-30 Roy Hills <[email protected]>
365
366 * isakmp.c: Moved all the ID/Name maps into isakmp.c as global
367 consts. Other source files that need to reference them do so
368 by declaring them as extern.
369
370 * utils.c: New functions name_or_number() and str_ccmp() which
371 allow a string containing either a number or a name from the
372 specified map to be used.
373
374 2006-11-25 Roy Hills <[email protected]>
375
376 * ike-scan.c: Changed --ranssrc option to --sourceip, and allow it
377 to take an IP address or the string "random". When --sourceip is
378 specified, we no longer attempt to read from the socket as reading
379 UDP from a raw socket doesn't work on all OSes and we are unlikely
380 to receive any return data if we've spoofed the source address
381 anyway.
382
383 * ike-vendor-ids: Update strongSwan vendor IDs based on stronSwan
384 4.0.5
385
386 2006-11-23 Roy Hills <[email protected]>
387
388 * psk-crack.c: New function load_psk_params() to read the data from
389 the psk parameters file into a list of structures. This moves the
390 psk file reading loop out of main(), and also allows more flexible
391 selection of the psk cracking order as all the psks are in memory.
392
393 * psk-crack.c: New function compute_hash(), which does the real work
394 of computing the hash given the PSK parameters and a candidate
395 password. This function is defined as "static inline" because it
396 is called from a tight loop, and inlining significantly improves
397 performance.
398
399 * psk-crack.c: New function open_dict_file(), which opens the
400 dictionary file. This function reduces the size of main() to make
401 it more readable.
402
403 * configure.ac: Added AC_C_INLINE to check for compiler support for
404 function inlining and define "inline" accordingly in config.h.
405
406 2006-11-21 Roy Hills <[email protected]>
407
408 * psk-crack.h: New header file for psk-crack.
409 This separates the psk-crack headers, defines, structures and
410 prototypes from ike-scan.
411
412 * ike-scan.h: Removed psk-crack specific stuff. Modified psk_crack
413 structure to improve storage efficiency.
414
415 2006-10-18 Roy Hills <[email protected]>
416
417 * isakmp.c: Modified creation of proposal and SA payloads, so that
418 these payloads contain the transform and proposal payloads
419 respectively (previously, they only returned the header, and it
420 was down to the caller to add the rest). Also added add_prop()
421 function which allows for multiple proposals within an SA
422 payload (although ike-scan does not have any way to use this yet).
423
424 * ike-scan.c: Modified initialise_ike_packet() function to use
425 modified SA and proposal functions.
426
427 2006-10-10 Roy Hills <[email protected]>
428
429 * check-psk-crack-3: New script to check Nortel Contivity PSK
430 cracking. Uses test data obtained from a Contivity 1600 running
431 software release 6.00.
432
433 * psk-crack.1: Added --username option description to psk-crack
434 manpage.
435
436 2006-10-01 Roy Hills <[email protected]>
437
438 * ike-scan.c: Show backoff patterns even if there was only a
439 single response. Some implementations, e.g. linksys, don't
440 retry at all, and this change allows these to be matched as
441 well. The lack of a pattern is sufficiently unusual to be a
442 pattern itself.
443
444 2006-09-23 Anonymous <[email protected]>
445
446 * psk-crack.c: Added code to allow cracking Nortel Contivity
447 pre-shared keys, which use a variation of Mamro's method. Thanks
448 to an anonymous benefactor.
449
450 2006-08-30 Roy Hills <[email protected]>
451
452 * ike-backoff-patterns: Added new PIX backoff pattern, with details
453 of the PIX versions for both patterns.
454
455 2006-08-22 Roy Hills <[email protected]>
456
457 * udp.h: Removed unneeded BSD-flavour declarations and unneeded macros.
458 Changed types from u_int{8,16,32}_t to uint{8,16,32}_t. Added
459 definition of struct pseudo_hdr (moved from ike-scan.c).
460 Changed names of pseudo_hdr struct members to avoid problem due
461 to s_addr being defined as a macro on some systems (e.g. Solaris).
462
463 * ip.h: Changed types from u_int{8,16,32}_t to uint{8,16,32}_t.
464 Removed unneeded macros.
465
466 * utils.c: Change random_ip() so that it generates the same sequence
467 on both little-endian and big-endian systems.
468
469 * ike-scan.c: --randsrc option now works on Solaris 9 and FreeBSD 5.3
470 as well as Linux.
471
472 2006-08-14 Roy Hills <[email protected]>
473
474 * ike-scan.c, isakmp.c: Changed random number implementation to use
475 the mersenne twister functions from mt19937ar.c rather than the
476 standard rand() from the C library.
477
478 This improves the quality of the random numbers, as some C library
479 rand() functions are quite bad. More importantly, it makes the
480 random number generation process repeatable across different
481 platforms.
482
483 However, this change also means that packets created with the new
484 PRNG will not be the same as packets created with the old one, even
485 if the same random seed value is used.
486
487 * mt19937ar.c: New file - Mersenne Twister random number generator.
488
489 * utils.c: New functions random_byte() and random_ip(), which use
490 the mersenne twister random number functions.
491
492 * pkt-aggressive.dat: New file - sample aggressive mode packet.
493
494 * check-packet: Added aggressive mode packet check. This is possible
495 now that the random number generator is repeatable across platforms.
496
497 * configure.ac: Incremented version number to 1.8.4.
498
499 2006-08-04 Roy Hills <[email protected]>
500
501 * ike-scan.c, ike-scan.h: Added new --randsrc option for source IP
502 spoofing.
503
504 * ike-scan.c, ike-scan.h: Added new --shownum option to display the
505 return packet number. This is useful when looking for DoS
506 conditions.
507
508 2006-08-02 Roy Hills <[email protected]>
509
510 * ike-scan.c: Added experimental support for source IP spoofing.
511 Currently, this only works on Linux.
512
513 * ip.h, udp.h: New header files to support IP spoofing. Copied
514 from the GNU C Library.
515
516 * configure.ac: incremented version number to 1.8.2
517
518 2006-07-01 Roy Hills <[email protected]>
519
520 * configure.ac, ike-scan.c: Removed initial lookup and configure
521 option --enable-lookup to control it. This is legacy code
522 that has never been required.
523
524 * ike-scan.h, ike-scan.c: Removed low-pass filter in timing
525 error correction code, and associated ALPHA macro. This had
526 never been used, and tests indicate that it performed worse
527 than the standard timing error correction code.
528
529 * psk-crack.c: Free malloc'ed data when we are finished with
530 each PSK to prevent a memory leak when cracking many PSKs.
531 Thanks to Antoine Brodin for finding and reporting this bug.
532
533 2006-06-24 Roy Hills <[email protected]>
534
535 * utils.c: Changed printable() and hexstring() to make the first
536 arg "const unsigned char *" instead of "unsigned char *". This
537 change was integrated from the arp-scan source.
538
539 2006-06-06 Roy Hills <[email protected]>
540
541 * Changed web URLs to correspond with the new layout of the NTA
542 website.
543
544 2006-05-14 Roy Hills <[email protected]>
545
546 * ike-scan.c: Add --timestamp option.
547
548 * isakmp.c: Improve decoding of notification payload. Tony has found
549 an IKE implementation which returnes a notification payload after
550 the SA payload, and this uncovered shortcomings in the notification
551 processing code.
552
553 2006-05-12 Roy Hills <[email protected]>
554
555 * ike-scan.c: Allow --interval to be expressed in seconds by
556 appending "s" to the value. This is useful if you want to send
557 packets very slowly, as it avoids having to add lots of trailing
558 zeros.
559
560 * ike-scan.c: Add experimental option to display packet received
561 time in %H:%M:%S.%u format before the packet details.
562
563 * Moved ike-scan source code from CVS to SVN revision control.
564 This changes the revision numbers from 1.x, where x is a relatively
565 small number, to y, where y is a larger number (currently four
566 digits).
567
568 2006-05-05 Roy Hills <[email protected]>
569
570 * ike-scan.c: Delay opening the file specified by --writepkttofile
571 until after we've dropped SUID to avoid security issues.
572
573 2006-03-22 Roy Hills <[email protected]>
574
575 * ike-scan.c: Added --randomseed option, which allows the PRNG seed
576 to be specified. This enables packets with payloads containing
577 random data, such as Key Exchange and Nonce, to be compared with
578 known good examples for testing. It also allows the packet data to
579 be exactly repeatable, which can be useful in some situations.
580
581 2006-03-19 Roy Hills <[email protected]>
582
583 * ike-scan.c: Use unsigned 64-bit integer arithmetic for interval
584 calculation instead of double-precision floating point. This
585 avoids the small rounding errors that can occur with floating point.
586
587 2006-03-14 Roy Hills <[email protected]>
588
589 * Moved ike-scan source code from RCS to CVS revision control.
590
591 2005-12-07 Roy Hills <[email protected]>
592
593 * Released v1.8 Tarball size: 1376995, Zip size: 2090803.
594 tarball md5sum: 961310e6f3c07d26c90447e392dfb97e
595 Zip md5sum: 884e1c3eb03ea1519ab7537e095d2c0b
596
597 * configure.ac: Incremented version number to 1.8.1 in preparation
598 for post 1.8 changes.
599
600 2005-12-06 Roy Hills <[email protected]>
601
602 * configure.ac: Incremented version number to 1.8 in preparation
603 for release.
604
605 2005-12-04 Roy Hills <[email protected]>
606
607 * ike-backoff-patterns: Added backoff patterns for Netgear ProSafe
608 and Netgear ADSL Firewall Router. Submitted by Paul Askew.
609
610 2005-11-30 Roy Hills <[email protected]>
611
612 * Removed automake boilerplace files, and ran automake --add-missing
613 --copy to obtain the latest versions as of automake 1.9. The updated
614 files were: missing, install-sh, depcomp and INSTALL. mkinstalldirs
615 is no longer installed by automake and is probably no longer needed.
616 However, I have kept the old version just in case.
617
618 2005-11-29 Roy Hills <[email protected]>
619
620 * isakmp.h: Changed u_int8_t, u_int16_t and u_int32_t to uint8_t,
621 uint16_t and uint32_t in definition of delete payload.
622
623 * configure.ac: Improved OpenSSL detection by adding support for
624 libcrypto.so and libcrypto.dylib as well as libcrypto.a.
625
626 2005-11-25 Roy Hills <[email protected]>
627
628 * ike-scan.c, ike-scan.h, configure.ac: Added new --writepkttofile
629 option. This option writes the output packet to the specified file
630 rather than sending it to the remote host. It is intended for
631 debugging and testing purposes, to allow the IKE packet to be
632 easily checked. This option is not documented, because it is
633 designed purely for testing.
634
635 * check-packet: New test to check IKE scan packet data. Currently
636 tests two sample packets: one default proposal, and one custom
637 proposal.
638
639 * configure.ac: Added conditional #include <stdlib.h> to the
640 AC_LINK_IFELSE that checks if the OpenSSL headers and libraries
641 work. This is needed because the OpenSSL md5.h and sha1.h in
642 recent versions use size_t but don't include any header to
643 define it.
644
645 2005-11-24 Roy Hills <[email protected]>
646
647 * configure.ac: Support the OpenSSL libcrypto.a library in either
648 $ssldir/lib or in $ssldir.
649
650 * configure.ac: Added --disable-lookup option which allows the
651 initial DNS lookup to be disabled. This is in response to
652 Debian bug ID 327220. Thanks to Florian Weimer for reporting this,
653 and to Benoit Mortier for forwarding the bug to me.
654
655 2005-10-22 Roy Hills <[email protected]>
656
657 * wrappers.c: Added new wrapper function, Strtoul(), which
658 calls strtoul() and checks for errors.
659
660 * ike-scan.c: Change most calls to strtoul() to use the new
661 wrapper function Strtoul() instead, because this checks for
662 errors. Previously, a non-numeric value would be converted to
663 zero without any error, meaning something like "--sport=xxx"
664 would be silently accepted. Now, such invalid inputs result in
665 an error.
666
667 * ike-scan.c: Modify decode_trans_simple() to detect invalid values
668 which could previously result in an infinate loop. Now, invalid
669 values cause an error.
670
671 2005-09-08 Roy Hills <[email protected]>
672
673 * Upgraded automake from 1.8 to 1.9. No code changes required.
674
675 2005-09-08 Roy Hills <[email protected]>
676
677 * check-hash.c, check-sizes.c, error.c, ike-scan.c, isakmp.c,
678 psk-crack.c, utils.c, wrappers.c, ike-scan.h, isakmp.h: Added
679 OpenSSL exception to the copyright notice at the beginning of
680 these files. This allows linking of the program against OpenSSL
681 and distributing linked versions. This exception is intended to
682 allow the use of OpenSSL in this GPL v2 application. The added
683 text reads:
684
685 "In addition, as a special exception, the copyright holders give
686 permission to link the code of portions of this program with the
687 OpenSSL library, and distribute linked combinations including the two.
688
689 You must obey the GNU General Public License in all respects
690 for all of the code used other than OpenSSL. If you modify
691 file(s) with this exception, you may extend this exception to your
692 version of the file(s), but you are not obligated to do so. If you
693 do not wish to do so, delete this exception statement from your
694 version."
695
696 This text was taken from
697 http://www.gnome.org/~markmc/openssl-and-the-gpl.html
698
699 2005-08-02 Roy Hills <[email protected]>
700
701 * ike-scan.c, isakmp.c: Added support for advanced transform
702 creation using new functions add_transform() and make_transform().
703 These new functions take a pre-built attribute list, which has
704 previously been created with add_attr(), and can therefore create
705 transforms with arbitrary attributes.
706
707 The old add_trans() and make_trans() functions have been renamed
708 to add_trans_simple() and make_trans_simple() to reflect the fact
709 that they are simplified versions. These simple versions are now
710 wrappers that use the advanced functions.
711
712 Added support for advanced transform creation, which uses these new
713 functions. This involves an alternative syntax for the --trans
714 option: --trans=(attr=value, ...).
715
716 2005-08-01 Roy Hills <[email protected]>
717
718 * ike-scan.c, isakmp.c: Added Notification payload processing. We now
719 display details of an ISAKMP Notification payload if one is returned,
720 rather than just displaying generic payload information.
721
722 2005-07-21 Roy Hills <[email protected]>
723
724 * ike-scan.c, isakmp.c, utils.c: Added support for variable length
725 lifetime and lifesize transform attributes. Now, the --lifetime
726 and --lifesize options can take three options:
727
728 a) "none" - Do not add any lifetime or lifesize attribute
729 b) decimal integer, e.g. 86400 - Add a 4-byte value
730 c) hex number, e.g. 0xff - Add a variable length value
731
732 This allows arbitrary length lifetime and lifesize attributes to
733 be added using the hex notation.
734
735 2005-07-06 Roy Hills <[email protected]>
736
737 * ike-scan.c: Added --exchange option to allow the exchange field
738 in the ISAKMP header to be set to arbitrary values.
739
740 * ike-scan.c: Changed default packet rate calculation from interval
741 to bandwidth. The default bandwidth is 56000 bits per second. It's
742 still possible to set the interval instead for backwards
743 compatibility, and for those applications where it's important to
744 be able to specify the exact packet rate.
745
746 2005-06-21 Roy Hills <[email protected]>
747
748 * ike-scan.c, isakmp.c: Added --hdrflags and --hdrmsgid options to
749 allow Flags and MsgID fields in the ISAKMP header to be specified.
750
751 * ike-scan.c: Added --cookie option to allow the initiator cookie in
752 the ISAKMP header to be set to a static value.
753
754 * isakmp.c: Added support for Checkpoint notify code 9110. This was
755 observed when sending a large volume of requests to a VPN-1 system,
756 and is believed to be related to the Client Puzzles VPN DoS avoidance
757 mechanism.
758
759 * isakmp.c: Display the Version, flags, or msgid from the ISAKMP
760 header if they don't contain the expected value.
761
762 2005-06-21 Roy Hills <[email protected]>
763
764 * make-win32-zipfile.sh: New file to create the Windows binary
765 zipfile. Used under Cygwin. Previously, I had manually created
766 the zip files using "winzip", which was error-prone.
767
768 2005-06-20 Roy Hills <[email protected]>
769
770 * ike-scan.c: Add 64-bit cast to calculation of microsecond-resolution
771 time differences to ensure that the calculation is performed with
772 64-bit quantities. Previously, the calculation was performed
773 with 32-bit quantities before being assigned to a 64-bit value.
774
775 2005-06-18 Roy Hills <[email protected]>
776
777 * utils.c: Modify timeval_diff() to prevent it changing its input
778 arguments. Previously, it was sometimes changing its second
779 argument, b, because of the carry calculation; now it uses a
780 temporary value to perform the carry on.
781
782 2005-06-17 Roy Hills <[email protected]>
783
784 * ike-scan.c, isakmp.c: Added Delete payload processing. We now
785 display details of an ISAKMP Delete payload if one is returned,
786 rather than just displaying generic payload information.
787
788 2005-06-16 Roy Hills <[email protected]>
789
790 * ike-scan.c, isakmp.c: Add --spisize option to allow a random SPI
791 of the specified size to be added to the proposal payload.
792
793 2005-06-15 Roy Hills <[email protected]>
794
795 * ike-scan.c, isakmp.c: Display responder cookie value as a hex string
796 when displaying SA and Notify payloads, unless quiet is in effect.
797
798 * ike-scan.c: Added support for SIGUSR1 handling. Not fully
799 implemented. NOTE: This was removed later in June 2005, because the
800 bug we were looking for was found and fixed.
801
802 * isakmp.c: Print the SA Proposal SPI as hex if the SPI size in the
803 proposal header is non-zero. During Phase-1, the SPI size is
804 normally zero. However it has been observed to be non-zero on rare
805 occasions, and RFC 2408 allows this: "[during phase-1, the SPI is]
806 redundant and MAY be set to 0 or it MAY contain the transmitting
807 entity's cookie".
808
809 2005-05-31 Roy Hills <[email protected]>
810
811 * psk-crack.c: Fixed error which caused psk-crack to incorrectly report
812 PSKs after finding a valid one, when processing multiple PSK records.
813 Solution was to ensure that "found" is cleared on every loop
814 iteration. Thanks to Daniel Lucq for finding this bug and suggesting
815 the solution.
816
817 2005-05-20 Roy Hills <[email protected]>
818
819 * ike-scan.c: Check return value from sendto() against size of
820 packet, and warn if they are different (meaning that not all of
821 the packet was sent). I've seen this occur when using TCP
822 encapsulation to send huge packets (which fragment into many TCP
823 segments), and the VPN server sends a RST back.
824
825 2005-05-12 Roy Hills <[email protected]>
826
827 * ike-scan.c: Use POSIX regex to split both the backoff pattern and
828 vendor id pattern entries into name and pattern in functions
829 add_pattern() and add_vid_pattern(). Previously, we manually
830 stepped through the strings using pointers. POSIX regex is more
831 complex, but it allows for more flexible and precise matching.
832
833 * ike-scan.c: Add SO_REUSEADDR option to TCP socket when performing
834 TCP scanning (--tcp option).
835
836 * ike-vendor-ids: Added 16 new Vendor IDs, and revised some comments
837 on existing entries.
838
839 2005-04-20 Roy Hills <[email protected]>
840
841 * isakmp.c: Don't try to decode the SA in the returned packet if
842 it contains more than one transform. This cannot happen during
843 normal scanning, because the VPN server will only return one
844 transform, but can occur if you scan your own host, and ike-scan
845 sees its own packets which contain multiple transforms.
846
847 2005-04-09 Roy Hills <[email protected]>
848
849 * ike-scan.c: Modified usage() so that it can output either brief or
850 detailed help output depending on a new "detailed" argument. Now,
851 detailed output, including information on the available options, is
852 only displayed when ike-scan is run with the --help option. For
853 error conditions such as incorrect options, it only produces brief
854 output.
855
856 2005-03-19 Roy Hills <[email protected]>
857
858 * ike-scan.c: Changed initialise_ike_packet() function to use the
859 struct ike_packet_params rather than taking the various parameters
860 as separate arguments, as the argument count for this function was
861 up to 15 and growing (c89 std only guarantees up to 31 I believe).
862 Also removed some unnecessary global variables and placed these in
863 the new struct, which currently contains 18 members.
864
865 * ike-scan.c: Added --doi (-D) and --situation (-S) options to allow
866 the DOI and Situation in the SA of the outbound packets to be changed
867 from the default of DOI_IPSEC and SIT_IDENTITY_ONLY.
868
869 * ike-scan.c: Added --protocol (-j) and --transid (-k) options to
870 allow the proposal protocol and transform id of the outbound packets
871 to be changed from the defaults.
872
873 2005-03-10 Roy Hills <[email protected]>
874
875 * ike-scan.c, isakmp.c: Improved decoding of Certificate and
876 CertificateRequest payloads. These used to be decoded as
877 generic payloads, but now include the certificate type in the
878 decode output.
879
880 * ike-scan.c: Added --certreq (-C) option to add a
881 CertificateRequest payload to the outgoing packet.
882
883 2005-03-09 Roy Hills <[email protected]>
884
885 * ike-scan.c: Added --headerlen (-L) option to allow the ISAKMP header
886 length to be manually specified. Normally, ike-scan will
887 automatically calculate the correct length; however, you can use this
888 option if you want to use an incorrect length value instead.
889
890 * ike-scan.c, isakmp.c: Added --mbz (-Z) option to allow the value for
891 the reserved (MBZ) fields to be set to non-zero values. Doing so
892 will make the outgoing packet non-RFC compliant.
893
894 * ike-scan.c, isakmp.c: Added --headerver (-E) option to allow the
895 version field in the ISAKMP header to be altered from the default of
896 0x10 (v1.0).
897
898 2005-02-21 Roy Hills <[email protected]>
899
900 * ike-scan.c: Drop root privileges after binding the local port if we
901 are running SUID. We don't need enhanced privileges after this
902 point, and having effective UID root can cause problems on NFS
903 filesystems where the root user is squashed to nobody and we need
904 to write a PSK parameters file.
905
906 2005-02-18 Roy Hills <[email protected]>
907
908 * ike-scan.c: Make errors from gethostbyname or inet_aton when adding
909 hosts non-fatal. Now these errors elicit a warning and cause the
910 offending target to be ignored, but processing continues.
911 Thanks to Tony Lloyd for finding this bug.
912
913 * ike-scan.h, ike-scan.c, isakmp.c: Change structure definitions to
914 typedefs. i.e. change "struct foo {defs};" to
915 typedef struct {defs} foo;".
916
917 * ike-scan.h: Added extra data structure to the host entry structure.
918 This is designed to allow arbitrary extra data, such as an id string
919 or a transform specification, to be attached to a host entry.
920
921 2005-02-15 Roy Hills <[email protected]>
922
923 * ike-scan.c: Added --bandwidth (-B) option to allow the outgoing
924 bandwidth to be specified directly instead of using --interval.
925 The --bandwidth option calculates the appropriate interval setting,
926 taking into account the size of the packet.
927
928 * ike-scan.c: Added --noncelen (-c) option to allow the length of the
929 nonce data to be changed. This is only applicable to aggressive
930 mode.
931
932 2005-02-14 Roy Hills <[email protected]>
933
934 * psk-crack.1: Updated psk-crack manpage to reflect current usage. The
935 manpage had fallen behind, and had become inaccurate.
936
937 2005-02-09 Roy Hills <[email protected]>
938
939 * ike-scan.c: Match ip range and slash notation using regular
940 expressions rather than single character matches in
941 add_host_pattern(). This fixes the bug which caused hostnames with
942 hyphens to fail because they were wrongly interpreted as IP ranges.
943 Thanks to Volker Stolz for reporting this bug.
944
945 2005-01-27 Roy Hills <[email protected]>
946
947 * configure.ac: Make lack of Posix regular expression support a fatal
948 error. Previously, it was optional, and we used conditional
949 compilation based on HAVE_REGEX_H. However, this never worked, and
950 I've not found a system which lacks Posix regex support.
951
952 * ike-scan.h, ike-scan.c, isakmp.c: Remove HAVE_REGEX_H conditional
953 compilation. Note that we still use it to conditionally include
954 <regex.h> in ike-scan.h though.
955
956 2005-01-25 Roy Hills <[email protected]>
957
958 * ike-scan.c: Add SO_BROADCAST option to UDP socket to allow sending
959 to the broadcast address.
960
961 2005-01-20 Roy Hills <[email protected]>
962
963 * utils.c: Added new id_to_name() function to replace the more
964 limited STR_OR_ID macro. This allows the use of sparse maps where
965 the IDs are not contiguous. For example, the authentication methods
966 map, where RFC-defined IDs are 1 to 5, but there are proprietary and
967 draft methods around 64,000.
968
969 * ike-scan.c, isakmp.c: Use new id_to_name() function rather than
970 STR_OR_ID macro. Change the various id to name maps from char *
971 arrays to id_name_map arrays.
972
973 * ike-scan.h: Remove STR_OR_ID macro, and add id_to_name() prototype.
974
975 2005-01-16 Roy Hills <[email protected]>
976
977 * configure.ac: Incremented version number to 1.7.1 in preparation
978 for post 1.7 changes.
979
980 2005-01-14 Roy Hills <[email protected]>
981
982 * Released v1.7 Tarball size: 1350170, Zip size: 2010303.
983 tarball md5sum: c06c6a3d78ba9b93c0abf79b3a3d2a11
984 Zip md5sum: 4e8c37775d541318e9841f17d22d492e
985
986 2005-01-13 Roy Hills <[email protected]>
987
988 * README: Updated for ike-scan 1.6.7.
989 * ike-scan.h: Increased default pattern matching fuzz value from 100
990 to 500 ms.
991 * ike-scan.c: treat ECONNRESET the same as ECONNREFUSED. Some OSes
992 (e.g. Cygwin on Windows) return ECONNRESET from recvfrom() whereas
993 others return ECONNREFUSED.
994
995 2004-12-31 Roy Hills <[email protected]>
996
997 * ike-scan.c: Allow --interval argument to be specified as either
998 milliseconds or microseconds. Milliseconds is the default, unless
999 the argument ends in "u" in which case it is taken as microseconds.
1000
1001 2004-12-22 Roy Hills <[email protected]>
1002
1003 * ike-scan.c: Corrected pointer comparison in remove_host() so that
1004 advance_cursor() is always called when the host being removed is the
1005 current host. This bug sometimes caused ike-scan to hang.
1006
1007 2004-12-20 Roy Hills <[email protected]>
1008
1009 * check-hash.c: Correct unsigned/signed char * pointers which were
1010 giving warnings on Tru64 Alpha with Compaq C.
1011
1012 * psk-crack.c: Avoid division by zero if elapsed_seconds is zero.
1013 I've seen this problem occur on Tru64/Alpha with few iterations,
1014 probably because the granularity of gettimeofday() is not small
1015 enough on this platform.
1016
1017 * sha1.c: Change "unsigned long" to "uint32_t" where a 32-bit
1018 unsigned quantity is required. This allows sha1 to work on systems
1019 where "unsigned long" is not 32-bits e.g. Alpha.
1020
1021 * psk-crack.c: cast argument to isspace() to unsigned char to avoid
1022 "subscript has type char" warning on some OSes e.g. HP-UX.
1023
1024 * psk-crack.c: Correct spelling of "fnbuf_siz" variable used for
1025 Cygwin.
1026
1027 * ike-scan.c, utils.c: Cast tv_sec and tv_usec timeval elements to
1028 unsigned long before printing. This is done because different
1029 vendors use different types (signed/unsigned int/long) for these
1030 elements. As long is the widest type, and the values cannot be
1031 negative, casting to unsigned long is safe.
1032
1033 2004-12-19 Roy Hills <[email protected]>
1034
1035 * configure.ac: Improve detection and location of OpenSSL libraries.
1036 configure will now search several standard locations for the
1037 OpenSSL libraries if the --with-openssl option is supplied. If a
1038 directory argument is given, then that will be added to the search
1039 list.
1040
1041 2004-12-09 Roy Hills <[email protected]>
1042
1043 * psk-crack.c: Remove options to manually specify hash type (MD5 or
1044 SHA1), as these are never needed.
1045
1046 2004-12-08 Roy Hills <[email protected]>
1047
1048 * psk-crack.c: Changed syntax for dictionary cracking. Now dictionary
1049 cracking does not need the dictionary file to be specified as an
1050 argument. It's possible to use a dictionary file other than the
1051 default with the --dictionary option.
1052
1053 * psk-crack.c: Support cracking multiple hashes if the PSK parameters
1054 file has more than one line.
1055
1056 2004-12-05 Roy Hills <[email protected]>
1057
1058 * ike-scan.c: Minor changes to usage() to improve description of
1059 --pskcrack and --tcptimeout options.
1060
1061 * check-run-1, check-run-2: Add --nodns --retry=1 to reduce delay.
1062
1063 * check-psk-crack-2: Add dictionary cracking tests.
1064
1065 2004-11-29 Roy Hills <[email protected]>
1066
1067 * ike-scan.c: Added optional filename argument to --pskcrack (-P)
1068 option to allow the PSK data to be written to a file for later
1069 cracking with psk-crack.
1070
1071 2004-11-19 Roy Hills <[email protected]>
1072
1073 * sha1.c: define SHA1HANDSOFF to 1 to prevent the SHA1 functions from
1074 modifying the input buffer. If this is not defined, then pre-shared
1075 key cracking for SHA1 hashes using this SHA1 function fails.
1076
1077 * Wrote two new tests for "make check": check-psk-crack-1 which tests
1078 psk-crack --help and --version, and check-psk-crack-2 which tests
1079 psk-crack bruteforce for both MD5 and SHA1 hashes.
1080
1081 2004-11-18 Roy Hills <[email protected]>
1082
1083 * utils.c: printable() should quote the backslash itself to make
1084 "\\n" (backslash, en) distinguishable from "\n" (newline).
1085 This fix contributed by Pavel Kankovsky <kan(at)dcit.cz>
1086
1087 * psk-crack.c: Changed loop counters from 32-bit to 64-bit integers
1088 to cope with very large iteration counts, e.g. when brute-forcing
1089 8-character passwords with 36-element character set.
1090
1091 * ike-scan.c: Change 64-bit unsigned integer types from the fixed-
1092 width uint64_t type to the "at least 64-bit" type UINT64 which is
1093 determined by autoconf.
1094
1095 * configure.ac: Determine 64-bit integer type and snprintf format
1096 string using code from postgresql autoconf. Previously we used
1097 the fixed-width 64-bit types, but we never need exactly 64-bits,
1098 only at least 64-bits.
1099
1100 2004-10-29 Roy Hills <[email protected]>
1101
1102 * Internal release of 1.6.4. NTA Monitor internal use only.
1103
1104 2004-10-05 Roy Hills <[email protected]>
1105
1106 * ike-scan.c: Added --nodns (-N) option.
1107 Added "ERROR:" to error messages that were missing this prefix.
1108 Corrected buffer length calculation that could result in a segv with
1109 long argument lists.
1110
1111 2004-09-28 Roy Hills <[email protected]>
1112
1113 * psk-crack.c: Added bruteforce support. New options:
1114 --bruteforce and --charset.
1115
1116 * ike-scan.c: Added missing "=" to help text for --id option.
1117
1118 2004-09-20 Roy Hills <[email protected]>
1119
1120 * isakmp.c: Added additional authentication method names and group
1121 names from http://www.iana.org/assignments/ipsec-registry
1122
1123 2004-09-20 Roy Hills <[email protected]>
1124
1125 * isakmp.c: Added SHA2 algorithms to auth_names[].
1126
1127 2004-07-19 Roy Hills <[email protected]>
1128
1129 * psk-crack.c: New program to crack Aggressive Mode Pre-Shared Keys
1130 using dictionary attack. This uses the output from "ike-scan -P"
1131 together with a dictionary. This program is not very polished, but
1132 it works OK.
1133
1134 2004-07-16 Roy Hills <[email protected]>
1135
1136 * ike-scan.c: Display the rcsid for all important source files
1137 for the --version option rather than just for ike-scan.c.
1138
1139 2004-07-12 Roy Hills <[email protected]>
1140
1141 * ike-scan.c: Added new --tcptimeout (-O) option. TCP Connect()
1142 timeout can now be changed without having to change the #define.
1143
1144 2004-07-09 Roy Hills <[email protected]>
1145
1146 * ike-scan.c: Added experimental support for Aggressive Mode
1147 Pre-Shared Key (PSK) cracking with --pskcrack (-P) option.
1148 This outputs the PSK parameters as colon-separated hex values
1149 for input into a separate cracking program (which has not yet
1150 been written).
1151
1152 2004-07-08 Roy Hills <[email protected]>
1153
1154 * configure.ac: Incremented version number from 1.6.2 to 1.6.3 in
1155 preparation for next batch of changes.
1156
1157 * Internal release on 1.6.2. NTA Monitor internal use only.
1158 No tarballs generated.
1159
1160 * configure.ac: Incremented version number from 1.6.1 to 1.6.2.
1161
1162 * configure.ac: Added checks for headers netinet/tcp.h and signal.h
1163 for TCP support.
1164
1165 * ike-scan.c: Added experimental support for Cisco encapsulated
1166 IKE over TCP as used by Cisco VPN Concentrator. Changed --tcp (-T)
1167 option to take an optional numeric argument: 1 (default) meaning
1168 raw IKE over TCP, and 2 meaning Cisco proprietary encapsulation.
1169
1170 * ike-scan.c: Add timeout for TCP connect() when using the --tcp (-T)
1171 option. This uses the alarm() call to interrupt connect() which
1172 has a granularity of seconds. Currently, the timeout is defined
1173 by the macro TCP_CONNECT_TIMEOUT in ike-scan.h.
1174
1175 2004-06-23 Roy Hills <[email protected]>
1176
1177 * ike-scan.c: Added experimental support for TCP with --tcp (-T)
1178 option.
1179
1180 2004-06-16 Roy Hills <[email protected]>
1181
1182 * ike-vendor-ids: Added several new Vendor ID patterns bringing the
1183 total to 68.
1184
1185 * ike-scan.h, ike-scan.c: Merge in timing error smoothing code. This
1186 is based on the TCP RTT smoothing algorithm in RFC 793. It is only
1187 used if ALPHA is defined in ike-scan.h. Currently, this is disabled
1188 because ALPHA is #undef'ed in ike-scan.h.
1189
1190 2004-05-25 Roy Hills <[email protected]>
1191
1192 * ike-scan.c: Allow identification value specified with --id option
1193 to be either a string e.g. --id=test or a hex value with a leading
1194 0x e.g. --id=0xdeadbeef. Note that because previous versions always
1195 interpreted the value as hex, you will need to add a leading 0x to
1196 the values or re-code them as text strings.
1197
1198 2004-05-19 Roy Hills <[email protected]>
1199
1200 * Makefile.am: updated for automake 1.8.
1201
1202 * configure.ac: updated for autoconf 2.59.
1203
1204 * configure.ac: Support the use of OpenSSL hash functions.
1205 If --with-openssl=PATH option is specified, then the OpenSSL
1206 functions will be used; otherwise the built-in functions will be
1207 used.
1208
1209 * check-hash.c: New file to check MD5, SHA1 and HMAC functions for
1210 "make check".
1211
1212 2004-04-15 Roy Hills <[email protected]>
1213
1214 * ike-scan.h, ike-scan.c: Changed host entry list to use dynamic array
1215 grown with realloc rather than a linked list using malloc for each
1216 entry, plus an additional array of pointers. This reduces the amount
1217 of memory required from 56bytes per host to 45bytes per host.
1218
1219 * ike-scan.c: Added --random (-R) option to randomise the host entry
1220 list. This uses the Knuth shuffle algorithm to shuffle the array of
1221 pointers.
1222
1223 2004-04-05 Roy Hills <[email protected]>
1224
1225 * ike-scan.h: Changed num_sent and num_rcvd fields from unsigned to
1226 unsigned short to save space.
1227
1228 * ike-scan.c: Moved the various utility functions that are not IKE
1229 related to the new file utils.c.
1230
1231 * Makefile.am: Added new source file: utils.c
1232
1233 2004-03-29 Roy Hills <[email protected]>
1234
1235 * configure.ac: Incremented version number from 1.6 to 1.6.1 for next
1236 version.
1237 * ike-scan.h: Re-arranged struct host_entry for better alignment -
1238 moved "live" to end of structure.
1239 * ike-scan.c: Included host name in error message from gethostbyname().
1240 * ike-backoff-patterns: Added Linksys router pattern, submitted by
1241 Bob Davis.
1242
1243 2004-01-16 Roy Hills <[email protected]>
1244
1245 * Released v1.6 Tarball size: 141847, Zip size: 648717.
1246 tarball md5sum: 5cdc5633a2a7484805d76b3952b8cef6
1247 Zip md5sum: 86c417529af55b2e201e77f2f617dc95
1248
1249 2004-01-13 Roy Hills <[email protected]>
1250
1251 * Makefile.am: Added new shell-script-based tests check-run1,
1252 check-run2, and check-run3.
1253
1254 * ike-scan.1: Updated man page OPTIONS section and added FILES
1255 section.
1256
1257 * Added Russ Allbery's inet_aton replacement function for systems
1258 like Solaris which don't have inet_aton in the standard library.
1259 Added inet_aton check to configure.ac.
1260
1261 * ike-scan.c: Cast char * to unsigned char * before passing to
1262 isdigit(). isdigit can have problems with char if char is signed
1263 and value >127, esp. when it's implemented as a macro that indexes
1264 into an array as on Solaris 8.
1265
1266 * Use hexstring() to print cookie values rather than using htonl()
1267 on the two 32-bit pieces. Some systems define htonl() to return
1268 unsigned long while others return unsigned int making it impossible
1269 to use the same printf format string on all systems.
1270
1271 2004-01-10 Roy Hills <[email protected]>
1272
1273 * iks-scan.c, isakmp.c: Added regular expression support for
1274 Vendor ID pattern matching. Patterns in ike-vendor-ids
1275 are now Posix basic regular expressions which are compiled
1276 with "regcomp" and matched against the hex representation
1277 of the Vendor ID data with "regexec".
1278
1279 * configure.ac: Added check for Posix regular expression
1280 support.
1281
1282 2003-12-30 Roy Hills <[email protected]>
1283
1284 * isakmp.c: Added transform attribute generation functions make_attr()
1285 and add_attr(). Use these functions in make_trans() to improve
1286 readability and allow for future flexibility.
1287
1288 * ike-scan.c: Free various bits of malloc'ed storage when they are
1289 no longer used. The pointers involved are: vid_data, patcopy,
1290 id_data, gss_data, hdr, sa, prop, transforms, ke, nonce, id and vid.
1291 These are all used only at initialisation time. We don't save much
1292 memory by free'ing these, but it's better to be neat & tidy.
1293
1294 * check-sizes.c: New test program which checks the sizes of structures
1295 and types. This is referenced by the TESTS target in Makefile.am,
1296 so it gets run by "make check".
1297
1298 * ike-scan.c: check_struct_sizes() is now obsolete and has been
1299 removed.
1300
1301 2003-12-29 Roy Hills <[email protected]>
1302
1303 * isakmp.c: Fixed bug which caused the data length for ID and VID
1304 payloads to be 8 bytes more than it really was (we were not
1305 subtracting the length of the header structure).
1306
1307 * isakmp.c: Only check the returned VID against a candidate pattern if
1308 the VID data length is >= the candidate pattern length.
1309
1310 * isakmp.c: Moved notification_msg[] from global to process_notify()
1311 function. Use STR_OR_ID macro to display appropriate string from
1312 notification_msg[] which avoids a hard-coded constant. Changed
1313 format of "Firewall-1" 9101 notify message.
1314
1315 2003-12-24 Roy Hills <[email protected]>
1316
1317 * ike-scan.c: Modified error message if bind() fails to be more
1318 specific depending on the value of errno.
1319
1320 * ike-scan.c: Added --quiet option to prevent packet decode and thus
1321 shorten the output if required and --multiline option to split the
1322 decode over multiple lines (one line per payload).
1323
1324 * ike-scan.c: Improved protocol decode. SA and ID payloads are now
1325 decoded. For SA, the various transform attributes are shown.
1326
1327 * ike-scan.c: Added utility functions printable() and hexstring() to
1328 provide escaped-printable and hex representations of data.
1329
1330 * isakmp.c: New process_id() function to process ID payload. Improved
1331 process_sa() function to decode transforms. Transform decoding is
1332 no longer experimental.
1333
1334 2003-12-19 Roy Hills <[email protected]>
1335
1336 * isakmp.c: Added experimental support for displaying transform
1337 attributes. This code is only enabled if the --experimental option is
1338 specified. New attribute parsing function process_attr(),
1339 new macro STR_OR_ID, and new function numstr() as well as additional
1340 code in process_sa() function.
1341
1342 2003-12-11 Roy Hills <[email protected]>
1343
1344 * ike-scan.c: Added support for Vendor ID fingerprinting using
1345 fingerprints loaded from the file "ike-vendor-ids". Added
1346 --vidpatterns (-I) option to specify Vendor ID patterns file
1347 location if it's not the default.
1348
1349 * isakmp.c: Modified process_vid() to check for known Vendor ID
1350 and print entry from database if found.
1351
1352 2003-12-10 Roy Hills <[email protected]>
1353
1354 * ike-scan.c: Allow target hosts to be specified as IPnet/bits or
1355 IPstart-IPend as well as the traditional single host or IP address.
1356 The new function add_host_pattern() deals with these new formats.
1357 Added details to usage() to explain these additional formats.
1358 This functionality was first requested by Chris Gripp in Jan 2003.
1359
1360 2003-11-28 Roy Hills <[email protected]>
1361
1362 * ike-scan.c: Removed unnecessary gethostbyname() call.
1363
1364 2003-11-23 Roy Hills <[email protected]>
1365
1366 * ike-scan.c: Removed many global variables and made them local to
1367 main(). Only 4 global variables left now, all of which have
1368 some reason to stay global.
1369
1370 2003-11-22 Roy Hills <[email protected]>
1371
1372 * isakmp.c: Added support for GSS ID attribute in make_trans()
1373 function.
1374
1375 2003-11-21 Roy Hills <[email protected]>
1376
1377 * isakmp.c: Added support for lifesize (KB) to add_trans() and
1378 make_trans() functions.
1379
1380 * ike-scan.h: Modified function definitions for add_trans(),
1381 make_trans(), and initialise_ike_packet() to take lifesize
1382 argument.
1383
1384 * ike-scan.c: Added support for --lifesize (-z) option. Default
1385 is not to include this attribute.
1386
1387 2003-11-18 Roy Hills <[email protected]>
1388
1389 * isakmp.c: Wrote ISAKMP packet parsing routines: skip_payload,
1390 process_isakmp_hdr, process_sa, process_vid, process_notify.
1391 These are used by the new display_packet() routine in ike-scan.c
1392
1393 * ike-scan.c: Re-wrote display_packet() function to parse ISAKMP
1394 packet in a flexible way using functions in isakmp.c. This
1395 allows us to display multiple Vendor ID payloads (previously we
1396 could only display the first), and also to detect and print
1397 vendor ID payloads anywhere in the packet (previously it had to be
1398 immediately after the SA payload, which may not be the case with
1399 aggressive mode).
1400
1401 2003-11-14 Roy Hills <[email protected]>
1402
1403 * ike-scan.c: Fixed bug which could cause select() to be passed a
1404 negative timeout when collecting backoff fingerprints.
1405 * Released v1.5.1. Tarball size: 122595, Zip size: 632736.
1406 tarball md5sum: 6425534104fd9f6f644c6f7286ed40e1
1407 Zip md5sum: 52cf28982532030b2e7faf26dde8fb1d
1408
1409 2003-11-13 Roy Hills <[email protected]>
1410
1411 * ike-scan.c: Added support for IKE Aggressive Mode. New options:
1412 --aggressive, --id, --idtype, --dhgroup.
1413 * isakmp.c: Added functions to build id, nonce and ke payloads for
1414 Aggressive Mode.
1415 * ike-scan.1: Added details of Aggressive Mode options.
1416 * Released V1.5.
1417
1418 2003-11-08 Roy Hills <[email protected]>
1419
1420 * wrappers.c: New file containing system/library call wrappers
1421 for those calls which are not expected to fail. Wrappers have
1422 the same name as the underlying call but with initial capital
1423 letter. This convention is from W. Richard Stevens' Unix Network
1424 Programming book.
1425 * ike-scan.c: Changed to use wrapper functions for Gettimeofday,
1426 Malloc and Realloc.
1427 * isakmp.c: Changed to use wrapper function for Malloc.
1428 * isakmp.c: Wrote new add_trans() function. This allows a multi-
1429 transform payload to be built, it calls make_trans.
1430 * ike-scan.c: Use new add_trans() function in initialise_ike_packet()
1431 rather than manually building the transform payload using
1432 make_trans().
1433 * isakmp.c: Add new add_vid() function.
1434 * ike-scan.c: Use new add_vid() function to allow multiple VIDs to
1435 be specified.
1436 * ike-scan.c: Add new function decode_trans. Use this function to
1437 parse the --trans argument which allows the specification of
1438 encryption key length.
1439
1440 2003-11-07 Roy Hills <[email protected]>
1441
1442 * isakmp.c: Wrote ISAKMP payload construction functions.
1443 * ike-scan.c: Use functions from isakmp.c to construct ISAKMP
1444 payloads rather than manually filling in structures.
1445
1446 2003-10-30 Roy Hills <[email protected]>
1447
1448 * ike-scan.c: Change loop timing units from ms to us to improve
1449 accuracy. This requires a 64-bit integer type.
1450
1451 2003-10-30 Roy Hills <[email protected]>
1452
1453 * ike-scan.c: Added elapsed time statistics to "Ending:" line.
1454 * ike-scan.c: Changed atoi(optarg) to
1455 strtoul(optarg, (char **)NULL, 10) for unsigned options to allow
1456 full unsigned range.
1457 * ike-scan.c: Dynamically adjust select_timeout based on requested
1458 interval and cumulative error.
1459 * ike-scan.c: Removed --selectwait option as it is now unneccesary.
1460 * ike-scan.c: Renamed backoff variable to backoff_factor and changed
1461 type from float to double.
1462 * ike-scan.c: Timeout hosts immediately if possible when
1463 starting the timeout pass. This reduces the scanning time,
1464 especially when scanning a large number of hosts. Previously, the
1465 scanning time tended to <retries+1> * <num-hosts>; now it tends
1466 towards <retries> * <num-hosts>.
1467 * ike-scan.c: Added pass number which is displayed if verbose >= 1.
1468
1469 2003-10-29 Roy Hills <[email protected]>
1470
1471 * ike-scan.c: Don't call advance_cursor() if we can't send to a host
1472 yet because the next host won't be ready either.
1473 * ike-scan.c: Start the search for a matching cookie at cursor->prev
1474 rather than cursor.
1475
1476 2003-08-05 Roy Hills <[email protected]>
1477
1478 * Released version v1.4. Tarball size 114410 bytes, Zip size 622630.
1479 tarball md5sum: d8755044a041859cde12d111973bb541
1480 zip md5sum: 7871aead615b88e3fd6a516f60ac63d0
1481
1482 2003-07-17 Roy Hills <[email protected]>
1483
1484 * ike-scan.c: Print any vendor ID payload in hex if it follows an SA
1485 payload.
1486 * ike-scan.c: allocate vid_data using malloc rather than having a
1487 fixed-length array. This allows the supplied vendor id to be of
1488 arbitrary length.
1489
1490 2003-07-16 Roy Hills <[email protected]>
1491
1492 * ike-scan.c: Changed --vendor option to use a hex string of arbitrary
1493 length (up to MAXLINE) rather than an md5 hash of the supplied
1494 string. This allows us to specify any vendor ID e.g. the one that
1495 SecuRemote uses with main mode.
1496
1497 2003-07-10 Roy Hills <[email protected]>
1498
1499 * Released version v1.3. Tarball size 113350 bytes.
1500 tarball md5sum: 3fc330e97017ac93bd35fd2973d14e58
1501 Note: this is not an official release and no Windows (zip) version
1502 was produced. It is for internal use to test the new pattern
1503 matching code. However, it is available in the public download
1504 directory if anyone wants to use it.
1505
1506 2003-07-10 Roy Hills <[email protected]>
1507
1508 * ike-backoff-patterns: Added new patterns "watchguard-soho" and
1509 "sonicwall-pro". These both use the new "/" notation to represent
1510 per-entry fuzz values.
1511 * ike-scan.c: Add fact that per-pattern fuzz entries override the
1512 values specified with --fuzz to the help output.
1513 * Created detached GPG sigs (.asc) for *.tar.gz and *.zip using DSA
1514 key ID 567B9F3A Roy Hills <[email protected]>.
1515
1516 2003-07-10 Roy Hills <[email protected]>
1517
1518 * ike-scan.c: Added check_struct_sizes() to check the size of the
1519 ISAKMP structure sizes.
1520 * ike-scan.h: Added definition of check_struct_sizes().
1521
1522 2003-07-04 Roy Hills <[email protected]>
1523
1524 * ike-scan.c: Added support for per-pattern-entry fuzz specification
1525 in the patterns file.
1526 * ike-scan.h: New structure to support per-pattern-entry fuzz.
1527
1528 2003-06-27 Roy Hills <[email protected]>
1529
1530 * ike-scan.c: Improved backoff pattern display in dump_backoff().
1531 Use integer arithmetic in add_pattern() to avoid rounding errors.
1532 * ike-scan.h: Remove math.h include. Not needed now that we use
1533 integer arithmetic in add_pattern().
1534 * configure.ac: Removed check for maths library. Not needed now that
1535 we use integer arithmetic in add_pattern().
1536
1537 2003-06-17 Roy Hills <[email protected]>
1538
1539 * ike-scan.1: Created man page ike-scan.1. This is required by some
1540 Linux distributions e.g. Debian.
1541 * Makefile.am: Added support for new man page.
1542 * NEWS: Added info for v1.0, v1.1 and v1.2.
1543 * Makefile.am: Changed location of "ike-backoff-patterns" from
1544 $datadir to $pkgdatadir.
1545
1546 2003-06-11 Roy Hills <[email protected]>
1547
1548 * Released version v1.2. Tarball size 108137 bytes, Zip size 620292.
1549 tarball md5sum: 25777051bb09306cb0b86e0cf1c48caa
1550 zip md5sum: 5c02090900dc3fda7fa374fe99f48af5
1551
1552 2003-06-11 Roy Hills <[email protected]>
1553
1554 * ike-backoff-patterns: Minor comment changes.
1555
1556 2003-05-10 Roy Hills <[email protected]>
1557
1558 * configure.ac: Added package name and version to AC_INIT.
1559
1560 * ike-scan.c: Use PACKAGE_STRING and PACKAGE_BUGREPORT symbols rather
1561 than hard-coded strings.
1562
1563 2003-05-09 Roy Hills <[email protected]>
1564
1565 * configure.ac, acinclude.m4: Wrote macro AC_NTA_NET_SIZE_T to
1566 determine the best type to use for the 3rd argument to accept().
1567 This is normally socklen_t, but is sometimes int or size_t.
1568 This change allows the program to compile on HP Tru64 Unix.
1569
1570 2003-05-08 Roy Hills <[email protected]>
1571
1572 * configure.ac: Renamed configure.in to configure.ac to comply with
1573 new autoconf naming scheme and ran autoupdate to update from
1574 autoconf 2.13 to 2.53. No C code changes.
1575
1576 2003-02-21 Roy Hills <[email protected]>
1577
1578 * error.c: Changed "syslog(level, buf)" to "syslog(level, "%s", buf)"
1579 to fix syslog format string vulnerability.
1580
1581 2003-02-18 Roy Hills <[email protected]>
1582
1583 * Released version v1.1. Tarball size 91606 bytes, Zip size 578034.
1584 tarball md5sum: b87fe14043c43c2897cf309c364574b7
1585 zip md5sum: 59db0f1f170aaf50dfb2c05f4f950d00
1586 * Corrected typo in README-WIN32: know -> known.
1587
1588 2003-02-03 Roy Hills <[email protected]>
1589
1590 * Makefile.am: Changed DATADIR to IKEDATADIR.
1591 * ike-scan.h: Include <windows.h> if compiling under Cygwin.
1592 * ike-scan.c: Use ike-scan.exe dir as default patterns file dir
1593 if compiling under Cygwin.
1594 * ike-scan now compiles under Cygwin and can be used as a Windows EXE
1595 if CYGWIN1.DLL is present.
1596
1597 2003-01-30 Roy Hills <[email protected]>
1598
1599 * Minor changes to --help output to make use of <> brackets
1600 consistent.
1601
1602 2003-01-29 Roy Hills <[email protected]>
1603
1604 * ike-scan.c: Added output of "Ending:" line showing number of hosts
1605 scanned and number of responders after scan completes.
1606 * ike-scan.c: Only show backoff table if there is at least one
1607 handshake responder.
1608 * ike-scan.c: Don't bother waiting for extra packets after all host
1609 entries have been removed if there are no handshake responders.
1610 * ike-scan.c: Show that notify message 9101 is Firewall-1 4.x or NG
1611 in output message.
1612 * ike-scan.c: Cast value from htonl to uint32_t when used in printf
1613 statement to avoid warnings on those platforms which define htonl
1614 as returning unsigned long (like FreeBSD).
1615 * ike-backoff-patterns: Added OpenBSD-isakmpd, discovered by Thomas
1616 Walpuski.
1617
1618 2003-01-27 Roy Hills <[email protected]>
1619
1620 * Fixed possible buffer overflow in code which joined argv elements
1621 into a fixed-length string which is then written to syslog.
1622 * Removed RSA 1991 MD5 implementation and replaced with
1623 L. Peter Deutsch's MD5 implementation dated 2002.
1624
1625 2003-01-25 Roy Hills <[email protected]>
1626
1627 * Moved all #includes to ike-scan.h.
1628 * ike-scan.c, ike-scan.h: Changed host_entry element "n" from int to
1629 unsigned.
1630 * ike-scan.c: Changed printf format for unsigned from %d to %u.
1631 * ike-scan.c: Added exchange type (Main Mode or Aggressive Mode) to
1632 "handshake returned" message.
1633 * ike-scan.h: Make all #includes conditional based on configure findings
1634 * configure.in: Check for uint_8, uint_16 and u_int32 types using
1635 custom macro AC_NTA_CHECK_TYPE (defined in acinclude.m4). If the
1636 types are not defined, then #define them to values that will work on
1637 most systems.
1638 * ike-scan now builds and runs on two new platforms:
1639 - Debian Linux 1.3.1 (old libc5 based Linux system with 2.0 kernel)
1640 - Cygwin on Windows NT Workstation (only under the cygwin
1641 environment; this doesn't produce a standalone windows exe).
1642
1643 2003-01-23 Roy Hills <[email protected]>
1644
1645 * ike-backoff-patterns: Changed Cisco Concentrator entry to 0,8,8,8
1646
1647 2003-01-20 Roy Hills <[email protected]>
1648
1649 * Released initial version v1.0. Tarball size 86434 bytes,
1650 md5sum: 7299777c7d67d1cea82d9594867b4806