Sha256: dcf415a9fb9c7b71018a1015bc77e64b70f915a294ec3b366669b72859a5b607

Contents?: true

Size: 501 Bytes

Versions: 18

Compression:

Stored size: 501 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))

require 'test/unit'
require 'rex/exploitation/egghunter'

class Rex::Exploitation::Egghunter::UnitTest < Test::Unit::TestCase

	Klass = Rex::Exploitation::Egghunter

	def test_egghunter
		r = Klass.new('bogus')
		assert_nil(r.generate)

		r = Klass.new('win')
		assert_nil(r.generate)

		r = Klass.new('win', ARCH_X86)
		assert_not_nil(r.generate)
		assert_not_nil(r.generate[0])
		assert_not_nil(r.generate[1])
	end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
librex-0.0.30 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.29 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.28 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.27 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.26 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.25 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.23 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.21 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.19 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.17 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.13 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.12 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.7 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.6 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.5 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.4 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.3 lib/rex/exploitation/egghunter.rb.ut.rb
librex-0.0.1 lib/rex/exploitation/egghunter.rb.ut.rb