Class: Rex::Exploitation::Egghunter::UnitTest
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- Rex::Exploitation::Egghunter::UnitTest
- Defined in:
- lib/rex/exploitation/egghunter.rb.ut.rb
Constant Summary collapse
- Klass =
Rex::Exploitation::Egghunter
Instance Method Summary collapse
Instance Method Details
#test_egghunter ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/rex/exploitation/egghunter.rb.ut.rb', line 12 def test_egghunter payload = "\xcc" * 1023 r = Klass.new('bogus') assert_nil(r.generate(payload)) r = Klass.new('win') assert_nil(r.generate(payload)) r = Klass.new('win', ARCH_X86) assert_not_nil(r.generate(payload)) assert_not_nil(r.generate(payload)[0]) assert_not_nil(r.generate(payload)[1]) end |