Class: Rex::Exploitation::Seh::UnitTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/rex/exploitation/seh.rb.ut.rb

Constant Summary collapse

Klass =
Rex::Exploitation::Seh

Instance Method Summary collapse

Instance Method Details

#test_static_recordObject



13
14
15
16
17
18
# File 'lib/rex/exploitation/seh.rb.ut.rb', line 13

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