FiloSottile / Heartbleed

A checker (site and tool) for CVE-2014-0160
http://filippo.io/Heartbleed
MIT License
2.31k stars 465 forks source link

Output all results to stdout #52

Closed kasimon closed 6 years ago

kasimon commented 10 years ago

Please send all scan results of the command line tool to stdout. This makes processing mass scan results, i.e. with xargs, much simpler. The following example should only output VULNERABLE lines:

$ sudo zmap -p 443 -n 1000 -o- -q | xargs -n 1 docker run kasimon/heartbleed | grep VULNERABLE Apr 09 15:42:24.601 [INFO] zmap: output module: csv Apr 09 15:42:32.836 [INFO] zmap: completed 2014/04/09 13:42:33 - ERROR: tls: oversized record received with length 20291 2014/04/09 13:42:33 - ERROR: EOF 2014/04/09 13:42:37 ([]uint8) { 00000000 02 00 79 68 65 61 72 74 62 6c 65 65 64 2e 66 69 |..yheartbleed.fi| 00000010 6c 69 70 70 6f 2e 69 6f 59 45 4c 4c 4f 57 20 53 |lippo.ioYELLOW S| 00000020 55 42 4d 41 52 49 4e 45 d9 a0 da a3 ed 4f 60 e8 |UBMARINE.....O`.| 00000030 88 0a 89 3c f9 08 3a 8b 18 5e 11 5c 31 f6 ba fb |...<..:..^.\1...| 00000040 ed f9 bb 41 46 a5 3c 72 19 79 b1 61 12 59 5b c3 |...AF.<r.y.a.Y[.| 00000050 7b 8d c0 40 d5 d2 6e 06 a7 64 6a 0d e7 8a 26 b2 |{..@..n..dj...&.| 00000060 d6 3a 6f 4b 22 a1 b9 dc 5d ae 85 a8 04 31 22 06 |.:oK"...]....1".| 00000070 1f 71 28 44 dc ef 7a 92 9b 3d cb 7b 57 f9 16 de |.q(D..z..=.{W...| 00000080 29 78 7c 9f d0 d1 da 91 37 cf ef cb |)x|.....7...| }

2014/04/09 13:42:37 - VULNERABLE

Thanks!

kasimon commented 6 years ago

I think this issue is not relevant anymore, closing it.