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 +4 -4
- data/lib/bettercap/firewalls/linux.rb +3 -3
- data/lib/bettercap/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d2a9962f1c08de2c9af91a1c8c2273374ac9693
|
4
|
+
data.tar.gz: 94787e76c7844106cc0004e810c1ce15ccbc6d91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/lib/bettercap/version.rb
CHANGED
@@ -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.
|
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
|