吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 1599|回复: 7
收起左侧

[其他转载] .Net x东的简单签到

[复制链接]
7R903 发表于 2023-5-11 14:09
本帖最后由 cn005897 于 2023-5-11 14:10 编辑

只有这两个简单的操作,其它复杂的抽空再研究下
[C#] 纯文本查看 复制代码
 static void Main(string[] args)
        {
            string pt_key = "123";//cookie中的pt_key参数
            string pt_pin = "234";//cookie中的pt_pin参数
            string cookie = $"pt_key={pt_key}; pt_pin={pt_pin}";

            SignBean(cookie);
            CashSign(cookie);

            Console.ReadKey();
        }

        /// <summary>
        /// x东签到
        /// </summary>
        /// <param name="cookie"></param>
        /// <param name="userAgent"></param>
        static void SignBean(string cookie)
        {
            string url = "https://api.m.xd.com/client.action?functionId=signBeanAct&body=%7B%22fp%22%3A%22-1%22%2C%22shshshfp%22%3A%22-1%22%2C%22shshshfpa%22%3A%22-1%22%2C%22referUrl%22%3A%22-1%22%2C%22userAgent%22%3A%22-1%22%2C%22jda%22%3A%22-1%22%2C%22rnVersion%22%3A%223.9%22%7D&appid=ld";
            SendRequest(url, cookie);
        }

        /// <summary>
        /// 签到领现金
        /// </summary>
        /// <param name="cookie"></param>
        /// <param name="userAgent"></param>
        static void CashSign(string cookie)
        {
            string url = "https://api.m.xd.com/client.action?functionId=cash_sign&body=%7B%22remind%22%3A0%2C%22inviteCode%22%3A%22%22%2C%22type%22%3A0%2C%22breakReward%22%3A0%7D&client=apple&clientVersion=9.0.8&openudid=1fce88cd05c42fe2b054e846f11bdf33f016d676&sign=7e2f8bcec13978a691567257af4fdce9&st=1596954745073&sv=111";
            SendRequest(url, cookie);
        }

        /// <summary>
        /// 发送请求
        /// </summary>
        /// <param name="url"></param>
        /// <param name="cookie"></param>
        static void SendRequest(string url,string cookie)
        {
            var request = (HttpWebRequest)WebRequest.Create(url);
            request.Method = "POST";
            request.ContentType = "application/x-www-form-urlencoded; charset=UTF-8";
            request.UserAgent = "okhttp/3.12.1;jdmall;android;version/10.3.4;build/92451";
            request.Headers.Add(HttpRequestHeader.Cookie, cookie);

            using (var response = (HttpWebResponse)request.GetResponse())
            {
                using (var stream = response.GetResponseStream())
                {
                    using (var reader = new StreamReader(stream))
                    {
                        string result = reader.ReadToEnd();
                        Console.WriteLine(result);
                        Console.WriteLine("------------");
                    }
                }
            }
        }

免费评分

参与人数 1吾爱币 +1 热心值 +1 收起 理由
xieyi2003 + 1 + 1 我很赞同!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

zhang7069 发表于 2023-5-11 17:30
感谢分享
wfghim 发表于 2023-5-11 17:36
感谢楼主分享,看错了,我还以为是狗东的签到代码呢
 楼主| 7R903 发表于 2023-5-11 22:06
wfghim 发表于 2023-5-11 17:36
感谢楼主分享,看错了,我还以为是狗东的签到代码呢

确实是x东的
忧郁之子 发表于 2023-5-13 01:31
谢谢分享,就是不知道还能用多久
xieyi2003 发表于 2023-5-13 20:12
青龙面板该怎么用
xieyi2003 发表于 2023-5-16 21:49
怎么抓的呢
huangfriends 发表于 2023-5-17 14:20
谢谢分享
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-28 15:02

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表