-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a generic profile step and clean up cukes
- Loading branch information
1 parent
5f871ae
commit 5c3fcae
Showing
23 changed files
with
147 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
@slow | ||
Feature: nmap attacks for example.com | ||
Background: | ||
Given "nmap" is installed | ||
And the target hostname is "google.com" | ||
And the target tcp_ping_ports are "22,25,80,443" | ||
And the following profile: | ||
| name | value | | ||
| hostname | google.com | | ||
| tcp_ping_ports | 22,25,80,443 | | ||
|
||
@slow | ||
Scenario: Using tcp syn ping scan and the nmap fast flag | ||
When I launch an "nmap" attack with: | ||
""" | ||
nmap -F -PS<tcp_ping_ports> <hostname> | ||
""" | ||
Then the output should contain: | ||
""" | ||
80/tcp | ||
""" | ||
21/tcp open ftp | ||
80/tcp open http | ||
443/tcp open https | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,47 @@ | ||
Feature: Run attacks by tag | ||
|
||
Background: | ||
Given an attack "nmap" exists | ||
And a file named "nmap.attack" with: | ||
""" | ||
Feature: my nmap attacks | ||
Given a file named "foobar.attack" with: | ||
""" | ||
Feature: silly attack | ||
@foo | ||
Scenario: Foo | ||
Given the target hostname is "foo" | ||
@foo | ||
Scenario: Foo | ||
Given the following profile: | ||
| name | value | | ||
| foo | bar | | ||
@bar | ||
Scenario: Bar | ||
Given the target hostname is "bar" | ||
""" | ||
@bar | ||
Scenario: Bar | ||
Given the following profile: | ||
| name | value | | ||
| bar | baz | | ||
""" | ||
|
||
Scenario: Run attack for one tag | ||
When I run `gauntlt --tags @foo` | ||
Then it should pass with: | ||
""" | ||
Feature: my nmap attacks | ||
""" | ||
Feature: silly attack | ||
@foo | ||
""" | ||
@foo | ||
""" | ||
And the stdout should contain: | ||
""" | ||
1 scenario (1 passed) | ||
1 step (1 passed) | ||
""" | ||
""" | ||
1 scenario (1 passed) | ||
1 step (1 passed) | ||
""" | ||
|
||
Scenario: Run attack by exluding one tag | ||
When I run `gauntlt --tags ~@foo` | ||
Then it should pass with: | ||
""" | ||
Feature: my nmap attacks | ||
""" | ||
Feature: silly attack | ||
@bar | ||
""" | ||
@bar | ||
""" | ||
And the stdout should contain: | ||
""" | ||
1 scenario (1 passed) | ||
1 step (1 passed) | ||
""" | ||
""" | ||
1 scenario (1 passed) | ||
1 step (1 passed) | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.