Module: Pwnlib::Shellcraft::Generators::I386::Linux
- Extended by:
- Helper
- Defined in:
- lib/pwnlib/shellcraft/generators/i386/linux/linux.rb,
lib/pwnlib/shellcraft/generators/i386/linux/ls.rb,
lib/pwnlib/shellcraft/generators/i386/linux/sh.rb,
lib/pwnlib/shellcraft/generators/i386/linux/cat.rb,
lib/pwnlib/shellcraft/generators/i386/linux/exit.rb,
lib/pwnlib/shellcraft/generators/i386/linux/open.rb,
lib/pwnlib/shellcraft/generators/i386/linux/sleep.rb,
lib/pwnlib/shellcraft/generators/i386/linux/execve.rb,
lib/pwnlib/shellcraft/generators/i386/linux/syscall.rb
Overview
For os-related methods.
Instance Method Summary collapse
- #cat(filename, fd: 1) ⇒ Object
- #execve(path, argv, envp) ⇒ Object
- #exit(status = 0) ⇒ Object
- #ls(dir = '.') ⇒ Object
- #open(filename, flags = 'O_RDONLY', mode = 0) ⇒ Object
- #sh(argv: false) ⇒ Object
- #sleep(seconds) ⇒ Object
- #syscall(*arguments) ⇒ Object
Methods included from Helper
Instance Method Details
#cat(filename, fd: 1) ⇒ Object
15 16 17 18 19 |
# File 'lib/pwnlib/shellcraft/generators/i386/linux/cat.rb', line 15 def cat(*args, **kwargs) context.local(arch: :i386) do cat X86::Linux.cat(*args, **kwargs) end end |
#execve(path, argv, envp) ⇒ Object
15 16 17 18 19 |
# File 'lib/pwnlib/shellcraft/generators/i386/linux/execve.rb', line 15 def execve(*args) context.local(arch: :i386) do cat X86::Linux.execve(*args) end end |
#exit(status = 0) ⇒ Object
15 16 17 18 19 |
# File 'lib/pwnlib/shellcraft/generators/i386/linux/exit.rb', line 15 def exit(*args) context.local(arch: :i386) do cat X86::Linux.exit(*args) end end |
#ls(dir = '.') ⇒ Object
15 16 17 18 19 |
# File 'lib/pwnlib/shellcraft/generators/i386/linux/ls.rb', line 15 def ls(*args) context.local(arch: :i386) do cat X86::Linux.ls(*args) end end |
#open(filename, flags = 'O_RDONLY', mode = 0) ⇒ Object
15 16 17 18 19 |
# File 'lib/pwnlib/shellcraft/generators/i386/linux/open.rb', line 15 def open(*args) context.local(arch: :i386) do cat X86::Linux.open(*args) end end |
#sh(argv: false) ⇒ Object
15 16 17 18 19 |
# File 'lib/pwnlib/shellcraft/generators/i386/linux/sh.rb', line 15 def sh(**kwargs) context.local(arch: :i386) do cat X86::Linux.sh(**kwargs) end end |