ownlan 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de47556689ff2bd8200ab6563f0db9bdea19e791
4
- data.tar.gz: 8640d8eb85dbc44ee0f88976a9f50bbc7f264330
3
+ metadata.gz: 58090a93209571ab8b94438ae1ce65c0269e5109
4
+ data.tar.gz: a7ae9ddb9c9c0275e6538d884d46a07fc7ee399e
5
5
  SHA512:
6
- metadata.gz: b96ce1e8048d204aaa198e22ebe89a45448e8d4013fa6dc2f6282d7a8d2306204c244a4212380ca5cb276d585bd0a669699d3dc2cc1bb92bbe7a5afbe64e6ebb
7
- data.tar.gz: 497ffa054999873ba3e73c54872dac8f3ead35e0bf9a629b2331485efac2bd8f242296b59ee5b93bae02b6def469e13ec91a2948bc047e0e86506946e2252a21
6
+ metadata.gz: f49472dd4d69fc352b1653ebec11268af83cbd7a022e711e9614e840b1d1b7bca66f4844d35fc6c1760b00fb14208305be41376cd97e01f027b37b13b2520ccb
7
+ data.tar.gz: 899a13b7f95c20d327aa7b2d9ee634c7e3e496950170c79d8987236faf7e2bc81bfb57c4911e68eafc45c91da297db4416af2c4f3fed634d7f3d60e5f91f7774
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ownlan (0.4.1)
4
+ ownlan (0.4.2)
5
5
  activesupport
6
6
  packetfu
7
7
  trollop
@@ -47,6 +47,7 @@ module Ownlan
47
47
  end
48
48
 
49
49
  def source_mac(a=nil, b=nil, c=nil)
50
+ binding.pry
50
51
  if config.random_mac
51
52
  "00:03:FF:#{@a}:#{@b}:#{@c}"
52
53
  else
data/lib/ownlan/cli.rb CHANGED
@@ -78,7 +78,7 @@ Other Options:
78
78
 
79
79
  opt :delay, "Set the time lapse delay between each packet", default: 0.5
80
80
  opt :interface, "Set the network interface which will be used", short: 'i', default: 'wlan0'
81
- opt :random_mac, "If setted, the used origin addresses will be randomly generated."
81
+ opt :random_mac, "If setted, the used origin addresses will be randomly generated.", type: :boolean, default: false
82
82
  opt :victim_ip, "Set the ip address of the target.", short: 't', type: :string
83
83
  opt :victim_mac, "Set the mac address of the target", type: :string
84
84
  opt :gateway_ip, "Set the ip adress of the gateway", type: :string
data/lib/ownlan/config.rb CHANGED
@@ -39,6 +39,7 @@ module Ownlan
39
39
  @modes = { attack: attack_sub_modes, protect: protect_sub_modes, manual: manual_sub_modes }
40
40
  @interface = 'wlan0'
41
41
  @delay = 0.5
42
+ @random_mac = false
42
43
  end
43
44
 
44
45
  def source_mac
@@ -1,3 +1,3 @@
1
1
  module Ownlan
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ownlan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sidney