Sha256: 2f6d703506e3a884687e8291253e54567083dcd87b02b2cd80aee38f0ab9bff3
Contents?: true
Size: 996 Bytes
Versions: 102
Compression:
Stored size: 996 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 :freebsd if OS.freebsd? return :linux if OS.linux? return :netbsd if OS.host_os.include?('netbsd') return :openbsd if OS.host_os.include?('openbsd') return :osx if OS.osx? return :windows if OS.windows? rescue StandardError => e raise e end # Author(s):: 0day Inc. <request.pentest@0dayinc.com> public_class_method def self.authors "AUTHOR(S): 0day Inc. <request.pentest@0dayinc.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
102 entries across 102 versions & 1 rubygems