Sha256: 8ee509563438dbdf20f4fbac0923cb945bf3558f8d7c44d56896449362748d9c
Contents?: true
Size: 837 Bytes
Versions: 5
Compression:
Stored size: 837 Bytes
Contents
# frozen_string_literal: true require 'os' module PWN module Plugins # This plugin converts images to readable text module DetectOS # Supported Method Parameters:: # PWN::Plugins::DetectOS.type 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 # Author(s):: Jacob Hoopes <jake.hoopes@gmail.com> public_class_method def self.authors "AUTHOR(S): Jacob Hoopes <jake.hoopes@gmail.com> " end # Display Usage for this Module public_class_method def self.help puts "USAGE: #{self}.type #{self}.authors " end end end end
Version data entries
5 entries across 5 versions & 1 rubygems