Skip to content

Commit

Permalink
2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsteele committed Apr 11, 2016
1 parent f930ec8 commit c73bcc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ Required Arguments:
Options:
-h --help Show this message.
-v --version Show version.
-p <port ranges> Ex: -p 22; -p 1-65535, -p 80,443. [default: 1-1024]
-p <port ranges> Ports to scan. Ex: -p 22; -p 1-65535, -p 80,443. [default: 1-1024]
-e <port ranges> Ports to exclude from scan. Ex: -e 22; -p 21,23. [default: 0]
-g <int> Amount of goroutines to spread connection attempts across. [default: 1000]
-c <int> Minimum confidence level to flag port as open. [default: 1]
-i <interface> Network interface to listen on.
-t <timeout> Timeout in Milliseconds to wait for a connection. [default: 400]
-j <file> Output JSON to file.
```
4 changes: 2 additions & 2 deletions cmd/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type O struct {
}

func parse() *O {
args, err := docopt.Parse(usage, nil, true, "cookiescan 2.0.0", false)
args, err := docopt.Parse(usage, nil, true, "cookiescan 2.1.0", false)
if err != nil {
log.Fatalf("Error parsing usage. Error: %s\n", err.Error())
}
Expand Down Expand Up @@ -79,7 +79,7 @@ func parse() *O {
log.Fatalf("Error parsing port string. Error %s\n", err.Error())
}
servicesToExclude, err := explode(args["-e"].(string))
if err != nil {
if err != nil && args["-e"].(string) != "0" {
log.Fatalf("Error parsing exclude port string. Error %s\n", err.Error())
}
for _, e := range servicesToExclude {
Expand Down

0 comments on commit c73bcc7

Please sign in to comment.