Skip to content

Choose a tag to compare

@weaweawe01 weaweawe01 released this 10 May 08:54
· 2 commits to main since this release

add xss engin

Examples

package.path = "./src/?.lua;" .. package.path

local xss_engine = require("xss_engine")


local text =[[
<img src=x onerror=alert(1)>
]]

if xss_engine.is_xss(text) then
    print("this is info xss")
else
    print("this is info not xss")
end

[root@localhost lua-htmlparser]# luajit test2.lua 
this is info xss