File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/exploits/multi/http Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -309,11 +309,11 @@ def get_version(res)
309
309
#Set version. Some GlassFish servers return banner "GlassFish v3".
310
310
if banner =~ /(GlassFish Server|Open Source Edition) (\d \. \d )/
311
311
version = $2
312
- elsif banner =~ /GlassFish v(\d )/ and version . nil?
312
+ elsif banner =~ /GlassFish v(\d )/ and version == 'Unknown'
313
313
version = $1
314
- elsif banner =~ /Sun GlassFish Enterprise Server v2/ and version . nil?
314
+ elsif banner =~ /Sun GlassFish Enterprise Server v2/ and version == 'Unknown'
315
315
version = '2.x'
316
- elsif banner =~ /Sun Java System Application Server 9/ and version . nil?
316
+ elsif banner =~ /Sun Java System Application Server 9/ and version == 'Unknown'
317
317
version = '9.x'
318
318
end
319
319
You can’t perform that action at this time.
0 commit comments