Commit Graph

419 Commits

Author SHA1 Message Date
Justin Bastress
65a7c8a578 Merge branch 'jb/session-wide-timeout' into jb/mssqlBoundsChecking 2018-10-01 14:25:04 -04: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
Justin Bastress
72dc9e7c5a fix UDP case 2018-09-28 11:52:02 -04:00
Justin Bastress
b207f5ba68 add conn.go tests 2018-09-28 10:58:00 -04:00
Justin Bastress
900b0d5912 add bytelimit tests 2018-09-27 14:00:26 -04:00
parkanzky
e7e7be1f6f
Merge pull request #168 from zmap/paul/fix-buildinfo-none
Omit empty build_info elm on mongodb output
2018-09-25 15:35:30 -04:00
Paul A. Parkanzky
04fa04a413 Omit empty build_info elm on mongodb output
Fixes CEN-817
2018-09-25 11:41:07 -04:00
justinbastress
412aefa977
Merge pull request #166 from zmap/paul/mongodb-fix-index-err
MongoDB - fix isMaster message length check.
2018-09-14 16:33:33 -04:00
Paul A. Parkanzky
122f945fb1 MongoDB - fix isMaster message length check.
Needs to account for OP_REPLY header
2018-09-14 16:09:36 -04:00
Justin Bastress
00682b1001 add tests 2018-09-13 14:55:27 -04:00
Justin Bastress
a92a983159 Merge branch 'master' into jb/session-wide-timeout 2018-09-06 13:49:03 -04:00
justinbastress
a8ed44d653
Update conn.go 2018-09-06 13:03:02 -04:00
justinbastress
1461f2d48d
Merge pull request #164 from zmap/jb/zcrypto-update-fixes
Fix for zcrypto updates
2018-09-05 18:03:06 -04:00
Justin Bastress
c51faaf8f5 use functions introduced in https://github.com/zmap/zcrypto/pull/178 in place of functions removed in https://github.com/zmap/zcrypto/pull/173/files 2018-09-05 16:26:05 -04:00
Justin Bastress
45a4cb0e90 re #163 -- add outer whole-connection timeout to TimeoutConnection, and add scan-target-wide timeout to HTTP scanner (adding a max time spent across redirects, too) 2018-09-05 14:33:59 -04:00
parkanzky
24e4b4b4fc
Merge pull request #162 from zmap/paul/mongodb-fix-ismaster-BSON-case
BSON tag is case sensitive - s/isMaster/ismaster
2018-08-30 09:36:03 -04:00
Paul A. Parkanzky
bb9324e00d BSON tag is case sensitive - s/isMaster/ismaster 2018-08-29 16:45:27 -04:00
parkanzky
ad2fe2c924
Merge pull request #161 from zmap/paul/mongodb-msglen-zero
Fix possible index error on malformed msg
2018-08-28 16:41:33 -04:00
Paul A. Parkanzky
1a1aa96793 Put upper limit on buffer size alloc 2018-08-28 16:13:35 -04:00
Paul A. Parkanzky
a7ddf61d74 Fix possible index error on malformed msg 2018-08-28 14:34:18 -04:00
parkanzky
264b811a72
Merge pull request #156 from zmap/paul/mongodb
Add MongoDB scanner.
2018-08-22 13:54:28 -04:00
Paul A. Parkanzky
d9aec0ae40 Improve partial results for mongodb scanner
* Separate out isMaster and buildInfo commands
* Return results of both in separate sub-structs
* Include isMaster results regardless of whether buildInfo succeeds
2018-08-22 11:49:17 -04:00
justinbastress
3327114cd0
Merge pull request #160 from zmap/jb/addMissingPostgresErrorType
add missing 'constraint' field for postgres_error
2018-08-22 10:15:17 -04:00
Justin Bastress
a139cc9349 add missing 'constraint' field for postgres_error 2018-08-22 10:07:59 -04:00
Paul A. Parkanzky
68bb3e9790 Return appropriate short write error 2018-08-21 17:08:01 -04:00
Paul A. Parkanzky
7419796cfc Address more PR comments
* Add error message to invalid BSON log msg
* Use snake case for json output
* Update affect integration tests
2018-08-21 16:34:35 -04:00
Paul A. Parkanzky
8b9c23f122 Fix typo and integration test which tested for it 2018-08-21 16:01:40 -04:00
Paul A. Parkanzky
f891880db4 Make some PR-requested changes
* Generate static messages in Scanner Init()
* s/panic/log.Fatal/
* Remove unnecessary casting
* Use stack var and pass slice to avoid unnecessary alloc
2018-08-21 14:51:48 -04:00
Paul A. Parkanzky
7386c5d3fa Fix script #! invocations 2018-08-21 13:33:56 -04:00
Paul A. Parkanzky
2f316b2242 Add mongodb integration tests. 2018-08-21 13:11:34 -04:00
Chris Dzombak
d8bba99313
Stop marking fields as “required” (#158)
This causes problems when trying to load data into BigQuery if, for example, an entire protocol or subrecord is unpopulated.
2018-08-21 12:33:26 -04:00
Paul A. Parkanzky
72cbe9ae63 Add support for mongodb >= 4.1 2018-08-20 16:16:05 -04:00
justinbastress
268294c16b
Merge pull request #157 from zmap/jb/fixCertTypeId
Fix CertType
2018-08-20 12:21:44 -04:00
Justin Bastress
ecbd12f11a note source location 2018-08-20 12:04:35 -04:00
Justin Bastress
1e4f4b9b51 Enums are Strings, but this value is actually a uint32 2018-08-20 12:03:18 -04:00
Paul A. Parkanzky
becec08234 Call the wrapped Write() method. 2018-08-17 15:17:26 -04:00
Paul A. Parkanzky
51b3763456 Go get module package dependencies. 2018-08-17 14:31:31 -04:00
Paul A. Parkanzky
784a186b39 Add MongoDB scanner. 2018-08-17 12:04:38 -04:00
justinbastress
e3e5189068 Replace Strings with WhitespaceAnalyzedStrings
https://github.com/zmap/zgrab2/pull/155
2018-08-14 14:37:39 -04:00
Clayton Zimmerman
8318aae089
Changes CertType's id field to an Enum of strings, as ES expects. (#154) 2018-08-03 13:59:05 -04:00
justinbastress
2e5d029946
Merge pull request #153 from zmap/feature/ipp-improve-scan
Finalize Before 1% Scan
2018-07-16 09:52:37 -04:00
Clayton Zimmerman
26e22bad97 Makes redirect response chain (currently unused) a debug field. 2018-07-12 16:47:26 -04:00
Clayton Zimmerman
dc3d7d1cb7 Adds bounds checks to avoid panic when value-less attributes have the correct name to be recorded directly in results. 2018-07-11 14:57:22 -04:00
Clayton Zimmerman
9d1265db8b Avoids skipping retry when an application error is encountered. 2018-07-11 14:45:46 -04:00
Clayton Zimmerman
6cffb7a888
IPP: document output fields (#151)
Documents fields of IPP scan results in schema.
2018-07-11 13:31:34 -04:00
justinbastress
96d3b8375f
Merge pull request #152 from zmap/feature/ipp-tls-retry
Try TLS before plaintext when using ipps-retry
2018-07-11 13:08:40 -04:00
Clayton Zimmerman
2c47dfc1f2 Makes Attributes default output (rather than debug). 2018-07-11 11:52:13 -04:00
Clayton Zimmerman
f9eb6e00db Rename tls-retry option to ipps-retry 2018-07-11 10:38:42 -04:00
Clayton Zimmerman
b407bb2aaf
Fix read all attributes (#150)
Parses empty attribute-groups correctly by skipping to the next one.
Also, compensates for change in Scanner.config.BaseFlags.Timeout's type.
2018-07-10 17:10:39 -04:00
clayzim
1fa9b886e4 Changes TLS-Retry to attempt TLS before plaintext, ideally gathering more information. 2018-07-10 16:07:28 -04:00