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"