ShellFish is a simple webshell for GlassFish Server 4.0.
- Java JDK 8
- Servlet API https://download.oracle.com/glassfish/4.0/release/
-
Compile the Java Servlets:
- Use the Java compiler (
javac) to compile the servlets. - Ensure that the servlet API is included in the classpath.
- Example:
javac -classpath /path/to/javaee-api-7.0.jar -d WebContent/WEB-INF/classes src/com/webshell/WebShellServlet.java
- Use the Java compiler (
-
Package the Application:
- Package the application into a WAR file using the
jarcommand. - Example:
jar -cvf WebShell.war -C WebContent/ . - Package the application into a WAR file using the
- Start the GlassFish server.
- Open the GlassFish Admin Console (usually at http://localhost:4848).
- Navigate to the "Applications" section.
- Click "Deploy" and choose the generated WAR file.
- Follow the on-screen instructions to complete the deployment.
After deployment, the application can be accessed at: http://localhost:8080/WebShell (URL might vary depending on the server configuration and context root).
The webshell is based on https://github.com/tennc/webshell/blob/master/fuzzdb-webshell/jsp/cmdjsp.jsp