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

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

The newest version!
package com.cybermkd.icewall.attack;

import org.apache.commons.lang.StringEscapeUtils;

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy