package main

import (
	"log"
	"os"

	"github.com/FiloSottile/CVE-2016-2107/LuckyMinus20"
)

func main() {
	res, err := LuckyMinus20.Test(os.Args[1])
	if err != nil {
		log.Fatal(err)
	}
	log.Println("Vulnerable:", res)
	if res {
		os.Exit(1)
	}
}

package main

import (
	"log"
	"os"

	"github.com/FiloSottile/CVE-2016-2107/LuckyMinus20"
)

func main() {
	res, err := LuckyMinus20.Test(os.Args[1])
	if err != nil {
		log.Fatal(err)
	}
	log.Println("Vulnerable:", res)
	if res {
		os.Exit(2)
	}
}

Exit with error code 2 for vulnerable to make scripting easier
Exit with error code 2 for vulnerable to make scripting easier

As it happens, the log.fatal() above it will also exit(1)
meaning that from a scripts perspective, you cannot tell the
differance between a failure to connect or whatever, or an actual
postive on the test. Exiting with 2 because ???, I don't know what
else should be exited as.

This closes #3
