stefanlucas/Exploit-Joomla

TypeError: can only concatenate str (not "bytes") to str

Closed this issue · 1 comments

Traceback (most recent call last):
  File "joomblah.py", line 186, in <module>
    sys.exit(main("http://10.10.72.160/joomla"))
  File "joomblah.py", line 183, in main
    pwn_joomla_again(options)
  File "joomblah.py", line 147, in pwn_joomla_again
    tables = extract_joomla_tables(options, sess, token)
  File "joomblah.py", line 74, in extract_joomla_tables
    result = joomla_370_sqli_extract(options, sess, token, "TABLE_NAME", "FROM information_schema.tables WHERE TABLE_NAME LIKE 0x257573657273 LIMIT " + str(offset) + ",1" )
  File "joomblah.py", line 46, in joomla_370_sqli_extract
    result += value
TypeError: can only concatenate str (not "bytes") to str

There's a bug on line 46 where the result can not be added with value

I managed to fix it by changing line 46 to this:

value = binascii.unhexlify(value).decode("utf-8")