Sha256: 939077114d7a145d4ff560604a7aed92cf077e3899b86e47704691964c28f889
Contents?: true
Size: 843 Bytes
Versions: 331
Compression:
Stored size: 843 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):: 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
331 entries across 331 versions & 1 rubygems