Class: Ownlan::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ownlan/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOwnlan::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

#attackObject

Returns the value of attribute attack.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def attack
  @attack
end

#broadcastObject

Returns the value of attribute broadcast.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def broadcast
  @broadcast
end

#captureObject

Returns the value of attribute capture.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def capture
  @capture
end

#clientObject

Returns the value of attribute client.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def client
  @client
end

#delayObject

Returns the value of attribute delay.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def delay
  @delay
end

#fake_ip_conflictObject

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

#freezeObject

Returns the value of attribute freeze.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def freeze
  @freeze
end

#gatewayObject

Returns the value of attribute gateway.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def gateway
  @gateway
end

#gateway_ipObject

Returns the value of attribute gateway_ip.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def gateway_ip
  @gateway_ip
end

#gateway_macObject

Returns the value of attribute gateway_mac.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def gateway_mac
  @gateway_mac
end

#helpObject

Returns the value of attribute help.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def help
  @help
end

#interfaceObject

Returns the value of attribute interface.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def interface
  @interface
end

#modesObject

Returns the value of attribute modes.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def modes
  @modes
end

#ntoaObject

Returns the value of attribute ntoa.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def ntoa
  @ntoa
end

#protectObject

Returns the value of attribute protect.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def protect
  @protect
end

#random_macObject

Returns the value of attribute random_mac.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def random_mac
  @random_mac
end

#resynchronizeObject

Returns the value of attribute resynchronize.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def resynchronize
  @resynchronize
end

#source_ipObject

Returns the value of attribute source_ip.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def source_ip
  @source_ip
end

#source_macObject

Returns the value of attribute source_mac.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def source_mac
  @source_mac
end

#staticObject

Returns the value of attribute static.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def static
  @static
end

#stealthObject

Returns the value of attribute stealth.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def stealth
  @stealth
end

#versionObject

Returns the value of attribute version.



25
26
27
# File 'lib/ownlan/config.rb', line 25

def version
  @version
end

#victim_ipObject 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_macObject 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_modesObject



54
55
56
# File 'lib/ownlan/config.rb', line 54

def manual_sub_modes
  [:broadcast, :capture]
end