mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
f124597a56
git-svn-id: file:///home/svn/framework3/trunk@5773 4d416f70-5f16-0410-b530-b9f4589650da
19 lines
419 B
Ruby
19 lines
419 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
|
|
|
|
require 'test/unit'
|
|
require 'rex/exploitation/seh'
|
|
|
|
class Rex::Exploitation::Seh::UnitTest < Test::Unit::TestCase
|
|
|
|
Klass = Rex::Exploitation::Seh
|
|
|
|
def test_static_record
|
|
r = Klass.new
|
|
record = r.generate_static_seh_record(0x41414141)
|
|
assert_equal("\xeb\x06", record[0, 2])
|
|
assert_equal("\x41\x41\x41\x41", record[4, 4])
|
|
end
|
|
|
|
end |