Class: Pwnlib::ABI::SyscallABI

Inherits:
ABI
  • Object
show all
Defined in:
lib/pwnlib/abi.rb

Overview

The syscall ABI treats the syscall number as the zeroth argument, which must be loaded into the specified register.

Instance Attribute Summary collapse

Attributes inherited from ABI

#arg_alignment, #cdq_pair, #register_arguments, #stack_pointer

Instance Method Summary collapse

Methods inherited from ABI

default, syscall

Constructor Details

#initialize(regs, align, stack_pointer, syscall_str) ⇒ SyscallABI

Returns a new instance of SyscallABI.



45
46
47
48
# File 'lib/pwnlib/abi.rb', line 45

def initialize(regs, align, stack_pointer, syscall_str)
  super(regs, align, stack_pointer)
  @syscall_str = syscall_str
end

Instance Attribute Details

#syscall_strObject (readonly)

Returns the value of attribute syscall_str.



43
44
45
# File 'lib/pwnlib/abi.rb', line 43

def syscall_str
  @syscall_str
end