Hacker cainiao tutorials familiar with cookie file Spoofing

Source: Internet
Author: User

First, several basic concepts

Cookie spoofing means that, in a system that only performs Cookies verification on users, users can log on to the system by modifying the Cookies.

So what is Cookies? Here I will give you a professional explanation. Cookies are text files stored in the browser directory that record your access to a specific site, the cookie can only be read back by the site that created the cookie. It consists of about 255 characters and only occupies 4 kb of hard disk space. When a user is browsing a website, it is stored in the Random Access Memory RAM of the user machine. After exiting the browser, it is stored in the user's hard disk. Most of the information stored in Cookies is common. For example, when you browse a site, this file records the key information and the address of the accessed site. However, many websites use Cookies to store private data, such as registration passwords, user names, and credit card numbers.

Ii. Principle Analysis

Let's take a look at how 6 kbbs is made. In login. asp, We can find row 113--124, as shown below:

       
        
If login = false then tl = "login failure" mes = mes & "· return and enter" else Response. cookies (prefix) ("lgname") = lgname session (prefix "lgname") = lgname Response. cookies (prefix) ("lgpwd") = lgpwd Response. cookies (prefix) ("lgtype") = lgtype Response. cookies (prefix) ("lgcook") = cook if cook> 0 then Response. cookies (prefix ). expires = date + cook end if
       

I want to change the meaning of this passage, that is, if you fail to log on, it will show that you failed to log on and guide you back to the previous page. Otherwise, it will be written into Cookies, if your Cookies exist, your expiration time is the expiration time of your Cookies-that is, the time when you save Cookies.

What do you think of here? Right. If I log on to the system as long as it only requires Cookies, if the information in my Cookies is administrator, will I become administrator? Smart, then let's look at how we do it.

  • 1
  • 2
  • Next Page
[Content navigation]
Page 1: Analysis of Several Basic Concepts and Principles Page 1: Cookie spoofing instances and digress

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.