bettercap 1.4.0 → 1.4.1

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: 214e440979cb074a4c28623b1f460d109b6ab387
4
- data.tar.gz: 33ffe4a92b00400ec8b6ef6571f39eea61f2f391
3
+ metadata.gz: f64cdb79dca07a3c065c5f3366f7f671c6079bfe
4
+ data.tar.gz: c0e595b1c5fbc9063ca6a0221e1abdf672285d90
5
5
  SHA512:
6
- metadata.gz: 4f54113d707ce98a6d32dbd0449f6de4642f2bc4db864682d5a3e672c1ccb7daf8caa74cab9c1a6a3a10fb92efc8f3cffdca98e9c24298e8eaf374f43fefe21d
7
- data.tar.gz: 237137662023bd41e07f8fd0ba5c7f408ccb76fe7037999a154873193cfd837f124abe7151bfa0442d6c529142b487f3d7d4a99f32fc816ec5444ec97770fe5f
6
+ metadata.gz: af93686ecafad8b4cea0f54358006c671687065a1c07374ff8791e170294fb5a51664acafa1a2b00c3e29e742366e53eaacf0a67b64d4f5be73dbc2f6faa490e
7
+ data.tar.gz: 9bd343afaf63459684ddf4db394374cb07f65707da3dadf8d9747a59be8a8391c08181bf96b3b572808ec2c8d14db8ffd97bd898928c42ff6a982632fd19b51c
@@ -25,6 +25,7 @@ class Context
25
25
  attr_accessor :firewall
26
26
  # Network gateway IP address.
27
27
  attr_accessor :gateway
28
+ attr_accessor :gateway_mac_resolved
28
29
  # A list of BetterCap::Target objects which is periodically updated.
29
30
  attr_accessor :targets
30
31
  # Instance of BetterCap::Discovery::Thread class.
@@ -69,6 +70,7 @@ class Context
69
70
  @ifconfig = nil
70
71
  @firewall = nil
71
72
  @gateway = nil
73
+ @gateway_mac_resolved = false
72
74
  @targets = []
73
75
  @proxy_processor = nil
74
76
  @spoofer = nil
@@ -49,7 +49,7 @@ class Base
49
49
  # Return true if +ip+ must be skipped during discovery, otherwise false.
50
50
  def skip_address?(ip)
51
51
  # don't send probes to the gateway
52
- if ip == @ctx.gateway
52
+ if ip == @ctx.gateway and @ctx.gateway_mac_resolved
53
53
  return true
54
54
  # don't send probes to our device
55
55
  elsif ip == @local_ip
@@ -109,7 +109,7 @@ private
109
109
  hw = Network.get_hw_address( @ctx, @ctx.gateway )
110
110
  raise BetterCap::Error, "Couldn't determine router MAC" if hw.nil?
111
111
  @gateway = Network::Target.new( @ctx.gateway, hw )
112
-
112
+ @ctx.gateway_mac_resolved = true
113
113
  Logger.info "[#{'GATEWAY'.green}] #{@gateway.to_s(false)}"
114
114
  end
115
115
 
@@ -12,7 +12,7 @@ This project is released under the GPL 3 license.
12
12
  =end
13
13
  module BetterCap
14
14
  # Current version of bettercap.
15
- VERSION = '1.4.0'
15
+ VERSION = '1.4.1'
16
16
  # Program banner.
17
17
  BANNER = File.read( File.dirname(__FILE__) + '/banner' ).gsub( '#VERSION#', "v#{VERSION}")
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bettercap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simone Margaritelli