Restricting access using cookies
Okay, for example, lets say there is a user system. One person is admin, one is not. What is the script to restrict the access? (to make a cookie that is "admin"… setcookie(admin) right? but anyways, also restrict it) so if your cookie is admin=false you cant view a certain page. If it is set to true, you can. What I am doing is making a few easy things to help my friend learn to hack. So… ya. The script, what it does etc. Please help, thanks in advance.
lol. Script cookies. Im not amazing at creating challenges. And besides, I don't like to practice much. I'm grey/white hat and I miss out on lots of action. lol. jk. But ya. I just haven't done it before. I can't exactly pick up something I have never seen before and do it fluently. I know how to abuse javascript, not not how to reproduce it (which is my concern. I like to know how things tick and try to apply it to other, similar things) So any help on this subject (or I guess any thing else important to know about building flaws in javascript :P) would help greatly.
I am the same way. I am not fluent in Javascript. I have much to learn yet. I had a similar question about cookie authorization. DSOM (dontspitonme) helped me out tremendously. You might want to stop by his site:
http://www.freewebs.com/dontspitonme
Send him a message in the guestbook and see if he can give you a hand with this.