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
-
.authors ⇒ Object
- Author(s)
0day Inc.
-
.available? ⇒ Boolean
- Supported Method Parameters
PWN::FFI::Stdio.available?.
-
.help ⇒ Object
Display Usage for this Module.
Class Method Details
.authors ⇒ Object
- Author(s)
0day Inc. [email protected]
28 29 30 31 32 |
# File 'lib/pwn/ffi/stdio.rb', line 28 public_class_method def self. "AUTHOR(S): 0day Inc. <[email protected]> " end |
.available? ⇒ Boolean
- Supported Method Parameters
PWN::FFI::Stdio.available?
22 23 24 |
# File 'lib/pwn/ffi/stdio.rb', line 22 public_class_method def self.available? true end |
.help ⇒ Object
Display Usage for this Module
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/pwn/ffi/stdio.rb', line 36 public_class_method def self.help # libc `puts` is attached on this module; use Kernel so $stdout capture # (rspec help_contract) and the REPL both see Ruby IO, not fd 1 raw. Kernel.puts "USAGE: # Run available and return its result #{self}.available? # Print the AUTHOR(S) string for this module. #{self}.authors " constants.sort end |