zgrab2/integration_tests
Clayton Zimmerman 9b00db7f29
Feature/create ipp module (#137)
* Changes grab to return *ScanResults. Implements ippInContentType correctly.

* Slots in an operational re-working of several HTTP module functions, and adds dependency on zgrab's http module. Includes some laregly copy-pasted sections worthy of scrutiny.

* Adds support to retry failed HTTP over HTTPS. Removes vestigial functions.

* Implements sending CUPS-get-printers request if CUPS is detected, yielding more detailed & accurate version information. Also handles URI's more correctly.

* Creates separate container to run IPP over TLS on CUPS. Runs basic tests against both containers.

* Creates virtual printer on each container to test for augmenting data with CUPS-get-printers request (which only works when printers exist).

* Augments version information with CUPS-get-printers response if possible.

* Allows specifying IPP version in constructed requests. Checks for version-not-supported server error.

* Allows resending IPP requests with different versions if we hit a version-not-supported error.

* Updates IPP zgrab2 schema to include fields added in modules/ipp/scanner.go

* Removes unnecessary TODO's

* Updates testable example for new definition of AttributeByteString

* Removes versionNotSupported's dependency on bufferFromBody. Checks bounds on generated requests' fields correctly.

* Updates zgrab2 IPP schema to match ScanResults object in modules/ipp/scanner.go

* Corrects IPP tests, bounds checking, zgrab schema formatting.

* Logs errors for unexpected behavior in buffer io operations. Updates schema to include standalone fields for attributes described in CUPS-get-printers response.

* Logs at debug level only when verbose flag is set. Prints accurate error message when CUPSVersion test fails.

* Handles HTTP request errors before checking for nil response/body. Fixes and tests convertURIToIPP.
2018-06-26 12:00:27 -04:00
..
.template Fix new.sh, add sample container setup; add apt-update target for zgrab2_service_base 2018-05-30 12:07:24 -04:00
ftp fix service test scripts -- remove useless i flags to docker run; if container is already running, use it; smarter wait conditions for postgres and mysql 2018-01-29 16:53:50 -05:00
http Port http from zgrab (#31) 2018-02-09 13:45:50 -05:00
ipp Feature/create ipp module (#137) 2018-06-26 12:00:27 -04:00
mssql Add MSSQL zgrab2 module (#38) 2018-02-02 14:52:03 -05:00
mysql golint and godocs for mysql module (#56) 2018-02-12 10:42:45 -05:00
ntp Add NTP zgrab2 module (#39) 2018-02-07 12:25:46 -05:00
pop3 fix input flags 2018-03-15 13:25:53 -04:00
postgres Merge #45 into master (#52) 2018-01-31 13:01:14 -05:00
redis Add redis zgrab2 module (#53) 2018-02-13 13:25:47 -05:00
smtp Add integration tests; Post PR comment updates: stray further from original ZGrab input/output in favor of more zgrab2-like input/output; make QUIT optional (default off). 2018-03-15 11:07:18 -04:00
ssh fix service test scripts -- remove useless i flags to docker run; if container is already running, use it; smarter wait conditions for postgres and mysql 2018-01-29 16:53:50 -05:00
telnet chmod +x shell scripts 2018-03-14 09:20:03 -04:00
cleanup.sh Implements postgres zgrab2 module (#30) 2018-01-15 14:24:57 -05:00
new.sh compatible new.sh with OSX 2018-06-22 11:28:45 +08:00
setup.sh sandwich each module's test.sh with its setup.sh and cleanup.sh; fix some relative paths in test.sh 2018-01-29 16:48:57 -05:00
test.sh handle module rename 2018-05-04 11:31:53 -04:00