Skip to content

Commit c81a289

Browse files
committed
Fix a few bad tabs and some 1.9-only syntax
1 parent 6d0d269 commit c81a289

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

lib/msf/core/auxiliary/web.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def process_vulnerability( element, proof, opts = {} )
246246

247247
confidence = calculate_confidence( parent.vulns[mode][vhash] )
248248

249-
parent.vulns[mode][vhash].merge!( confidence: confidence )
249+
parent.vulns[mode][vhash].merge!( :confidence => confidence )
250250

251251
if !(payload = opts[:payload])
252252
if payloads

lib/msf/core/auxiliary/web/analysis/differential.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Analysis::Differential
1212

1313
DIFFERENTIAL_OPTIONS = {
1414
# amount of refinement iterations
15-
precision: 2
15+
:precision => 2
1616
}
1717

1818
#
@@ -49,13 +49,13 @@ def differential_analysis( opts = {}, &block )
4949

5050
responses = {
5151
# will hold the original, default, response that results from submitting
52-
orig: nil,
52+
:orig => nil,
5353

5454
# will hold responses of boolean injections
55-
good: {},
55+
:good => {},
5656

5757
# will hold responses of fault injections
58-
bad: {}
58+
:bad => {}
5959
}
6060

6161
# submit the element, as is, opts[:precision] amount of times and

lib/msf/core/auxiliary/web/analysis/timing.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ module Analysis::Timing
1212

1313
TIMING_OPTIONS = {
1414
# stub to be replaced by delay * multi
15-
stub: '__TIME__',
15+
:stub => '__TIME__',
1616

1717
# stub = delay * multi
18-
multi: 1,
18+
:multi => 1,
1919

2020
# delay in seconds to attempt to introduce
21-
delay: 5
21+
:delay => 5
2222
}
2323

2424
#

lib/msf/core/auxiliary/web/fuzzable.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def submit_async( opts = {}, &callback )
5858
callback.call resp if callback
5959
end
6060

61-
nil
61+
nil
6262
end
6363

6464
def http
@@ -83,15 +83,15 @@ def dup
8383

8484
private
8585
def fuzz_wrapper( cfuzzer = nil, &block )
86-
self.fuzzer ||= cfuzzer
87-
permutations.each do |p|
86+
self.fuzzer ||= cfuzzer
87+
permutations.each do |p|
8888
block.call p
8989
end
9090
end
9191

9292
def handle_response( resp )
93-
str = " #{fuzzer.shortname}: #{resp.code} - #{method.to_s.upcase}" +
94-
" #{action} #{params}"
93+
str = " #{fuzzer.shortname}: #{resp.code} - #{method.to_s.upcase}" +
94+
" #{action} #{params}"
9595

9696
case resp.code.to_i
9797
when 200,404,301,302,303

lib/msf/core/auxiliary/web/http.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ def connect
108108
'SSLv23'
109109
)
110110

111-
c.set_config(
111+
c.set_config({
112112
'vhost' => opts[:target].vhost,
113113
'agent' => opts[:user_agent] || 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)',
114-
)
114+
})
115115
c
116116
end
117117

0 commit comments

Comments
 (0)