Module: Ownlan

Defined in:
lib/ownlan.rb,
lib/ownlan/cli.rb,
lib/ownlan/config.rb,
lib/ownlan/version.rb,
lib/ownlan/exceptions.rb,
lib/ownlan/application.rb,
lib/ownlan/attack/base.rb,
lib/ownlan/attack/ntoa.rb,
lib/ownlan/protect/base.rb,
lib/ownlan/attack/client.rb,
lib/ownlan/attack/gateway.rb,
lib/ownlan/manual/capture.rb,
lib/ownlan/protect/freeze.rb,
lib/ownlan/protect/static.rb,
lib/ownlan/protect/stealth.rb,
lib/ownlan/manual/broadcast.rb,
lib/ownlan/protect/resynchronize.rb,
lib/ownlan/attack/fake_ip_conflict.rb

Defined Under Namespace

Modules: Attack, Manual, Protect Classes: Application, Cli, Configuration, Exception, MissingArgumentError, NotRoot, VictimNotReachable, WrongInterace, WrongVictimIpFormat

Constant Summary collapse

VERSION =
"0.4.6"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.applicationObject (readonly)

Returns the value of attribute application.



31
32
33
# File 'lib/ownlan.rb', line 31

def application
  @application
end

Class Method Details

.callObject



37
38
39
# File 'lib/ownlan.rb', line 37

def call
  application.call
end

.configOwnlan::Configuration

Access point for the gem configurations.

Returns:



6
7
8
# File 'lib/ownlan/config.rb', line 6

def self.config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ void

This method returns an undefined value.

Configure hook used in the gem initializer. Convinient way to set all the gem configurations.

example:

Ownlan.configure do |config|
  config.depth = 3
end

Yields:



19
20
21
# File 'lib/ownlan/config.rb', line 19

def self.configure
  yield config if block_given?
end

.new(opts) ⇒ Object



33
34
35
# File 'lib/ownlan.rb', line 33

def new(opts)
  @application = Ownlan::Application.new(opts)
end