WeiWeiXinNet/admin/Security.ashx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WeiWeiXinNet.admin
{
    /// <summary>
    /// Security 的摘要说明
    /// </summary>
    public class Security : IHttpHandler
    {
        HttpContext _context;

        public void ProcessRequest(HttpContext context)
        {
            //读取的时候
            HttpCookie cookie2 = context.Request.Cookies["weiweixing"];

            if (cookie2 == null)
            {
                context.Response.Redirect("login.aspx");
                return;
            }

            string name = cookie2.Values["name"];
            if (name == null)
            {
                context.Response.Redirect("login.aspx");
                return;
            }

            string md5 = cookie2.Values["md5"];
            if (md5 == null)
            {
                context.Response.Redirect("login.aspx");
                return;
            }

            string ext = context.Request["e"];


            _context = context;
            context.Response.ContentType = "text/plain";

            context.Response.Write("开始检测:"+ DateTime.Now.ToString()+"\r\n");

            string PathM = System.IO.Path.Combine(context.Server.MapPath("~"), "USER_DIR");

            SysDir = context.Server.MapPath("~");

            DirectoryInfo DIR = new DirectoryInfo(PathM);
            GetFiles(DIR, "*." + ext);


            context.Response.Write("检测结束:" + DateTime.Now.ToString() + "\r\n");

        }

后面还有 44 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。