Module: Msf::Module::Arch
- Included in:
- Msf::Module
- Defined in:
- lib/msf/core/module/arch.rb
Instance Attribute Summary collapse
-
#arch ⇒ Object
Returns the value of attribute arch.
Instance Method Summary collapse
-
#arch?(what) ⇒ Boolean
Return whether or not the module supports the supplied architecture.
-
#arch_to_s ⇒ Object
Return a comma separated list of supported architectures, if any.
-
#each_arch(&block) ⇒ Object
Enumerate each architecture.
Instance Attribute Details
#arch ⇒ Object
Returns the value of attribute arch.
8 9 10 |
# File 'lib/msf/core/module/arch.rb', line 8 def arch @arch end |
Instance Method Details
#arch?(what) ⇒ Boolean
Return whether or not the module supports the supplied architecture.
17 18 19 20 21 22 23 |
# File 'lib/msf/core/module/arch.rb', line 17 def arch?(what) if (what == ARCH_ANY) true else arch.index(what) != nil end end |
#arch_to_s ⇒ Object
Return a comma separated list of supported architectures, if any.
28 29 30 |
# File 'lib/msf/core/module/arch.rb', line 28 def arch_to_s arch.join(", ") end |
#each_arch(&block) ⇒ Object
Enumerate each architecture.
35 36 37 |
# File 'lib/msf/core/module/arch.rb', line 35 def each_arch(&block) arch.each(&block) end |