Sha256: 95ce31f0d76a929029e7d5d90f3d44babf0a9a09aea5f53f22eeb8580860a5b3

Contents?: true

Size: 665 Bytes

Versions: 2

Compression:

Stored size: 665 Bytes

Contents

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

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

require 'test/unit'
require 'rex/exploitation/omelet'

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

	Klass = Rex::Exploitation::Omelet

	def test_generate
		x = Klass.new('win', ARCH_X86)

		om = x.generate("\xcc" * 1024, '', {
			#:eggsize => 31336,       # default: 123
			#:eggtag => "b00",        # default: 00w
			#:searchforward => false, # default: true
			#:reset => true,          # default: false
			#:startreg => "EBP",      # default: none
			:checksum => true        # default: false
		})
		# XXX: TODO: assertions!
	end

end

Version data entries

2 entries across 2 versions & 1 rubygems

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