Commit Graph

14 Commits

Author SHA1 Message Date
David Adrian
11425ac78b
Add Description() to ScanModule (#248)
This abstracts more of the help text into the ScanModule definition,
removing some more of the need for `zgrab2.AddCommand()`

https://github.com/zmap/zgrab2/pull/248
2020-02-18 10:24:04 -05:00
Jeff Cody
fb49609733
Remove GetPort() from modules
The previous patch allows the port to be specified in the
`ScanTarget{}`.

Since the port option in the Config may not be the port currently being
scanned, delete the `GetPort()` function provided by each module.

The `GetPort()` function is also not used.  While we could just change
the meaning of this function, to mean "Return the port in the Config",
it is probably better to go ahead and just remove all references to it
as there are no users.
2019-08-21 14:55:14 -04:00
Justin Bastress
fd322d3ecd fix missing format specifier 2018-12-18 16:32:44 -05:00
Justin Bastress
6618920234 add some tighter bounds checking in MSSQL scanner, and if there is an uncaught panic, log the body that caused it 2018-10-01 11:08:26 -04:00
J. Alex Halderman
9df97e03cf Add support for tags and triggers. 2018-06-26 13:51:10 -04:00
Justin Bastress
71090d71b3 handshakeErr, not err 2018-05-22 18:23:19 -04:00
Justin Bastress
a14f3dc584 include negotiated encrypt_mode 2018-05-22 17:06:48 -04:00
Justin Bastress
89e0e956d5 MSSQL: Strip null terminator from instance_name; changeInstanceName to a pointer to distinguish the empty names (e.g. just a null terminator) from no name being returned. 2018-05-18 15:25:08 -04:00
Justin Bastress
7dc895a975 fix logrus collision 2018-05-11 11:52:08 -04:00
Justin Bastress
0cfc4bdff3 lower log level of per-scan errors 2018-05-11 11:45:59 -04:00
Justin Bastress
e77866dfea loglevel fixes 2018-05-11 11:43:08 -04:00
Justin Bastress
17a5c0e85c Scanner modules return the protocol ID, scan returns the protocol in the results. 2018-03-12 13:36:11 -04:00
justinbastress
730b7221ca
Update MSSQL GoDocs (#60)
* re-export mssql primitives; golint; expanded godocs; log whether we ever read a valid TDS packet; move ServerVersion string conversion into ServerVersion method

* add package godocs; re-export module items; populate InstanceName; set default EncryptMode == ENCRYPT_ON; detailed scan godocs; fix return value in case of failed / incomplete detection;
2018-02-21 10:04:25 -05:00
justinbastress
8eb958e22c
Add MSSQL zgrab2 module (#38) 2018-02-02 14:52:03 -05:00