bettercap 1.5.6 → 1.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 448814ea9165cb85842e789e96fa88f80a0a7215
|
4
|
+
data.tar.gz: 11bb1d92babeea5b728c99acbe57a00a5bd3e2fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b265f32b2d0f9873fd349084e348f6cc869addf8a11f78197e831ef8c79186d6a64adb52a720c4b6367c7b03bacc57ab13fca653b05f8a2e7ac09cca47f7b58e
|
7
|
+
data.tar.gz: fbf10090bf70ab35efdf586a22e95d88e6cf5027ed1f7a6be3be776d0fc6f65b0a0966f68dc9afecedb5c3182917dc3b9fdb0c72f07ccf708f9dda7750b4914c
|
data/bin/bettercap
CHANGED
@@ -57,8 +57,15 @@ rescue Exception => e
|
|
57
57
|
BetterCap::Logger.error "Backtrace :\n\n #{e.backtrace.join("\n ")}\n"
|
58
58
|
|
59
59
|
ensure
|
60
|
+
# handle double ctrl+c nicely
|
61
|
+
trap("INT") { }
|
62
|
+
|
60
63
|
# Make sure all the messages on the logger queue are printed.
|
61
|
-
|
64
|
+
begin
|
65
|
+
BetterCap::Logger.wait!
|
66
|
+
rescue; end
|
62
67
|
|
63
|
-
|
68
|
+
begin
|
69
|
+
ctx.finalize unless ctx.nil?
|
70
|
+
rescue; end
|
64
71
|
end
|
@@ -58,6 +58,9 @@ class Store
|
|
58
58
|
|
59
59
|
# Find the +hostname+:+port+ certificate and return it.
|
60
60
|
def find( hostname, port )
|
61
|
+
# make sure *.domain.tld hostnames are correctly sanitized
|
62
|
+
hostname.gsub!( "*", "www" )
|
63
|
+
|
61
64
|
key = Digest::SHA256.hexdigest( "#{hostname}_#{port}" )
|
62
65
|
|
63
66
|
@lock.synchronize {
|
@@ -287,7 +287,8 @@ class Strip
|
|
287
287
|
if link[0].end_with?('\\')
|
288
288
|
link[0][-1] = '/'
|
289
289
|
end
|
290
|
-
|
290
|
+
normalized, stripped = StrippedObject.process( link[0] )
|
291
|
+
links << [ link[0], stripped ]
|
291
292
|
end
|
292
293
|
end
|
293
294
|
# handle errors due to binary content
|
@@ -122,7 +122,7 @@ private
|
|
122
122
|
if target.mac.nil?
|
123
123
|
hw = Network.get_hw_address( @ctx, target.ip )
|
124
124
|
if hw.nil?
|
125
|
-
Logger.
|
125
|
+
Logger.debug "Couldn't determine target #{target.ip} MAC address!"
|
126
126
|
next
|
127
127
|
else
|
128
128
|
target.mac = hw
|
@@ -132,7 +132,7 @@ private
|
|
132
132
|
elsif target.ip_refresh
|
133
133
|
ip = Network.get_ip_address( @ctx, target.mac )
|
134
134
|
if ip.nil?
|
135
|
-
Logger.
|
135
|
+
Logger.debug "Couldn't determine target #{target.mac} IP address!"
|
136
136
|
next
|
137
137
|
else
|
138
138
|
doprint = ( target.ip.nil? or target.ip != ip )
|
data/lib/bettercap/version.rb
CHANGED
@@ -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.5.
|
15
|
+
VERSION = '1.5.7'
|
16
16
|
# Program banner.
|
17
17
|
BANNER = File.read( File.dirname(__FILE__) + '/banner' ).gsub( '#VERSION#', "v#{VERSION}")
|
18
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bettercap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simone Margaritelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|