Module: PWN::FFI::Stdio

Extended by:
Library
Defined in:
lib/pwn/ffi/stdio.rb

Overview

This plugin is a wrapper for the standard I/O functions in libc.

Class Method Summary collapse

Class Method Details

.authorsObject

Author(s)

0day Inc. <[email protected]>



20
21
22
23
24
# File 'lib/pwn/ffi/stdio.rb', line 20

public_class_method def self.authors
  "AUTHOR(S):
    0day Inc. <[email protected]>
  "
end

.helpObject

Display Usage for this Module



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/pwn/ffi/stdio.rb', line 28

public_class_method def self.help
  puts "USAGE:
    #{self}.puts string
    #{self}.printf(\"format string\", str, int, etc)

    scanf_buffer = FFI::MemoryPointer.new(:char, 100)
    #{self}.scanf(\"format string\", scanf_buffer)

    #{self}.authors
  "
end