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. support@0dayinc.com



28
29
30
31
32
# File 'lib/pwn/ffi/stdio.rb', line 28

public_class_method def self.authors
  "AUTHOR(S):
    0day Inc. <support@0dayinc.com>
  "
end

.available?Boolean

Supported Method Parameters

PWN::FFI::Stdio.available?

Returns:

  • (Boolean)


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

public_class_method def self.available?
  true
end

.helpObject

Display Usage for this Module



36
37
38
39
40
41
42
43
44
45
46
# File 'lib/pwn/ffi/stdio.rb', line 36

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