Class: Ownlan::Configuration
- Inherits:
-
Object
- Object
- Ownlan::Configuration
- Defined in:
- lib/ownlan/config.rb
Instance Attribute Summary collapse
-
#attack ⇒ Object
Returns the value of attribute attack.
-
#broadcast ⇒ Object
Returns the value of attribute broadcast.
-
#capture ⇒ Object
Returns the value of attribute capture.
-
#client ⇒ Object
Returns the value of attribute client.
-
#delay ⇒ Object
Returns the value of attribute delay.
-
#fake_ip_conflict ⇒ Object
Returns the value of attribute fake_ip_conflict.
-
#freeze ⇒ Object
Returns the value of attribute freeze.
-
#gateway ⇒ Object
Returns the value of attribute gateway.
-
#gateway_ip ⇒ Object
Returns the value of attribute gateway_ip.
-
#gateway_mac ⇒ Object
Returns the value of attribute gateway_mac.
-
#help ⇒ Object
Returns the value of attribute help.
-
#interface ⇒ Object
Returns the value of attribute interface.
-
#modes ⇒ Object
Returns the value of attribute modes.
-
#ntoa ⇒ Object
Returns the value of attribute ntoa.
-
#protect ⇒ Object
Returns the value of attribute protect.
-
#random_mac ⇒ Object
Returns the value of attribute random_mac.
-
#resynchronize ⇒ Object
Returns the value of attribute resynchronize.
-
#source_ip ⇒ Object
Returns the value of attribute source_ip.
-
#source_mac ⇒ Object
Returns the value of attribute source_mac.
-
#static ⇒ Object
Returns the value of attribute static.
-
#stealth ⇒ Object
Returns the value of attribute stealth.
-
#version ⇒ Object
Returns the value of attribute version.
-
#victim_ip ⇒ Object
(also: #target_ip)
Returns the value of attribute victim_ip.
-
#victim_mac ⇒ Object
(also: #target_mac)
Returns the value of attribute victim_mac.
Instance Method Summary collapse
-
#initialize ⇒ Ownlan::Configuration
constructor
Create a new instance.
- #manual_sub_modes ⇒ Object
Constructor Details
#initialize ⇒ Ownlan::Configuration
Create a new instance.
38 39 40 41 42 43 |
# File 'lib/ownlan/config.rb', line 38 def initialize @modes = { attack: attack_sub_modes, protect: protect_sub_modes, manual: manual_sub_modes } @interface = 'wlan0' @delay = 0.5 @random_mac = false end |
Instance Attribute Details
#attack ⇒ Object
Returns the value of attribute attack.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def attack @attack end |
#broadcast ⇒ Object
Returns the value of attribute broadcast.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def broadcast @broadcast end |
#capture ⇒ Object
Returns the value of attribute capture.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def capture @capture end |
#client ⇒ Object
Returns the value of attribute client.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def client @client end |
#delay ⇒ Object
Returns the value of attribute delay.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def delay @delay end |
#fake_ip_conflict ⇒ Object
Returns the value of attribute fake_ip_conflict.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def fake_ip_conflict @fake_ip_conflict end |
#freeze ⇒ Object
Returns the value of attribute freeze.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def freeze @freeze end |
#gateway ⇒ Object
Returns the value of attribute gateway.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def gateway @gateway end |
#gateway_ip ⇒ Object
Returns the value of attribute gateway_ip.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def gateway_ip @gateway_ip end |
#gateway_mac ⇒ Object
Returns the value of attribute gateway_mac.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def gateway_mac @gateway_mac end |
#help ⇒ Object
Returns the value of attribute help.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def help @help end |
#interface ⇒ Object
Returns the value of attribute interface.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def interface @interface end |
#modes ⇒ Object
Returns the value of attribute modes.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def modes @modes end |
#ntoa ⇒ Object
Returns the value of attribute ntoa.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def ntoa @ntoa end |
#protect ⇒ Object
Returns the value of attribute protect.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def protect @protect end |
#random_mac ⇒ Object
Returns the value of attribute random_mac.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def random_mac @random_mac end |
#resynchronize ⇒ Object
Returns the value of attribute resynchronize.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def resynchronize @resynchronize end |
#source_ip ⇒ Object
Returns the value of attribute source_ip.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def source_ip @source_ip end |
#source_mac ⇒ Object
Returns the value of attribute source_mac.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def source_mac @source_mac end |
#static ⇒ Object
Returns the value of attribute static.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def static @static end |
#stealth ⇒ Object
Returns the value of attribute stealth.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def stealth @stealth end |
#version ⇒ Object
Returns the value of attribute version.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def version @version end |
#victim_ip ⇒ Object Also known as: target_ip
Returns the value of attribute victim_ip.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def victim_ip @victim_ip end |
#victim_mac ⇒ Object Also known as: target_mac
Returns the value of attribute victim_mac.
25 26 27 |
# File 'lib/ownlan/config.rb', line 25 def victim_mac @victim_mac end |
Instance Method Details
#manual_sub_modes ⇒ Object
54 55 56 |
# File 'lib/ownlan/config.rb', line 54 def manual_sub_modes [:broadcast, :capture] end |