Module: Msf::Exploit::Local::CompileC

Included in:
Linux, LinuxKernel
Defined in:
lib/msf/core/exploit/local/compile_c.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cparserObject

Returns the value of attribute cparser.



7
8
9
# File 'lib/msf/core/exploit/local/compile_c.rb', line 7

def cparser
  @cparser
end

#cpuObject

Returns the value of attribute cpu.



6
7
8
# File 'lib/msf/core/exploit/local/compile_c.rb', line 6

def cpu
  @cpu
end

Instance Method Details

#init_metasm(cpu, cparser = nil) ⇒ Object



14
15
16
17
# File 'lib/msf/core/exploit/local/compile_c.rb', line 14

def init_metasm(cpu, cparser=nil)
  @cpu = cpu
  @cparser = cparser || @cpu.new_cparser
end

#setupObject



9
10
11
12
# File 'lib/msf/core/exploit/local/compile_c.rb', line 9

def setup
  super
  init_metasm(Metasm::Ia32.new)
end