From 39129eaa6a3a648cb16c3d498082f92a35b309f1 Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Sun, 3 Dec 2017 21:55:54 -0600 Subject: [PATCH] Disabled portal's SSL & added connectivity check domain. --- attacks/Captive Portal/attack.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/attacks/Captive Portal/attack.sh b/attacks/Captive Portal/attack.sh index 4e794ad..204b629 100755 --- a/attacks/Captive Portal/attack.sh +++ b/attacks/Captive Portal/attack.sh @@ -404,10 +404,10 @@ index-file.names = ( \"index.php\" ) -\$SERVER[\"socket\"] == \":443\" { - ssl.engine = \"enable\" - ssl.pemfile = \"$FLUXIONWorkspacePath/server.pem\" -} +#\$SERVER[\"socket\"] == \":443\" { +# ssl.engine = \"enable\" +# ssl.pemfile = \"$FLUXIONWorkspacePath/server.pem\" +#} # Redirect www.domain.com to domain.com #\$HTTP[\"host\"] =~ \"^www\.(.*)$\" { @@ -440,6 +440,11 @@ index-file.names = ( server.document-root = \"$FLUXIONWorkspacePath/captive_portal/connectivity_responses/Google/\" url.rewrite-once = ( \"^/generate_204\$\" => \"generate_204.php\" ) } + +\$HTTP[\"host\"] == \"android.clients.google.com\" { # Respond with Google's alternative captive response. + server.document-root = \"$FLUXIONWorkspacePath/captive_portal/connectivity_responses/Google/\" + url.rewrite-once = ( \"^/generate_204\$\" => \"generate_204.php\" ) +} " > "$FLUXIONWorkspacePath/lighttpd.conf"