From 35c9e7b4e2e938b6f604ecb14085c1bd158729cf Mon Sep 17 00:00:00 2001 From: H4xl0r <31049432+H4xl0r@users.noreply.github.com> Date: Mon, 8 Apr 2019 23:55:11 +0200 Subject: [PATCH 1/3] Update module.info --- EvilPortal/module.info | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EvilPortal/module.info b/EvilPortal/module.info index c23e282..98b3947 100644 --- a/EvilPortal/module.info +++ b/EvilPortal/module.info @@ -6,5 +6,5 @@ "tetra" ], "title": "Evil Portal", - "version": "3.1" -} \ No newline at end of file + "version": "3.2" +} From 980dead10c30ebf75e3893de390288a64cae37e9 Mon Sep 17 00:00:00 2001 From: H4xl0r <31049432+H4xl0r@users.noreply.github.com> Date: Mon, 8 Apr 2019 23:56:17 +0200 Subject: [PATCH 2/3] Update module.php --- EvilPortal/api/module.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/EvilPortal/api/module.php b/EvilPortal/api/module.php index 9fdadd5..fffbfe8 100644 --- a/EvilPortal/api/module.php +++ b/EvilPortal/api/module.php @@ -575,6 +575,8 @@ class EvilPortal extends Module exec("iptables -A INPUT -s 172.16.42.1 -j ACCEPT"); exec("iptables -A OUTPUT -s 172.16.42.1 -j ACCEPT"); + //Block https till login + exec("iptables -t nat -A PREROUTING -i br-lan -p tcp --dport 443 -j DNAT --to-destination 172.16.42.1:80"); //exec("iptables -A INPUT -i br-lan -p tcp --dport 443 -j DROP"); //exec("iptables -t nat -A PREROUTING -i br-lan -j DROP"); @@ -610,6 +612,7 @@ class EvilPortal extends Module } exec("iptables -t nat -D PREROUTING -i br-lan -p tcp --dport 80 -j DNAT --to-destination 172.16.42.1:80"); + exec("iptables -t nat -D PREROUTING -i br-lan -p tcp --dport 443 -j DNAT --to-destination 172.16.42.1:80"); //enable https again exec("iptables -D INPUT -p tcp --dport 53 -j ACCEPT"); exec("iptables -D INPUT -j DROP"); From 875aaf1729a06432891c96e3cb54d835670368d1 Mon Sep 17 00:00:00 2001 From: H4xl0r <31049432+H4xl0r@users.noreply.github.com> Date: Mon, 8 Apr 2019 23:57:43 +0200 Subject: [PATCH 3/3] Update index.php --- EvilPortal/includes/skeleton/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EvilPortal/includes/skeleton/index.php b/EvilPortal/includes/skeleton/index.php index 9b3846f..8f969c2 100644 --- a/EvilPortal/includes/skeleton/index.php +++ b/EvilPortal/includes/skeleton/index.php @@ -1,5 +1,5 @@