In the process of making the “pwn3d zite” I wanted to add a search capability to the site, so that led me to create this very simple tutorial that covers how to make a PHP search engine for your site. Search engines can range from very simple (the one we’re about to do) or something a bit more complex like [Google]. This tutorial assumes that all the data you want to search resides in a MYSQL database. I should say that there are tons of way on how you could build a search engine, but like the title implies this is the basics on how you could do it, and something you could build on…so lets get started Read the rest of this entry »
I recently posted a hacker challenge that consisted in a vulnerable login form, and specifically the vulnerabilities was found in the way the cookie was set, well for this tutorial I’ve decided to do a basic introduction to the mechanics of login forms and cookies in php using mysql as the database backend. On the application side, you can use cookies in you PHP scripts to control access to certain areas of your web site. A cookie is a small amount of data stored by the user’s browser in compliance with a request from a server or script. A host can request that up to 20 cookies be stored by a user’s browser. Read the rest of this entry »