All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cybermkd.waf.attack.SqlInjection Maven / Gradle / Ivy

package com.cybermkd.waf.attack;

/**
 * SQL注入攻击
 */
public class SqlInjection implements Istrip {

    /**
     * @param value 待处理内容
     * @return
     * @Description SQL注入内容剥离
     */
    public String strip(String value) {

        //剥离SQL注入部分代码
        return value.replaceAll("('.+--)|(--)|(\\|)|(%7C)", "");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy