From 5317be0cd945a0ddcaaec9c0da4d3866073735fa Mon Sep 17 00:00:00 2001 From: Ivan Olexyn Date: Thu, 16 Apr 2020 13:43:59 +0200 Subject: [PATCH] + dummy servlet. --- README.md | 17 ++++++- misp-bridge/misp-bridge.iml | 7 ++- misp-bridge/mispbridge/META-INF/MANIFEST.MF | 4 ++ misp-bridge/mispbridge/META-INF/war-tracker | 0 .../mispbridge/WEB-INF/classes/Hello.class | Bin 0 -> 1464 bytes misp-bridge/mispbridge/WEB-INF/web.xml | 23 ++++++++++ misp-bridge/mispbridge/hello.jsp | 23 ++++++++++ misp-bridge/mispbridge/images/tomcat.gif | Bin 0 -> 1441 bytes misp-bridge/mispbridge/index.html | 28 ++++++++++++ misp-bridge/src/Hello.java | 43 ++++++++++++++++++ misp-client/misp-client.iml | 6 ++- misp-client/mispclient/META-INF/MANIFEST.MF | 4 ++ misp-client/mispclient/META-INF/war-tracker | 0 misp-client/mispclient/WEB-INF/web.xml | 23 ++++++++++ misp-client/mispclient/hello.jsp | 23 ++++++++++ misp-client/mispclient/images/tomcat.gif | Bin 0 -> 1441 bytes misp-client/mispclient/index.html | 28 ++++++++++++ 17 files changed, 224 insertions(+), 5 deletions(-) create mode 100644 misp-bridge/mispbridge/META-INF/MANIFEST.MF create mode 100644 misp-bridge/mispbridge/META-INF/war-tracker create mode 100644 misp-bridge/mispbridge/WEB-INF/classes/Hello.class create mode 100644 misp-bridge/mispbridge/WEB-INF/web.xml create mode 100644 misp-bridge/mispbridge/hello.jsp create mode 100644 misp-bridge/mispbridge/images/tomcat.gif create mode 100644 misp-bridge/mispbridge/index.html create mode 100644 misp-bridge/src/Hello.java create mode 100644 misp-client/mispclient/META-INF/MANIFEST.MF create mode 100644 misp-client/mispclient/META-INF/war-tracker create mode 100644 misp-client/mispclient/WEB-INF/web.xml create mode 100644 misp-client/mispclient/hello.jsp create mode 100644 misp-client/mispclient/images/tomcat.gif create mode 100644 misp-client/mispclient/index.html 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 0000000000000000000000000000000000000000..3c41faa9137a0f45789438110030ba63d2c68f38 GIT binary patch literal 1464 zcmah}TTc@~7(D}p9cl$B6fX!aAaW79;0=`pFUUP&+&lcA;&z2%dx<*$nl8dF~<{*ryNTh&nzrkSYc>){kpFf8Cu6D_83x2vMd<7 z3VvN|Hflu??Rv$4EZKrAdBL6+`TE>6rc~9B8LYyZ2m(3J&{meKLNRQQ7v6gBy+bD! z(fdFsr>a!wtP$)ahHde#A!0Rurdu4!dMxI3Z&s89F^ruVmSkt(kw`KyoZV8h7K!p9 z@|B1fa;A{uOJ^(c>uTSaiD!EGup~m|Q*RblEv%7gM>e98Sn;)5X(LEpYmmWZTw&-? z;!w*_3oNW>@EjW%6!1bnfHp2#*v#N1HjF`dWqOgkt9%uR#T~B}2Eu+4hJj!5bWyvh zqP^u+gzF@3B#`S=lh9tbD9a!1Vx=Sl87+LM5*^Bzb(MZSyC|cwh!%!thRK+6Rg^5c z=z#0jDs~)|7KZ&AWse;tYg9E~@ej0j8SPwD&6i}VfE*PcebDSKZ=LD}|>dFPY*x?N6vXfCuR+L~>$Gh&jPNx?99 z`WQ0wXb1hk>o1Sq^q;V%+$S7voSt|4XzDs+p_XJ_iMrbT7}99uk~wq&uU>I>6pdBI zOm{~`H0O)q;`qdW2Jfid6Z1$4gnBxII%aW^z7YD?0;UI#u%Ax1X=SvwO@0UaYOb#m zrpXQHMhaOB&@PiWVG!5o#9(8HJSYJhq%}phFH_l;A82jC)DNT>Hm9>~-_SmtwG48D z9R|||&l$`ZJa4emVAl!D1+(uqm_2dZWA?oUa|ZhekGp@3KI$k3PHPtt&k^;0B0WU3 z$7nZ=t3-SN4~WkrVzf+rHt6;hhOv(kyuo#pFbW?xASt4OaeTrAK4a3TF_|!KszKZ- gZp0|`g(62ukuJm(JBC(@1lq|mL9q-s=|mF!1urLP3jhEB literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..32f7d809fbf745e814598cae44329394515c4879 GIT binary patch literal 1441 zcmV;S1z!3`Nk%w1VPpVD0J8u9?d|O+B_HU@b7@o+r;}NBZdk3YtNkgMYcdmxvLDB z3k3wE&!9rlKuzGPY8;a- zBi9R*frQ3fG0HGx<2Ev@GR53BXC{m%G)VNLfCm<(3@d!93@{LZo_h$0rKE)ez={AR zgN!_u;fgt_k*ub?wkzoZv`}`Ys26raPFHm$%%BQT?K!Jd*G5{=2gTkKm85a{lvhHM zq%hB6VYfiyxgkqU9BLfq5RU* z2xlq)4&Xs{t#U;v$CFDj&NmWlD78X3I~6kLRd#bsr!75?4-CS74p59TK!KLf(JWu{ zs2v*S6ek^IHWKo4`3Crh2n(HYAT;)8-4N!?Qv zNbi9l1PcSqNrRkkR)i&s4h%q4MFf=5oO?=aIRu&^c=rJw0k{aKqKI;+K%I56kbr3( zT^9|EFF~oypO-Kx)_@a?poNQXGV3h=heLGfTx2gvE6D=$^|mAimqz*Qx6i`q0EiqZ zX{>b0T!2TWRdNdMyA7Df-B5uH!I}}iQP5DR3&J@iyZ|@QpsyT3VN?@)6_TL?|JvGb zsR2JbFnZ>Em8}t9itts#&O#Tl#4NP8&A=BMaR>)2aO~^~Du2x3z~t)k)w%Hy0Wb|N zf17BMQk3jS7A-St-iA4YT*F$sb-+w3wCY?#(cjA3oB($E+yrXkHtlSK1V9}%g5$L? z4jxm=8#ISec@1urM2z!T!(E(>UmR+KtH75H9xTQonZA6CVvE^3jNEGf8?Dt{4bgYM zB8}xx0fgr)FOFfvw|E2Nu^`I-E1+OfSsnpQ6FIyCXB@^}X!r0#Q?Ha1Tqt*iKKj-* zbZu`Hd;Pnc4;4Jdc?Pd1&`RjkM63YE4c>dh0Ym&NF1B{PqBjP@eV!ELIakRle2Onf z!}iJE#RJVc2-}0!;N}Fr2?j5C`v(gnatq2yDd;Sm3ncK%`!KwXpTQ?+TmTTKffX(5 zeh_;T4ald1=DBZMCtzJt5WE%0q#&l0rBXp38ywnN(Lc7mOyr?ig~*8{&%esThK=OkAph3=niSAp+oHso + +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 0000000000000000000000000000000000000000..32f7d809fbf745e814598cae44329394515c4879 GIT binary patch literal 1441 zcmV;S1z!3`Nk%w1VPpVD0J8u9?d|O+B_HU@b7@o+r;}NBZdk3YtNkgMYcdmxvLDB z3k3wE&!9rlKuzGPY8;a- zBi9R*frQ3fG0HGx<2Ev@GR53BXC{m%G)VNLfCm<(3@d!93@{LZo_h$0rKE)ez={AR zgN!_u;fgt_k*ub?wkzoZv`}`Ys26raPFHm$%%BQT?K!Jd*G5{=2gTkKm85a{lvhHM zq%hB6VYfiyxgkqU9BLfq5RU* z2xlq)4&Xs{t#U;v$CFDj&NmWlD78X3I~6kLRd#bsr!75?4-CS74p59TK!KLf(JWu{ zs2v*S6ek^IHWKo4`3Crh2n(HYAT;)8-4N!?Qv zNbi9l1PcSqNrRkkR)i&s4h%q4MFf=5oO?=aIRu&^c=rJw0k{aKqKI;+K%I56kbr3( zT^9|EFF~oypO-Kx)_@a?poNQXGV3h=heLGfTx2gvE6D=$^|mAimqz*Qx6i`q0EiqZ zX{>b0T!2TWRdNdMyA7Df-B5uH!I}}iQP5DR3&J@iyZ|@QpsyT3VN?@)6_TL?|JvGb zsR2JbFnZ>Em8}t9itts#&O#Tl#4NP8&A=BMaR>)2aO~^~Du2x3z~t)k)w%Hy0Wb|N zf17BMQk3jS7A-St-iA4YT*F$sb-+w3wCY?#(cjA3oB($E+yrXkHtlSK1V9}%g5$L? z4jxm=8#ISec@1urM2z!T!(E(>UmR+KtH75H9xTQonZA6CVvE^3jNEGf8?Dt{4bgYM zB8}xx0fgr)FOFfvw|E2Nu^`I-E1+OfSsnpQ6FIyCXB@^}X!r0#Q?Ha1Tqt*iKKj-* zbZu`Hd;Pnc4;4Jdc?Pd1&`RjkM63YE4c>dh0Ym&NF1B{PqBjP@eV!ELIakRle2Onf z!}iJE#RJVc2-}0!;N}Fr2?j5C`v(gnatq2yDd;Sm3ncK%`!KwXpTQ?+TmTTKffX(5 zeh_;T4ald1=DBZMCtzJt5WE%0q#&l0rBXp38ywnN(Lc7mOyr?ig~*8{&%esThK=OkAph3=niSAp+oHso + +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: +

+ + +