Computer Science Canada

Creating a login page [HTML] {NEED HELP}

Author:  pozaj0206 [ Sun Mar 04, 2012 8:34 pm ]
Post subject:  Creating a login page [HTML] {NEED HELP}

ok so far I have this as my html doc (its from some random vbulitin forum I just edited out all un-needed crap) and I want it to log the ip, userame and password used and have it redirect back to the login screen (it doesn't need to authenticate with any account). NO I AM NOT USING THIS FOR A PHISHING WEBPAGE IT WILL BE USED FOR TESTING MY PASSWORD CRACKER

Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en" id="vbulletin_html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta id="e_vb_meta_bburl" name="vb_meta_bburl" content="http://doest matter" />
<base /><!--[if IE]></base><![endif]-->

<div class="standard_error">
<h2 class="blockhead">Login Screen</h2>

<form class="block vbform" method="post" action="login.php?do=login" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" value="" />
<input type="hidden" name="vb_login_md5password_utf" value="" />
<input type="hidden" name="s" value="" />
<input type="hidden" name="securitytoken" value="guest" />

<input type="hidden" name="url" value="/attachment.php?attachmentid=1&amp;d=1327965889" />

<div class="blockbody formcontrols">

<h3 class="blocksubhead">You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:</h3>
<div class="blockrow restore">
<ol>
<li>You are not logged in. Fill in the form at the bottom of this page and try again.</li>
<li>You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?</li>
<li>If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.</li>
</ol>
</div>

<h3 class="blocksubhead">Log in</h3>
<div class="blockrow">
<label for="vb_login_username">User Name:</label>
<input type="text" class="primary textbox" id="vb_login_username" name="vb_login_username" accesskey="u" tabindex="1" />
</div>
<div class="blockrow">
<label for="vb_login_password">Password:</label>
<input type="password" class="primary textbox" id="vb_login_password" name="vb_login_password" tabindex="1" />
</div>

</div>
<div class="blockfoot actionbuttons">
<div class="group">
<input type="submit" class="button" value="Log in" accesskey="s" tabindex="1" />
</div>
</div>

</form>

</div>

</div>
</body>
</html>

Author:  Sur_real [ Sun Mar 04, 2012 9:59 pm ]
Post subject:  Re: Creating a login page [HTML] {NEED HELP}

If you're gonna log any information you need server side scripting like PHP.

This should get you the ip address in PHP,
php:
$_SERVER['REMOTE_ADDR'];


Also, the form appears to be use POST so to get the username and password,
php:

$username = $_POST['vb_login_username'];
$password = $_POST['vb_login_password'];


: