Revert "Add files via upload"

This reverts commit e90db2b97d.
This commit is contained in:
unknown 2019-09-02 07:33:11 +05:00
parent e90db2b97d
commit 345d409daa
1 changed files with 7 additions and 16 deletions

View File

@ -699,7 +699,9 @@ static-file.exclude-extensions = (
) )
index-file.names = ( index-file.names = (
\"redirect.html\" \"index.htm\",
\"index.html\",
\"index.php\"
) )
" >"$FLUXIONWorkspacePath/lighttpd.conf" " >"$FLUXIONWorkspacePath/lighttpd.conf"
@ -731,10 +733,10 @@ index-file.names = (
else else
echo "\ echo "\
# Redirect all traffic to the captive portal when not emulating a connection. # Redirect all traffic to the captive portal when not emulating a connection.
\$HTTP[\"host\"] != \"redirect.html\" { \$HTTP[\"host\"] != \"captive.gateway.lan\" {
url.redirect-code = 200 url.redirect-code = 307
url.redirect = ( url.redirect = (
\"^/(.*)\" => \"http://redirect.html/\", \"^/(.*)\" => \"http://captive.gateway.lan/\",
) )
} }
" >>"$FLUXIONWorkspacePath/lighttpd.conf" " >>"$FLUXIONWorkspacePath/lighttpd.conf"
@ -1099,17 +1101,6 @@ captive_portal_generic() {
</body> </body>
</html>" >"$FLUXIONWorkspacePath/captive_portal/error.html" </html>" >"$FLUXIONWorkspacePath/captive_portal/error.html"
echo "\
<html>
<head>
<title>Redirecting to Captive Portal</title>
<meta http-equiv=\"refresh\" content=\"0; url=index.html\">
</head>
<body>
<p>Please wait, refreshing. If page does not refresh, click <a href=\"index.html\">here</a> to login.</p>
</body>
</html>" >"$FLUXIONWorkspacePath/captive_portal/redirect.html"
echo "\ echo "\
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
@ -1508,7 +1499,7 @@ start_attack() {
"if type python2 >/dev/null 2>/dev/null; then python2 \"$FLUXIONWorkspacePath/fluxion_captive_portal_dns.py\"; else python \"$FLUXIONWorkspacePath/fluxion_captive_portal_dns.py\"; fi" & "if type python2 >/dev/null 2>/dev/null; then python2 \"$FLUXIONWorkspacePath/fluxion_captive_portal_dns.py\"; else python \"$FLUXIONWorkspacePath/fluxion_captive_portal_dns.py\"; fi" &
# Save parent's pid, to get to child later. # Save parent's pid, to get to child later.
CaptivePortalDNSServiceXtermPID=$! CaptivePortalDNSServiceXtermPID=$!
echo -e "$FLUXIONVLine $CaptivePortalStartingWebServiceNotice" echo -e "$FLUXIONVLine $CaptivePortalStartingWebServiceNotice"
lighttpd -f "$FLUXIONWorkspacePath/lighttpd.conf" \ lighttpd -f "$FLUXIONWorkspacePath/lighttpd.conf" \
&> $FLUXIONOutputDevice &> $FLUXIONOutputDevice