Update outputdebugstring rspec

GSoC/Meterpreter_Web_Console
Wei Chen 2018-06-28 21:10:26 -05:00
parent 5c86b836c4
commit 39bbfb0c58
1 changed files with 18 additions and 0 deletions

View File

@ -23,4 +23,22 @@ RSpec.describe Metasploit::Framework::Obfuscation::CRandomizer::CodeFactory::Out
expect(subject.dep).to eq(['OutputDebugString'])
end
end
describe '#outputdebugstring_2' do
it 'is a string' do
expect(subject.send(:outputdebugstring_2).class).to be(String)
end
it 'has an OutputDebugString' do
expect(subject.send(:outputdebugstring_2)).to match(/OutputDebugString\(.+\)/)
end
it 'has a stub() function' do
expect(subject.send(:outputdebugstring_2)).to match(/void stub()/)
end
it 'depends on stdlib.h' do
expect(subject.dep).to eq(['OutputDebugString'])
end
end
end