Sha256: 0a07083d47a43f4d8cfa675d47727d2594c63e47b052fb66be5a04bc929583be
Contents?: true
Size: 1.2 KB
Versions: 86
Compression:
Stored size: 1.2 KB
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 os = :cygwin if OS.cygwin? os = :freebsd if OS.freebsd? os = :linux if OS.linux? os = :netbsd if OS.host_os.include?('netbsd') os = :openbsd if OS.host_os.include?('openbsd') os = :osx if OS.osx? os = :windows if OS.windows? os rescue StandardError => e raise e end # Supported Method Parameters:: # PWN::Plugins::DetectOS.arch public_class_method def self.arch RUBY_PLATFORM.split('-').first 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}.arch #{self}.authors " end end end end
Version data entries
86 entries across 86 versions & 1 rubygems