JSP PIN Code
<%@ page contenttype= "text/html; charset=gb2312 "%>
<% @page import= "java.util.*"%>
<% @page import= "Java.awt.image.BufferedImage"%>
<% @page import= "java.awt.*"%>
<% @page import= "java.io.*"%>
<%
/*
Program Author: Couvol
Contact qq:263645928
*/
Long starttime = System.currenttimemillis ();
Long Startmem = Runtime.getruntime (). Freememory ();
%>
<%!
public class Libinfo {
Boolean Supportjndi = false;
Boolean supportjavaxsql = false;
Boolean SUPPORTJAF = false;
Boolean supportmail = false;
Boolean supportbeanutils = false;
Boolean supportcommonlogging = false;
Boolean supportcommoncodec = false;
Boolean supportcommoncollection = false;
Boolean supportcommondigester = false;
Boolean Supportcommonlang = false;
Boolean supportjakartaregexp = false;
Boolean supportlucene = false;
Boolean supportdom4j = false;
Boolean supportmmmysqldriver = false;
Boolean supportcommysqldriver = false;
Boolean supportimageprocessing = false;
Public Libinfo () {
try {
Class.forName ("Javax.naming.Name");
Supportjndi = true;
catch (ClassNotFoundException ex) {}
try {
Class.forName ("Javax.sql.DataSource");
Supportjavaxsql = true;
catch (ClassNotFoundException ex) {}
try {
Class.forName ("Javax.activation.DataSource");
Supportjaf = true;
catch (ClassNotFoundException ex) {}
try {
Class.forName ("Javax.mail.Message");
Supportmail = true;
catch (ClassNotFoundException ex) {}
try {
Class.forName ("Org.apache.commons.beanutils.MethodUtils");
Supportbeanutils = true;
catch (ClassNotFoundException ex) {}
try {
Class.forName ("Org.apache.commons.logging.LogFactory");
Supportcommonlogging = true;
catch (ClassNotFoundException ex) {}
try {
Class.forName ("Org.apache.commons.codec.Decoder");
Supportcommoncodec = true;
catch (ClassNotFoundException ex) {}
try {
Class.forName ("Org.apache.commons.collections.ArrayStack");
Supportcommoncollection = true;
catch (ClassNotFoundException ex) {}
try {
Class.forName ("Org.apache.commons.digester.Digester");
Supportcommondigester = true;
catch (ClassNotFoundException ex) {}
try {
Class.forName ("Org.apache.commons.lang.SystemUtils");
Supportcommonlang = true;
catch (ClassNotFoundException ex) {}
try {
Class.forName ("Org.apache.regexp.RE");
Supportjakartaregexp = true;
catch (ClassNotFoundException ex) {}
try {
Class.forName ("Org.apache.lucene.index.IndexWriter");
Supportlucene = true;
catch (ClassNotFoundException ex) {}
try {
Class.forName ("Org.dom4j.Document");
SUPPORTDOM4J = true;
catch (ClassNotFoundException ex) {}
try {
Class.forName ("Org.gjt.mm.mysql.Driver");
Supportmmmysqldriver = true;
catch (ClassNotFoundException ex) {}
try {
Class.forName ("Com.mysql.jdbc.Driver");
Supportcommysqldriver = true;
catch (ClassNotFoundException ex) {}
try {
BufferedImage bufferedimage = new BufferedImage (ten, Bufferedimage.type_int_rgb);
Graphics2D g = bufferedimage.creategraphics ();
G.drawline (0, 0, 10, 10);
G.dispose ()/free resource
Supportimageprocessing = true;
catch (Throwable ex) {}
}
public Boolean Issupportjaf () {
return SUPPORTJAF;
}
public Boolean issupportjavaxsql () {
return supportjavaxsql;
}
public Boolean Issupportjndi () {
return Supportjndi;
}
public Boolean issupportmail () {
return supportmail;
}
public Boolean issupportbeanutils () {
return supportbeanutils;
}
public Boolean issupportcommonlogging () {
return supportcommonlogging;
}
public Boolean Issupportcommoncodec () {
return supportcommoncodec;
}
public Boolean issupportcommoncollection () {
return supportcommoncollection;
}
public Boolean issupportcommondigester () {
return supportcommondigester;
}
public Boolean Issupportcommonlang () {
return Supportcommonlang;
}
public Boolean issupportjakartaregexp () {
return supportjakartaregexp;
}
public Boolean issupportlucene () {
return supportlucene;
}
public Boolean issupportdom4j () {
return supportdom4j;
}
public Boolean issupportmmmysqldriver () {
return supportmmmysqldriver;
}
public Boolean issupportcommysqldriver () {
return supportcommysqldriver;
}
public Boolean issupportimageprocessing () {
return supportimageprocessing;
}
}
%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
<title> Amoy JSP Probes </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<style type= "Text/css" >
<!--
. style1 {color: #FFFFFF; font-size:14px; font-weight:bold;}
. line20{line-height:20px;}
. table-header-text {color: #FFFFFF;
Font-weight:normal;
margin:3px 5px 1px 15px;
Font-family:arial, Verdana,helvetica, Sans-serif;
}
Td{white-space:normal; word-break:break-all;}
-->
</style>
<body>
<table width= "100%" height= "border=" 0 "cellpadding=" 0 "cellspacing=" 0 "bgcolor=" #7171A5 ">
<tr>
<td><div align= "center" ><span class= "Style1" > Amoy jsp probes </span></div></td>
</tr>
</table>
<h3>request variables:</h3>
<table width= "100%" border= "0" cellpadding= "0" cellspacing= "1" bgcolor= "#DEE3ED" class= "Line20" >
<tr>
<TD width= "50%" height= "bgcolor=" #9999CC "><span class=" Table-header-text ">property </span> </td>
<TD width= "50%" height= "bgcolor=" "#9999CC" ><span class= "Table-header-text" >value</span></ Td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getAuthType</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getauthtype ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getCharacterEncoding</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getcharacterencoding ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getContentLength</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getcontentlength ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getContentType</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getcontenttype ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getContextPath</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getcontextpath ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getLocale</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getlocale ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getLocales</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getlocales ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getMethod</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getmethod ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getPathInfo</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getpathinfo ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getPathTranslated</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getpathtranslated ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getProtocol</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getprotocol ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getReader</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getreader ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getRealPath</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getrealpath (".") %></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getRemoteAddr</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getremoteaddr ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getRemoteHost</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getremotehost ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getRemoteUser</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getremoteuser ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getRequestDispatcher</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getrequestdispatcher ("/")%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getRequestURI</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getrequesturi ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getRequestURL</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getrequesturl ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getServerName</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getservername ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getServerPort</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getserverport ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getServletPath</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getservletpath ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;getUserPrincipal</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=request.getuserprincipal ()%></td>
</tr>
</table>
<h3>session variables:</h3>
<table width= "100%" border= "0" cellpadding= "0" cellspacing= "1" bgcolor= "#DEE3ED" class= "Line20" >
<tr>
<TD width= "50%" height= "bgcolor=" #9999CC "><span class=" Table-header-text ">property </span> </td>
<TD width= "50%" height= "bgcolor=" "#9999CC" ><span class= "Table-header-text" >value</span></ Td>
</tr>
<%
Enumeration E = Session.getattributenames ();
while (E.hasmoreelements ()) {
String name = (string) e.nextelement ();
String value = (string) session.getattribute (name);
%>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=name%></td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=value%></td>
</tr>
<%
}
%>
</table>
<h3>application variables:</h3>
<table width= "100%" border= "0" cellpadding= "0" cellspacing= "1" bgcolor= "#DEE3ED" class= "Line20" >
<tr>
<TD width= "50%" height= "bgcolor=" #9999CC "><span class=" Table-header-text ">property </span> </td>
<TD width= "50%" height= "bgcolor=" "#9999CC" ><span class= "Table-header-text" >value</span></ Td>
</tr>
<%
E = Application.getattributenames ();
while (E.hasmoreelements ()) {
String name = (string) e.nextelement ();
%>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=name%></td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=application.getattribute (name)%></td>
</tr>
<%
}
%>
</table>
<h3>cookies variables:</h3>
<table width= "100%" border= "0" cellpadding= "0" cellspacing= "1" bgcolor= "#DEE3ED" class= "Line20" >
<tr>
<TD width= "50%" height= "bgcolor=" #9999CC "><span class=" Table-header-text ">property </span> </td>
<TD width= "50%" height= "bgcolor=" "#9999CC" ><span class= "Table-header-text" >value</span></ Td>
</tr>
<%
Cookie[] Cos=request.getcookies ();
if (cos!=null) {
for (int i=0;i<cos.length;i++)
{
%>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=cos[i].getname ()%></td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=cos[i].getvalue ()%></td>
</tr>
<%
}
}
%>
</table>
<h3>server variables:</h3>
<table width= "100%" border= "0" cellpadding= "0" cellspacing= "1" bgcolor= "#DEE3ED" class= "Line20" >
<tr>
<TD width= "50%" height= "bgcolor=" #9999CC "><span class=" Table-header-text ">property </span> </td>
<TD width= "50%" height= "bgcolor=" "#9999CC" ><span class= "Table-header-text" >value</span></ Td>
</tr>
<%
Properties props=system.getproperties ();
Iterator Iter=props.keyset (). iterator ();
while (Iter.hasnext ())
{
String key= (String) iter.next ();
%>
<tr>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=key%></td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=props.get (key)%></td>
</tr>
<%
}
%>
</table>
<h3>lib info</h3>
<%
Libinfo lib=new libinfo ();
%>
<table width= "100%" border= "0" cellpadding= "0" cellspacing= "1" bgcolor= "#DEE3ED" >
<tr>
<TD height= "bgcolor=" "#9999CC" ><span class= "Table-header-text" >property </span></td>
<TD bgcolor= "#9999CC" ><span class= "Table-header-text" >Value</span></td>
</tr>
<tr>
<TD width= "476" bgcolor= "#FFFFFF" >supportJNDI</td>
<TD width= "484" bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportjndi ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportJavaxSql</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportjavaxsql ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportJAF</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportjaf ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportMail</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportmail ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportBeanUtils</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportbeanutils ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportCommonLogging</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportcommonlogging ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportCommonCodec</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportcommoncodec ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportCommonCollection</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportcommoncollection ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportCommonDigester</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportcommondigester ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportCommonLang</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportcommonlang ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportJakartaRegExp</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportjakartaregexp ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportLucene</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportlucene ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportDom4j</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportdom4j ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportMmMysqlDriver</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportmmmysqldriver ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportComMysqlDriver</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportcommysqldriver ()%></td>
</tr>
<tr>
<TD bgcolor= "#FFFFFF" >supportImageProcessing</td>
<TD bgcolor= "#FFFFFF" >&nbsp;<%=lib.issupportimageprocessing ()%></td>
</tr>
</table>
<p><br>
</p>
</body>
</html>
<%
Long Endmem = Runtime.getruntime (). Freememory ();
Long total= runtime.getruntime (). MaxMemory ();
Out.println ("Total Memory:" +total);
Out.println ("Start Memory:" +startmem);
Out.println ("End Memory:" +endmem);
OUT.PRINTLN ("Use Memory:" + (STARTMEM-ENDMEM));
Long endtime = System.currenttimemillis ();
OUT.PRINTLN ("Use Time:" + (Endtime-starttime));
%>