Module: PWN::Plugins::DetectOS
- Defined in:
- lib/pwn/plugins/detect_os.rb
Overview
This plugin converts images to readable text
Class Method Summary collapse
-
.authors ⇒ Object
- Author(s)
-
0day Inc.
-
.help ⇒ Object
Display Usage for this Module.
-
.type ⇒ Object
- Supported Method Parameters
-
PWN::Plugins::DetectOS.type.
Class Method Details
.authors ⇒ Object
- Author(s)
-
0day Inc. <[email protected]>
23 24 25 26 27 |
# File 'lib/pwn/plugins/detect_os.rb', line 23 public_class_method def self. "AUTHOR(S): 0day Inc. <[email protected]> " end |
.help ⇒ Object
Display Usage for this Module
31 32 33 34 35 36 37 |
# File 'lib/pwn/plugins/detect_os.rb', line 31 public_class_method def self.help puts "USAGE: #{self}.type #{self}.authors " end |
.type ⇒ Object
- Supported Method Parameters
-
PWN::Plugins::DetectOS.type
12 13 14 15 16 17 18 19 |
# File 'lib/pwn/plugins/detect_os.rb', line 12 public_class_method def self.type return :cygwin if OS.cygwin? return :linux if OS.linux? return :osx if OS.osx? return :windows if OS.windows? rescue StandardError => e raise e end |