epinna / tplmap

Server-Side Template Injection and Code Injection Detection and Exploitation Tool
GNU General Public License v3.0
3.69k stars 666 forks source link

'bool' object has no attribute 'replace' #103

Open jedai47 opened 2 years ago

jedai47 commented 2 years ago

I have this issue when executing with -u argument

casmpy commented 2 years ago

got same error

davidcbbc commented 2 years ago

any update on this? got the same error

davidcbbc commented 2 years ago

It seems to be a problem with Twig plugin , this workaround worked for me: Remove the Twig entry from the plugins array at core/checks.py like this:

plugins = [
    Smarty,
    Mako,
    Python,
    Tornado,
    Jinja2,
    Freemarker,
    Velocity,
    Slim,
    Erb,
    Pug,
    Nunjucks,
    Dot,
    Dust,
    Marko,
    Javascript,
    Php,
    Ruby,
    Ejs
]
Sahabalam commented 2 years ago

thanks!! it works

BigW2016 commented 1 year ago

replace in core/plugin.py, 714 row:

from: return result.replace('\n', '\n')

to: if (result): result.replace('\n', '\n')

return result