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


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

def cparser
  @cparser
end

#cpuObject

Returns the value of attribute cpu


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

def cpu
  @cpu
end

Instance Method Details

#init_metasm(cpu, cparser = nil) ⇒ Object


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

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

#setupObject


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

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