Class: Ronin::Code::ASM::Shellcode
- Defined in:
- lib/ronin/code/asm/shellcode.rb
Overview
Constant Summary
Constants inherited from Program
Program::PARSERS, Program::SYNTAX
Instance Attribute Summary
Attributes inherited from Program
#allocated_registers, #arch, #instructions, #os, #registers, #syscalls, #word_size
Instance Method Summary collapse
-
#assemble(output: nil, **kwargs) ⇒ String
Assembles the Shellcode.
Methods inherited from Program
#byte, #critical, #dword, #eval, #initialize, #instruction, #interrupt, #label, #method_missing, #qword, #register, #register?, #register_clear, #register_load, #register_save, #register_set, #stack_pop, #stack_push, #syscall, #to_asm, #to_s, #word
Constructor Details
This class inherits a constructor from Ronin::Code::ASM::Program
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ronin::Code::ASM::Program
Instance Method Details
#assemble(output: nil, **kwargs) ⇒ String
Assembles the Shellcode.
64 65 66 67 68 69 70 |
# File 'lib/ronin/code/asm/shellcode.rb', line 64 def assemble(output: nil, **kwargs) output ||= Tempfile.new(['ronin-shellcode', '.bin']).path super(output, format: :bin, **kwargs) return File.binread(output) end |