Home  >  Article  >  Web Front-end  >  Use iframe techniques to obtain visitor QQ implementation ideas and sample codes_HTML/Xhtml_Web page production

Use iframe techniques to obtain visitor QQ implementation ideas and sample codes_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:37:391604browse

When I was working today, a friend I added temporarily asked me how to use a web page to obtain the QQ of visitors.

I have never been exposed to it before, and I feel very curious, but my mind is very excited at work and turns quickly. I use the knowledge I have learned to quickly think of a trick, that is, before the hypothetical user enters the page we set, We have entered the space or mailbox through QQ, yes, it will definitely leave a cookie on the browser of our computer, so we tried to use this cookie to make a fuss, so we searched on Google and found it within a few seconds. A relatively close answer, but the original poster who asked the question was close to 90% and died at 10%, so I will make up for the 10%.

http://kf.qq.com/cgi-bin/loginTitle?rand, yes, that is this link. If you click on this link, you will jump to a page, which returns xml format, as shown below

Copy code
The code is as follows:


< er>0
1
nickname
qq number
< ;/root>

Here you go, this is such a great thing, won’t it be solved in no time? The original poster found this link, but couldn't find it. He wanted to use ajax or something. Don't you know how awesome our big iframe is? Put an iframe with 0 width and height on the page, as long as the user has logged in before. For qq related websites, if you leave a cookie in the browser, you can definitely get the qq number and nickname. Of course, a user who logs in to two at the same time can only get one qq number. If the nickname is empty and there is no login, three 0s are displayed. Let me tell you secretly, you can also use this iframe to do xss. What, I don’t know how to do xss, I’m a good person, um, yes, that’s right.

Copy code
The code is as follows:



That’s it, the visitor’s qq is obtained, and I don’t need to do the rest of the work. Come on. What, I don’t know what the next job is, marketing, entering your page shows that I have an intention, I won’t say more.

After reading this, if you use it, you don’t need to thank me. If you really want to thank me, please call me Lei Feng.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn