defwaf(sql): blacklists = ["union select", "sleep", "benchmark","columns","load_file","local","outfile","dumpfile","file"] for blacklist in blacklists: if blacklist in sql: print(blacklist) returnFalse returnTrue
defwaf(sql): blacklists = ["union select", "sleep", "benchmark","columns","load_file","local","outfile","dumpfile","file","union","select", "select","and","*","x09","x0a","x0b","x0c","x0d","xa0","x00","x26","x7c","or","into","from","where","join","sleexml","extractvalue","+","regex","copy","read","file","create","grand","dir","insert","link","server","drop","=",">","<",";"] for blacklist in blacklists: if blacklist in sql: print(blacklist) returnFalse returnTrue