Skip to content

Commit 85d1b56

Browse files
Revert "get it done"
This reverts commit ccee2b3.
1 parent ccee2b3 commit 85d1b56

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

gauntlt/nmap.attack

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,17 @@ Feature: nmap attacks for localhost and to use this for your tests, change the v
3232
"""
3333
443/tcp
3434
"""
35+
36+
Scenario: Output to XML
37+
When I launch an "nmap" attack with:
38+
"""
39+
nmap -p 22,80,443 -oX /app/build/nmap-results.xml <hostname>
40+
"""
41+
And the file "/app/build/nmap-results.xml" should contain XML:
42+
| css |
43+
| ports port[protocol="tcp"][portid="22"] state[state="open"] |
44+
And the file "/app/build/nmap-results.xml" should not contain XML:
45+
| css |
46+
| ports port[protocol="tcp"][portid="80"] state[state="open"] |
47+
| ports port[protocol="tcp"][portid="443"] state[state="open"] |
48+

0 commit comments

Comments
 (0)