bettercap 1.3.1 → 1.3.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: f9801e0373d15f52908660dc7aed084d8f91950d
4
- data.tar.gz: 50b9f0bc24a28b4b3c7529e5d5fbd65cc96f12c4
3
+ metadata.gz: 3d2a9962f1c08de2c9af91a1c8c2273374ac9693
4
+ data.tar.gz: 94787e76c7844106cc0004e810c1ce15ccbc6d91
5
5
  SHA512:
6
- metadata.gz: d9c118a677a01f88be5ca3e064e32852912f97a9e8487bd820defc650a73d684d4a78c433e9a7f2bc56d13716c08c4a1eb776d1242ee34910783b3beb00de981
7
- data.tar.gz: 59d4054d3ddda701f44967074ac6042d6bbbcbd72306cd9808c6069ebec613e3d43c0d93b98d0b43a437770215ecb20ec19357b920191054455bdc33ab13578f
6
+ metadata.gz: ba0c1a5bf763233b64c5139b94e0a8887cb0bdfac942a6be1a7e3476f0cc7b07a4ae29af389c6144af9a6ba84b86de50af54575e86f7ea2efb33771738c0b143
7
+ data.tar.gz: 3e74e7d919ff117110c7be47a6632f7dedc94ed7ccae1f3558dc9b33cf02925086857fa7d5362f536ff35a983d41fea5ac4390978fe89851a647a1f2b97da284
@@ -24,7 +24,7 @@ class Linux < Base
24
24
  # If +enabled+ is true will enable packet forwarding, otherwise it will
25
25
  # disable it.
26
26
  def enable_forwarding(enabled)
27
- File.open(IP_FORWARD_PATH) { |f| f.puts "#{enabled ? 1 : 0}" }
27
+ File.open(IP_FORWARD_PATH,'w') { |f| f.puts "#{enabled ? 1 : 0}" }
28
28
  end
29
29
 
30
30
  # Return true if packet forwarding is currently enabled, otherwise false.
@@ -35,13 +35,13 @@ class Linux < Base
35
35
  # If +enabled+ is true will enable packet icmp_echo_ignore_broadcasts, otherwise it will
36
36
  # disable it.
37
37
  def enable_icmp_bcast(enabled)
38
- File.open(ICMP_BCAST_PATH) { |f| f.puts "#{enabled ? 1 : 0}" }
38
+ File.open(ICMP_BCAST_PATH,'w') { |f| f.puts "#{enabled ? 1 : 0}" }
39
39
  end
40
40
 
41
41
  # If +enabled+ is true will enable send_redirects, otherwise it will
42
42
  # disable it.
43
43
  def enable_send_redirects(enabled)
44
- File.open(SEND_REDIRECTS_PATH) { |f| f.puts "#{enabled ? 1 : 0}" }
44
+ File.open(SEND_REDIRECTS_PATH,'w') { |f| f.puts "#{enabled ? 1 : 0}" }
45
45
  end
46
46
 
47
47
  # Apply the +r+ BetterCap::Firewalls::Redirection port redirection object.
@@ -11,7 +11,7 @@ This project is released under the GPL 3 license.
11
11
  =end
12
12
  module BetterCap
13
13
  # Current version of bettercap.
14
- VERSION = '1.3.1'
14
+ VERSION = '1.3.2'
15
15
  # Program banner.
16
16
  BANNER = File.read( File.dirname(__FILE__) + '/banner' ).gsub( '#VERSION#', "v#{VERSION}")
17
17
  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.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simone Margaritelli