Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 35 guests and 2 members online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Hardwarearrow Question
EH-Net
May 21, 2013, 12:12:13 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Question  (Read 3683 times)
0 Members and 1 Guest are viewing this topic.
Tigerjz32
Newbie
*
Offline Offline

Posts: 1



View Profile
« on: February 08, 2011, 12:02:12 PM »

Wasn't sure where to post it, so sorry if it is in the wrong section.

I have few questions, and 1st is that how does a website save its combination of username and password? for example: facebook... I am trying to make my own website, and it will have username and password, to login. Is is just a database that we create for it or what...?

2nd When I save me settings on an internet browser does it save them according to the TCP/IP and Physical Address?

Thank You
And sorry again if this isn't the right sections, though NIC card is a hardware  Wink
Logged
MaXe
Hero Member
*****
Offline Offline

Posts: 669


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #1 on: February 10, 2011, 11:11:53 AM »

Wasn't sure where to post it, so sorry if it is in the wrong section.

I have few questions, and 1st is that how does a website save its combination of username and password? for example: facebook... I am trying to make my own website, and it will have username and password, to login. Is is just a database that we create for it or what...?

2nd When I save me settings on an internet browser does it save them according to the TCP/IP and Physical Address?

Thank You
And sorry again if this isn't the right sections, though NIC card is a hardware  Wink

1) Most websites saves logon credentials in a database where the table name could be: users . In this table there are several columns, where id is a unique key identifying the user, and username contains the username, perhaps the one used to log onto the website with where the password field  contains the password. vBulletin stores passwords in an algorithm like this: md5(md5($password). $salt); (So, the database table 'users' also contains a field called 'salt').

2) If you mean save settings on a website and not actually the settings in Internet Explorer, then it's mostly stored in cookies and / or sessions. (www.w3schools.com). If it's the actual settings inside Internet Explorer and not for websites, it's probably stored in the registry database on your computer.

If all this sounds like gibberish or some of it does, I encourage you to Google about this, perhaps learn PHP and MySQL to understand how websites works along with the TCP protocol suite including IP, and HTTP.
« Last Edit: February 10, 2011, 11:13:49 AM by MaXe » Logged

I'm an InterN0T'er
H4TT1fn4TT
Jr. Member
**
Offline Offline

Posts: 54



View Profile
« Reply #2 on: February 10, 2011, 12:21:24 PM »

Some extra information regarding your first question.

A database allows for the storing of almost any type of information (even files, however this is not a good practice).

PHP is a programming language meant for web development mainly and allows you to write scripts that perform certain tasks. One of these could be to connect to a database,collect the information in it and display it. Or to compare a certain password (often hashed, salted) with the one stored in the database. PHP can then be used for example to write an 'if' statement to see if the password was correct and allowing certain privileges if so.

However, if you are just building a small website for yourself and you are inexperienced (and not to forget security is not that important). It would be best to just look into PHP only and start experimenting in the beginning. Even if you would use PHP to communicate with a database it would give you no advantages over only using PHP if your code is poorly (insecure) written.

Some good links with tutorials on PHP (my favorite is the second one).
http://www.w3schools.com/php/default.asp
http://www.tizag.com/phpT/

Just some additional information. PHP does not allow you to create those nice interfaces you see everywhere. For that you would need to learn some other languages like HTML and CSS,
Logged

"The quality of programmers is a decreasing function of the density of go to statements in the programs they produce."
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.078 seconds with 22 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Free Business and Tech Magazines and eBooks

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.