Sign inSign up

rmrbest/phantomjs-zap

By rmrbest

•Updated over 10 years ago

PhantomJS and ZAP owasp to automated security tests

Image
2

1.3K

rmrbest/phantomjs-zap repository overview

This image is intended for automated test security with Codeception BDD. Currently the ports are fixed, port 4444 for PhanthomJS and port 8090 for ZAP Owasp.

Docker compose config:

  • name: PhantomJS and ZAP security docker: name: phantomJsZAP image: rmrbest/phantomjs-zap ports: - "4444:4444" - "8090:8090"

A sample configuration for the acceptance test Codeception would be:

class_name: AcceptanceTester modules: enabled: - WebDriver: url: 'https://172.17.0.1⁠' browser: phantomjs http_proxy: 'localhost' http_proxy_port: '8090' capabilities: webStorageEnabled: true acceptSslCerts: true - Asserts - \Helper\Acceptance

Using https://packagist.org/packages/zaproxy/php-owasp-zap-v2⁠ library we can do testing:

$this->zap = new \Zap\Zapv2('tcp://127.0.0.1:8090'); $alerts = $this->zap->core->alerts();

$I->assertEquals(0, count($alerts));

Good luck!

Tag summary

Content type

Image

Digest

Size

404 MB

Last updated

over 10 years ago

docker pull rmrbest/phantomjs-zap