mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 18:30:35 +03:00
BeanShell support
This commit is contained in:
committed by
Felipe Zimmerle
parent
90856f42b6
commit
28e6ad8963
@@ -2214,7 +2214,6 @@ static apr_status_t msre_action_exec_execute(modsec_rec *msr, apr_pool_t *mptmp,
|
|||||||
const char *start = "java -classpath bsh*.jar bsh.Interpreter ";
|
const char *start = "java -classpath bsh*.jar bsh.Interpreter ";
|
||||||
|
|
||||||
char *command = (char*) apr_palloc(mptmp, strlen(start) + lenparam + 1);
|
char *command = (char*) apr_palloc(mptmp, strlen(start) + lenparam + 1);
|
||||||
msr_log(msr, 1, "beanshell ftw");
|
|
||||||
strcpy(command, start);
|
strcpy(command, start);
|
||||||
strcat(command, action->param);
|
strcat(command, action->param);
|
||||||
command[strlen(start) + lenparam] = '\0';
|
command[strlen(start) + lenparam] = '\0';
|
||||||
|
|||||||
Reference in New Issue
Block a user