Skip to content

Commit e8812de

Browse files
Get Gauntlt tests passing in Vagrant
1 parent 9490000 commit e8812de

File tree

4 files changed

+10
-53
lines changed

4 files changed

+10
-53
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
/terraform/tf.plan
1212
__pycache__
1313
build/
14+
tmp/
1415
jmeter.log
1516
scan-xccdf-results.html
1617
scan-xccdf-results.xml

Diff for: gauntlt/nmap.attack

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
@slow
22

3-
Feature: nmap attacks for scanme.nmap.org and to use this for your tests, change the value in the profile
3+
Feature: nmap attacks for localhost and to use this for your tests, change the value in the profile
44
Background:
55
Given "nmap" is installed
66
And the following profile:
77
| name | value |
8-
| hostname | scanme.nmap.org |
9-
| host | scanme.nmap.org |
8+
| hostname | localhost |
9+
| host | localhost |
1010
| tcp_ping_ports | 22,25,80,443 |
1111

1212
Scenario: Verify server is open on expected set of ports using the nmap-fast attack step
1313
When I launch a "nmap-fast" attack
14-
Then the output should match /80.tcp\s+open/
14+
Then the output should match /22.tcp\s+open/
1515

1616
Scenario: Verify server is open on expected set of ports using the nmap fast flag
1717
When I launch an "nmap" attack with:
@@ -20,7 +20,7 @@ Feature: nmap attacks for scanme.nmap.org and to use this for your tests, change
2020
"""
2121
Then the output should match:
2222
"""
23-
80/tcp\s+open
23+
22/tcp\s+open
2424
"""
2525

2626
Scenario: Verify that there are no unexpected ports open
@@ -30,20 +30,19 @@ Feature: nmap attacks for scanme.nmap.org and to use this for your tests, change
3030
"""
3131
Then the output should not contain:
3232
"""
33-
22/tcp
34-
25/tcp
33+
443/tcp
3534
"""
3635

3736
Scenario: Output to XML
3837
When I launch an "nmap" attack with:
3938
"""
40-
nmap -p 80,443 -oX foo.xml <hostname>
39+
nmap -p 22,80,443 -oX foo.xml <hostname>
4140
"""
4241
And the file "foo.xml" should contain XML:
4342
| css |
44-
| ports port[protocol="tcp"][portid="80"] state[state="open"] |
43+
| ports port[protocol="tcp"][portid="22"] state[state="open"] |
4544
And the file "foo.xml" should not contain XML:
4645
| css |
47-
| ports port[protocol="tcp"][portid="123"] state[state="open"] |
46+
| ports port[protocol="tcp"][portid="80"] state[state="open"] |
4847
| ports port[protocol="tcp"][portid="443"] state[state="open"] |
4948

Diff for: gauntlt/os_detection.attack

-18
This file was deleted.

Diff for: gauntlt/simple-env-var.attack

-25
This file was deleted.

0 commit comments

Comments
 (0)