Sha256: c455bdc464f827491cd61cb632bc1a899a44abfcdcd23116e0c82fb9a8fa5946

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

#!/usr/bin/env ruby
# -*- coding: binary -*-

$:.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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
librex-0.0.68 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.66 lib/rex/exploitation/seh.rb.ut.rb