Skip to content

Commit e358288

Browse files
author
m-1-k-3
committed
OSVDB, Base64
1 parent 0f2a3fc commit e358288

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/auxiliary/admin/http/dlink_dsl320b_password_extractor.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def initialize
2323
[
2424
[ 'URL', 'http://www.dlink.com/de/de/home-solutions/connect/modems-and-gateways/dsl-320b-adsl-2-ethernet-modem' ],
2525
[ 'URL', 'http://www.s3cur1ty.de/m1adv2013-018' ],
26-
[ 'EDB', '25252' ]
26+
[ 'EDB', '25252' ],
27+
[ 'OSVDB', '93013' ]
2728
],
2829
'Author' => [
2930
'Michael Messner <[email protected]>',
@@ -66,7 +67,8 @@ def run
6667
if line =~ /\<sysPassword\ value\=\"(.*)\"\/\>/
6768
pass = $1
6869
vprint_good("#{rhost}:#{rport} - user: #{@user}")
69-
pass = Base64.decode64(pass)
70+
#pass = Base64.decode64(pass)
71+
pass = Rex::Text.decode_base64(pass)
7072
vprint_good("#{rhost}:#{rport} - pass: #{pass}")
7173

7274
report_auth_info(

0 commit comments

Comments
 (0)