Sha256: 979d298681bbdbe4b9c2f8df3e672884d2496518eacf1e66c3337b3747be14da
Contents?: true
Size: 599 Bytes
Versions: 2
Compression:
Stored size: 599 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: binary -*- $:.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 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 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
librex-0.0.68 | lib/rex/exploitation/egghunter.rb.ut.rb |
librex-0.0.66 | lib/rex/exploitation/egghunter.rb.ut.rb |