Files
metasploit-gs/spec/lib/rex/exploitation/js/memory_spec.rb
T
2014-08-26 15:24:08 -05:00

31 lines
728 B
Ruby

require 'rex/exploitation/js'
describe Rex::Exploitation::Js::Memory do
context "Class methods" do
context ".mstime_malloc" do
it "should load the mstime_malloc javascript" do
js = Rex::Exploitation::Js::Memory.mstime_malloc
js.should =~ /function mstime_malloc/
end
end
context ".property_spray" do
it "should load the property_spray javascript" do
js = Rex::Exploitation::Js::Memory.property_spray
js.should =~ /function sprayHeap/
end
end
context ".heap_spray" do
it "should load the heap_spray javascript" do
js = Rex::Exploitation::Js::Memory.heap_spray
js.should =~ /function sprayHeap/
end
end
end
end