| Server IP : 178.63.100.251 / Your IP : 216.73.216.228 Web Server : LiteSpeed System : Linux dobby.thevpsserver.com 4.18.0-553.16.1.lve.el8.x86_64 #1 SMP Tue Aug 13 17:45:03 UTC 2024 x86_64 User : truewayi ( 1855) PHP Version : 7.4.33 Disable Function : show_source,system,shell_exec,passthru,exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cpanel/ea-tomcat85/ |
Upload File : |
<html>
<head>
<title>Test JSP Page</title>
<style type="text/css">
dt {
float: left;
width: 30%;
text-align: right;
padding: .25em;
clear: left;
font-weight: bold;
}
dd {
float: left;
width: 60%;
padding: .25em 0;
}
dl:after {content:"";display:table;clear:both;} // will not work when there are mutli-dt per dd or multi-dd per dt
</style>
</head>
<body>
<h1>Test JSP Page</h1>
<p>This is a page to verify that .jsp support has been enabled</p>
<dl>
<dt>Date</dt><dd><%= new java.util.Date() %></dd>
<dt>Remote Address</dt><dd><%= request.getRemoteAddr() %></dd>
<dt>Request Method</dt><dd><%= request.getMethod() %></dd>
<dt>Servlet Path</dt><dd><%= request.getServletPath() %></dd>
<dt>Tomcat Version</dt><dd><%= application.getServerInfo() %></dd>
<dt>Servlet Specification Version</dt><dd><%= application.getMajorVersion() %>.<%= application.getMinorVersion() %></dd>
<dt>JSP Version</dt><dd><%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %></dd>
<dt>JAVA_HOME</dt><dd><%= System.getenv("JAVA_HOME") %></dd>
<dt>CATALINA_HOME</dt><dd><%= System.getenv("CATALINA_HOME") %></dd>
<dt>CATALINA_BASE</dt><dd><%= System.getenv("CATALINA_BASE") %></dd>
<dt>CATALINA_OPTS</dt><dd><%= System.getenv("CATALINA_OPTS") %></dd>
<dt>USER</dt><dd><%= System.getenv("USER") %></dd>
<dt>HOME</dt><dd><%= System.getenv("HOME") %></dd>
<dt>Output from `id`</dt><dd><%@ page import="java.util.*,java.io.*"%>
<%
Process p = Runtime.getRuntime().exec("id");
OutputStream outs = p.getOutputStream();
InputStream ins = p.getInputStream();
DataInputStream dis = new DataInputStream(ins);
String disrl = dis.readLine();
while ( disrl != null ) {
out.println(disrl);
disrl = dis.readLine();
}
%></dd>
</dl>
</body>
</html>