gauntlt/gauntlt

View on GitHub
examples/nmap/simple.attack

Summary

Maintainability
Test Coverage
@slow
Feature: simple nmap attack (sanity check)

  Background:
    Given "nmap" is installed
    And the following profile:
      | name     | value      |
      | hostname | scanme.nmap.org |

  Scenario: Verify server is available on standard web ports
    When I launch an "nmap" attack with:
      """
      nmap -p 80,443 <hostname>
      """
    Then the output should match /80.tcp\s+open/
    And the output should not match:
      """
      443/tcp\s+open
      """