Sha256: fa1383acfb2a18746d9e6ceaea456ebc206a28b56ec3b612bf1d213c0c701ef6

Contents?: true

Size: 419 Bytes

Versions: 43

Compression:

Stored size: 419 Bytes

Contents

#!/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

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
librex-0.0.65 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.63 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.54 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.53 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.52 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.51 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.50 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.49 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.48 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.47 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.46 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.44 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.43 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.42 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.41 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.40 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.39 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.38 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.37 lib/rex/exploitation/seh.rb.ut.rb
librex-0.0.36 lib/rex/exploitation/seh.rb.ut.rb