You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/banner/scanner.go
+19-11
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ import (
17
17
"net"
18
18
"regexp"
19
19
"strconv"
20
+
"time"
20
21
21
22
"github.com/zmap/zgrab2"
22
23
)
@@ -26,16 +27,19 @@ type Flags struct {
26
27
zgrab2.BaseFlags`group:"Basic Options"`
27
28
zgrab2.TLSFlags`group:"TLS Options"`
28
29
29
-
Probestring`long:"probe" default:"\\n" description:"Probe to send to the server. Use triple slashes to escape, for example \\\\\\n is literal \\n. Mutually exclusive with --probe-file."`
30
-
ProbeFilestring`long:"probe-file" description:"Read probe from file as byte array (hex). Mutually exclusive with --probe."`
31
-
Patternstring`long:"pattern" description:"Pattern to match, must be valid regexp."`
MaxTriesint`long:"max-tries" default:"1" description:"Number of tries for timeouts and connection errors before giving up. Includes making TLS connection if enabled."`
34
-
Hexbool`long:"hex" description:"Store banner value in hex. Mutually exclusive with --base64."`
35
-
Base64bool`long:"base64" description:"Store banner value in base64. Mutually exclusive with --hex."`
36
-
MD5bool`long:"md5" description:"Calculate MD5 hash of banner value."`
37
-
SHA1bool`long:"sha1" description:"Calculate SHA1 hash of banner value."`
38
-
SHA256bool`long:"sha256" description:"Calculate SHA256 hash of banner value."`
30
+
ReadTimeoutint`long:"read-timeout" default:"10" description:"Read timeout in milliseconds"`
31
+
BufferSizeint`long:"buffer-size" default:"8209" description:"Read buffer size in bytes"`
32
+
MaxReadSizeint`long:"max-read-size" default:"512" description:"Maximum amount of data to read in KiB (1024 bytes)"`
33
+
Probestring`long:"probe" default:"\\n" description:"Probe to send to the server. Use triple slashes to escape, for example \\\\\\n is literal \\n. Mutually exclusive with --probe-file."`
34
+
ProbeFilestring`long:"probe-file" description:"Read probe from file as byte array (hex). Mutually exclusive with --probe."`
35
+
Patternstring`long:"pattern" description:"Pattern to match, must be valid regexp."`
MaxTriesint`long:"max-tries" default:"1" description:"Number of tries for timeouts and connection errors before giving up. Includes making TLS connection if enabled."`
38
+
Hexbool`long:"hex" description:"Store banner value in hex. Mutually exclusive with --base64."`
39
+
Base64bool`long:"base64" description:"Store banner value in base64. Mutually exclusive with --hex."`
40
+
MD5bool`long:"md5" description:"Calculate MD5 hash of banner value."`
41
+
SHA1bool`long:"sha1" description:"Calculate SHA1 hash of banner value."`
42
+
SHA256bool`long:"sha256" description:"Calculate SHA256 hash of banner value."`
39
43
}
40
44
41
45
// Module is the implementation of the zgrab2.Module interface.
0 commit comments