Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > Anti-Cheat Software & Programming > Web and Scripting > PHP

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
You are Unregistered, please register to gain Full access.    
Closed Thread
 
Thread Tools

Green-Secure-Register+Log in (GSRL) v0.1
Old 09-01-2010, 06:42 PM   #1
n00bie

-Dimensions-'s Avatar

Join Date: Aug 2010
Posts: 16
Reputation: 10
Rep Power: 19
-Dimensions- has made posts that are generally average in quality
Green-Secure-Register+Log in (GSRL) v0.1

Green-Secure-Register+Log in v0.1 (1st RELEASE)

Everything like this, and this, and this, are important.

Instructions:
Create a MySQL Database with a Account and Password.
In PHPMyAdmin type in this SQL Code:
Code:
CREATE TABLE `members` (
   
   `fname` varchar(25) NOT NULL default '',
   `lname` varchar(25) NOT NULL default '',
   `login` varchar(25) NOT NULL default '',
   `password` varchar(32) NOT NULL default '',
   `email` varchar(25) NOT NULL default '',
 
   PRIMARY KEY  (`login`)
 )

Extract
the folder in the ZIP file given, to your Desktop.
( PASSWORD IS: "~9{/h(wgEf" without quotes )
Right-Click config.new~ and Select Rename.
Change config.new~ to config.php.
Now Right-Click config.php and Select Edit.
Replace localhost with your host. Keep the ' and '.
Replace account with your MySQL User.
Replace pword with your MySQL User's Password.
Replace dbase with your MySQL Database Name.
Now Upload the folder to your Public Directory (/home/____/public_html/GSRL/) or (/public_html/GSRL)

Now no longer change the config.php.

The files, and what they are:
access-denied.php - The page that users who don't have Authentication are linked to.
auth.php - The Page that Checks if the user is Authenticated.
config.php - The configuration of the Database.
login-exec.php - The script for the login-form.php. Checks Authentication and sets up user session.
login-failed.php - The page when a user tries to log in with false details, they are linked to.
login-form.php - The page where a user logs in.
logout.php - The page & script when a user logs out.
member-index.php - The page where users are linked to when they log in. (Authentication Required).
member-profile.php - Currently nothing.
register-exec.php - The script for the register-form.php. Sends registration info to MySQL Database.
register-form.php - The page where a guest registers.
register-success.php - The page where once users are registered, they are linked to.

Files you can edit:
access-denied.php
login-failed.php
login-form.php
logout.php
member-index.php
member-profile.php
register-form.php
register-success.php

We recommend you don't change any other files.

SQL Injection Prevention is INCLUDED.

Credits:
-Dimensions-
Help from Google.

Thanks Kosaki for finding the SQL Code Error.

Press Thanks if you used.

Please let me know of bugs and errors. (NEVER TESTED)

I'm still setting up a demo.

Things to look forward to:
Better Design
Member Profile page (Edit your profile)
Some Javascripts
Maybe a website for QSRL?
Manage Members page
Forgot Password page
Private Message System
Text Message System
Image Verification
Make it use a salt and more secure hash
and more!

Please don't hate, its my first release, and this is my 2nd year of PHP Coding and 3rd oh HTML and CSS.

Last edited by -Dimensions-; 09-01-2010 at 07:31 PM.
-Dimensions- is offline



Old 09-01-2010, 06:59 PM   #2
Senior Member

Kosaki's Avatar

Join Date: Aug 2009
Posts: 89
Reputation: 2974
Rep Power: 60
Kosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating community
Disc Dash Champion
Points: 3,422, Level: 5
Points: 3,422, Level: 5 Points: 3,422, Level: 5 Points: 3,422, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
Saw your post about this in the other topic.

This has not yet been approved but I do wonder about a rather simple thing.
The mysql table says the passwords has a max length of 25 characters.

How is the passwords stored in the database? Most of the hashes I have been using is bigger than 25 characters. (md5 is 32, sha256 is 64)
Kosaki is offline


Old 09-01-2010, 07:14 PM   #3
n00bie

-Dimensions-'s Avatar

Threadstarter
Join Date: Aug 2010
Posts: 16
Reputation: 10
Rep Power: 19
-Dimensions- has made posts that are generally average in quality
Its stored as MD5 Hash.

Code:
".md5($_POST['password'])."
Also comes with a Repeat Password feature:

Code:
    if( strcmp($password, $cpassword) != 0 ) {
        $errmsg_arr[] = 'Passwords do not match';
        $errflag = true;
    }
Also same with Email:

Code:
    if( strcmp($email, $cemail) != 0 ) {
        $errmsg_arr[] = 'Emails do not match';
        $errflag = true;
    }

Last edited by -Dimensions-; 09-01-2010 at 07:31 PM.
-Dimensions- is offline


Old 09-01-2010, 07:22 PM   #4
Senior Member

Kosaki's Avatar

Join Date: Aug 2009
Posts: 89
Reputation: 2974
Rep Power: 60
Kosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating communityKosaki is a legend in the cheating community
Disc Dash Champion
Points: 3,422, Level: 5
Points: 3,422, Level: 5 Points: 3,422, Level: 5 Points: 3,422, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
Well you can't put a string with the length 32 in varchar(25) if the sql server is running in strict mode. And it will also produce warnings if you do so when in not strict mode.

Simplest would be to change from varchar(25) to varchar(32).

Good work tho.

PS: Making it use a salt and another more secure hash would make the applications much more secure
Kosaki is offline


Old 09-01-2010, 07:29 PM   #5
n00bie

-Dimensions-'s Avatar

Threadstarter
Join Date: Aug 2010
Posts: 16
Reputation: 10
Rep Power: 19
-Dimensions- has made posts that are generally average in quality
Quote:
Originally Posted by Kosaki View Post
Well you can't put a string with the length 32 in varchar(25) if the sql server is running in strict mode. And it will also produce warnings if you do so when in not strict mode.

Simplest would be to change from varchar(25) to varchar(32).

Good work tho.

PS: Making it use a salt and another more secure hash would make the applications much more secure
If your up to it, you can help.

Thanks for the error you caught.

This might have a chance of making it to the top. I might set up a website and forum for it. Maybe in the future start selling it.

Go ahead and PM me if you want to help.
-Dimensions- is offline


Old 09-01-2010, 11:10 PM   #6
It's Ram Hot

Quicktime's Avatar

Join Date: May 2007
Location: England
Posts: 1,125
Reputation: 18500
Rep Power: 265
Quicktime Will always be a legend at UCQuicktime Will always be a legend at UCQuicktime Will always be a legend at UCQuicktime Will always be a legend at UCQuicktime Will always be a legend at UCQuicktime Will always be a legend at UCQuicktime Will always be a legend at UCQuicktime Will always be a legend at UCQuicktime Will always be a legend at UCQuicktime Will always be a legend at UCQuicktime Will always be a legend at UC
Points: 20,273, Level: 19
Points: 20,273, Level: 19 Points: 20,273, Level: 19 Points: 20,273, Level: 19
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Last Achievements
Quote:
Originally Posted by -Dimensions- View Post
...
Hey,

I was going to suggest some improvements and maybe give some more code, but I am not going to bother as I see you are trying to sell it. Is this not constructed from 100% free code found on this forum?

Regards,

- Quicktime
Quicktime is offline


Old 09-02-2010, 12:34 AM   #7
Gathering Stories

disco's Avatar

Join Date: Mar 2009
Location: University
Posts: 4,440
Reputation: 84290
Rep Power: 966
disco has disabled reputation
Recognitions:
Members who have contributed financial support towards UnKnoWnCheaTs. Donation (3)
Points: 69,734, Level: 38
Points: 69,734, Level: 38 Points: 69,734, Level: 38 Points: 69,734, Level: 38
Activity: 1.2%
Activity: 1.2% Activity: 1.2% Activity: 1.2%
Last Achievements
Award-Showcase
Quote:
Originally Posted by -Dimensions- View Post
I might set up a website and forum for it. Maybe in the future start selling it.
Like Quicktime said, we're not gonna support items that you may attempt to sell in the future.
__________________


The skyline was beautiful on fire.
--------------------------------------------------------------
X-Fire | IRC | Rules | Staff | Downloads | Tutorials
--------------------------------------------------------------
disco is offline

Closed Thread  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
greensecureregister, gsrl, log, login, php, register, secure, v01
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 11:29 AM.