From 3008ed98e33b08ed6008b579d1052cb756aa13fd Mon Sep 17 00:00:00 2001 From: Julien Dubreuil Date: Tue, 7 Mar 2017 00:34:35 +0100 Subject: [PATCH 1/2] Indenteded a command to make it appears as code and node text --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 07a7ff7..9d549c4 100644 --- a/readme.md +++ b/readme.md @@ -9,7 +9,7 @@ In order to use Phantalyzer, you must install PhantomJS. It is also important t At the core of the system is a js file called phantalyzer.js. This file is a PhantomJS script that will open a headless Webkit browser, navigate to the site, and essentially write everything it sees to standard output. This output also includes output from the Wappalyzer scripts. You can run this by doing the following. -phantomjs phantalyzer.js http://www.cnn.com + phantomjs phantalyzer.js http://www.cnn.com All of the output HTML from CNN would be piped to standard out as well as headers, resources requested, and last but not least, the apps detected by the Wawppalyzer. Here is an example of the information written out from Wappalyzer. From d31ebd2add7be4c1bb0895e828df7a790f1a218d Mon Sep 17 00:00:00 2001 From: julien Date: Wed, 15 Mar 2017 14:55:23 +0100 Subject: [PATCH 2/2] Dockerized the webserver --- .dockerignore | 1 + Dockerfile | 17 +++++++++++++++++ readme.md | 18 ++++++++++++++---- 3 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c8f50f7 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +npm-debug.log diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5522a2b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM node:boron + +# Create app directory +RUN mkdir -p /usr/src/app + +# Install app dependencies +COPY package.json /usr/src/app/ +RUN npm install + +# Bundle app source +COPY . /usr/src/app + +EXPOSE 3000 + +WORKDIR /usr/src/app + +CMD [ "npm", "start" ] diff --git a/readme.md b/readme.md index 9d549c4..429553c 100644 --- a/readme.md +++ b/readme.md @@ -9,7 +9,7 @@ In order to use Phantalyzer, you must install PhantomJS. It is also important t At the core of the system is a js file called phantalyzer.js. This file is a PhantomJS script that will open a headless Webkit browser, navigate to the site, and essentially write everything it sees to standard output. This output also includes output from the Wappalyzer scripts. You can run this by doing the following. - phantomjs phantalyzer.js http://www.cnn.com +phantomjs phantalyzer.js http://www.cnn.com All of the output HTML from CNN would be piped to standard out as well as headers, resources requested, and last but not least, the apps detected by the Wawppalyzer. Here is an example of the information written out from Wappalyzer. @@ -130,6 +130,19 @@ And the result would look like this... Keep in mind that server.js is a starting point for you to write your own server. I would also recommend using something like Express.js instead of connect.js. I like connect because it is so lightweight and I just wanted to do something simple. +### Docker + +Build the application like this: + +``` +docker build -t mlconnor/phantalyzer . +``` + +Run a container this way: + +``` +docker run -it -p 3000:3000 --name my-phantalyzer mlconnor/phantalyzer +``` ### The following is a list of apps the Wappalyzer detects ### ``` @@ -477,6 +490,3 @@ Zinnia ### Task List ### - [ ] Add instructions on how to run this on the server. - - -