Skip to content

dejisec/ShellFish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

ShellFish

Overview

ShellFish is a simple webshell for GlassFish Server 4.0.

Prerequisites

Compilation

  1. 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
  2. Package the Application:

    • Package the application into a WAR file using the jar command.
    • Example:
    jar -cvf WebShell.war -C WebContent/ .

Deployment on GlassFish

  1. Start the GlassFish server.
  2. Open the GlassFish Admin Console (usually at http://localhost:4848).
  3. Navigate to the "Applications" section.
  4. Click "Deploy" and choose the generated WAR file.
  5. Follow the on-screen instructions to complete the deployment.

Accessing the Application

After deployment, the application can be accessed at: http://localhost:8080/WebShell (URL might vary depending on the server configuration and context root).

Credit

The webshell is based on https://github.com/tennc/webshell/blob/master/fuzzdb-webshell/jsp/cmdjsp.jsp

About

Webshell for GlassFish

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages