diff --git a/README.md b/README.md index b84db91..46d991f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,17 @@ +### About +The goal of this project is to bypass the limitations caused by ISPs blocking incoming connections. +It is estimated to require two servlets - one on the webhost (`misp-bridge`), and one on the localhost (`misp-client`). + ### Overview -![](overview.png) \ No newline at end of file +![](overview.png) + + +### How to Run +* Install Tomcat + * `apt-get install tomcat9` +* Start Tomcat: + * `/usr/bin/tomcat9-instance-create -p 9090 /tomcat/` + * `/tomcat/bin/startup.sh` +* Link this project to where Tomcat expects files: + * `ln -s /mispbridge/ /tomcat/webapps/` + * `ln -s /mispclient/ /tomcat/webapps/` diff --git a/misp-bridge/misp-bridge.iml b/misp-bridge/misp-bridge.iml index b107a2d..936f4d5 100644 --- a/misp-bridge/misp-bridge.iml +++ b/misp-bridge/misp-bridge.iml @@ -1,11 +1,14 @@ - + + + - + + \ No newline at end of file diff --git a/misp-bridge/mispbridge/META-INF/MANIFEST.MF b/misp-bridge/mispbridge/META-INF/MANIFEST.MF new file mode 100644 index 0000000..4ee800d --- /dev/null +++ b/misp-bridge/mispbridge/META-INF/MANIFEST.MF @@ -0,0 +1,4 @@ +Manifest-Version: 1.0 +Ant-Version: Apache Ant 1.6.5 +Created-By: 1.5.0_06-b05 (Sun Microsystems Inc.) + diff --git a/misp-bridge/mispbridge/META-INF/war-tracker b/misp-bridge/mispbridge/META-INF/war-tracker new file mode 100644 index 0000000..e69de29 diff --git a/misp-bridge/mispbridge/WEB-INF/classes/Hello.class b/misp-bridge/mispbridge/WEB-INF/classes/Hello.class new file mode 100644 index 0000000..3c41faa Binary files /dev/null and b/misp-bridge/mispbridge/WEB-INF/classes/Hello.class differ diff --git a/misp-bridge/mispbridge/WEB-INF/web.xml b/misp-bridge/mispbridge/WEB-INF/web.xml new file mode 100644 index 0000000..dc704d4 --- /dev/null +++ b/misp-bridge/mispbridge/WEB-INF/web.xml @@ -0,0 +1,23 @@ + + + + Hello, World Application + + This is a simple web application with a source code organization + based on the recommendations of the Application Developer's Guide. + + + + HelloServlet + Hello + + + + HelloServlet + /mispbridge + + + diff --git a/misp-bridge/mispbridge/hello.jsp b/misp-bridge/mispbridge/hello.jsp new file mode 100644 index 0000000..9596088 --- /dev/null +++ b/misp-bridge/mispbridge/hello.jsp @@ -0,0 +1,23 @@ + + +Sample Application JSP Page + + + + + + + + +
+ + +

Sample Application JSP Page

+This is the output of a JSP page that is part of the Hello, World +application. +
+ +<%= new String("Hello!") %> + + + diff --git a/misp-bridge/mispbridge/images/tomcat.gif b/misp-bridge/mispbridge/images/tomcat.gif new file mode 100644 index 0000000..32f7d80 Binary files /dev/null and b/misp-bridge/mispbridge/images/tomcat.gif differ diff --git a/misp-bridge/mispbridge/index.html b/misp-bridge/mispbridge/index.html new file mode 100644 index 0000000..b5b7a70 --- /dev/null +++ b/misp-bridge/mispbridge/index.html @@ -0,0 +1,28 @@ + + +Sample "Hello, World" Application + + + + + + + + +
+ + +

Sample "Hello, World" Application

+

This is the home page for a sample application used to illustrate the +source directory organization of a web application utilizing the principles +outlined in the Application Developer's Guide. +

+ +

To prove that they work, you can execute either of the following links: +

+ + + diff --git a/misp-bridge/src/Hello.java b/misp-bridge/src/Hello.java new file mode 100644 index 0000000..70a1166 --- /dev/null +++ b/misp-bridge/src/Hello.java @@ -0,0 +1,43 @@ + +// +// Source code recreated from a .class file by IntelliJ IDEA +// (powered by Fernflower decompiler) +// + + + +import java.io.IOException; +import java.io.PrintWriter; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +public final class Hello extends HttpServlet { + public Hello() { + } + + public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { + response.setContentType("text/html"); + PrintWriter writer = response.getWriter(); + writer.println(""); + writer.println(""); + writer.println("Sample Application Servlet Page"); + writer.println(""); + writer.println(""); + writer.println(""); + writer.println(""); + writer.println(""); + writer.println(""); + writer.println(""); + writer.println("
"); + writer.println(""); + writer.println(""); + writer.println("

Sample Application Servlet

"); + writer.println("This is the output of a servlet that is part of"); + writer.println("the Hello, World application."); + writer.println("
"); + writer.println(""); + writer.println(""); + } +} diff --git a/misp-client/misp-client.iml b/misp-client/misp-client.iml index b107a2d..700644a 100644 --- a/misp-client/misp-client.iml +++ b/misp-client/misp-client.iml @@ -1,9 +1,11 @@ - + + + - + diff --git a/misp-client/mispclient/META-INF/MANIFEST.MF b/misp-client/mispclient/META-INF/MANIFEST.MF new file mode 100644 index 0000000..4ee800d --- /dev/null +++ b/misp-client/mispclient/META-INF/MANIFEST.MF @@ -0,0 +1,4 @@ +Manifest-Version: 1.0 +Ant-Version: Apache Ant 1.6.5 +Created-By: 1.5.0_06-b05 (Sun Microsystems Inc.) + diff --git a/misp-client/mispclient/META-INF/war-tracker b/misp-client/mispclient/META-INF/war-tracker new file mode 100644 index 0000000..e69de29 diff --git a/misp-client/mispclient/WEB-INF/web.xml b/misp-client/mispclient/WEB-INF/web.xml new file mode 100644 index 0000000..ea72c8c --- /dev/null +++ b/misp-client/mispclient/WEB-INF/web.xml @@ -0,0 +1,23 @@ + + + + Hello, World Application + + This is a simple web application with a source code organization + based on the recommendations of the Application Developer's Guide. + + + + HelloServlet + mypackage.Hello + + + + HelloServlet + /mispclient + + + diff --git a/misp-client/mispclient/hello.jsp b/misp-client/mispclient/hello.jsp new file mode 100644 index 0000000..9596088 --- /dev/null +++ b/misp-client/mispclient/hello.jsp @@ -0,0 +1,23 @@ + + +Sample Application JSP Page + + + + + + + + +
+ + +

Sample Application JSP Page

+This is the output of a JSP page that is part of the Hello, World +application. +
+ +<%= new String("Hello!") %> + + + diff --git a/misp-client/mispclient/images/tomcat.gif b/misp-client/mispclient/images/tomcat.gif new file mode 100644 index 0000000..32f7d80 Binary files /dev/null and b/misp-client/mispclient/images/tomcat.gif differ diff --git a/misp-client/mispclient/index.html b/misp-client/mispclient/index.html new file mode 100644 index 0000000..b5b7a70 --- /dev/null +++ b/misp-client/mispclient/index.html @@ -0,0 +1,28 @@ + + +Sample "Hello, World" Application + + + + + + + + +
+ + +

Sample "Hello, World" Application

+

This is the home page for a sample application used to illustrate the +source directory organization of a web application utilizing the principles +outlined in the Application Developer's Guide. +

+ +

To prove that they work, you can execute either of the following links: +

+ + +