making code smaller is what we do

git-svn-id: file:///home/svn/incoming/trunk@2491 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2005-05-17 04:22:42 +00:00
parent bdda20cb14
commit 3fa760bc6a
1 changed files with 3 additions and 0 deletions

3
msfcli
View File

@ -10,6 +10,9 @@ framework.add_log_sink(Msf::Logging::Sinks::Flatfile.new('/tmp/msfcli.log'))
#encoder = framework.encoders.instantiate('gen_ia32_jmp_call_additive') #encoder = framework.encoders.instantiate('gen_ia32_jmp_call_additive')
encoder = Msf::Encoders::Generic::IA32::JmpCallAdditive.new encoder = Msf::Encoders::Generic::IA32::JmpCallAdditive.new
puts "#{encoder.author_to_s}"
puts "#{encoder.arch_to_s}"
begin begin
encoded = encoder.encode("\xcc\x90\x90\x90ABCDEFGHIJKLMNOPQRSTUVWXYZ", "\x87") encoded = encoder.encode("\xcc\x90\x90\x90ABCDEFGHIJKLMNOPQRSTUVWXYZ", "\x87")
rescue Msf::Encoding::BadcharException => detail rescue Msf::Encoding::BadcharException => detail