SwaggyMacro 1 year ago
parent
commit
9825185204
3 changed files with 38 additions and 4 deletions
  1. 9 0
      README.md
  2. 15 0
      SheepSheep/Form1.Designer.cs
  3. 14 4
      SheepSheep/Form1.cs

+ 9 - 0
README.md

@@ -7,6 +7,15 @@
 
 ## 📚使用教程
 
+**已更新v0.3自动获取Token版本(无需手动抓包)**
+**只需要你电脑登陆PC微信然后打开羊了个羊游戏,再打开本助手即可自动获取Token,直接开刷即可!**
+1. 登陆电脑版的PC微信
+2. 打开羊了个羊
+3. 打开本助手
+4. 一键通关
+
+## 📚抓包教程
+
 使用前需要用抓包工具获取账号token(t),需要一定动手能力,获取后就是傻瓜式操作。  
 
 💻PC端抓包工具:Fiddler、Http Debugger  

+ 15 - 0
SheepSheep/Form1.Designer.cs

@@ -38,6 +38,7 @@ namespace SheepSheep
             this.textBox2 = new System.Windows.Forms.TextBox();
             this.statusStrip1 = new System.Windows.Forms.StatusStrip();
             this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
+            this.label4 = new System.Windows.Forms.Label();
             this.statusStrip1.SuspendLayout();
             this.SuspendLayout();
             // 
@@ -131,11 +132,24 @@ namespace SheepSheep
             this.toolStripStatusLabel1.Size = new System.Drawing.Size(71, 17);
             this.toolStripStatusLabel1.Text = "通关次数: 0";
             // 
+            // label4
+            // 
+            this.label4.AutoSize = true;
+            this.label4.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label4.Location = new System.Drawing.Point(206, 274);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(68, 17);
+            this.label4.TabIndex = 8;
+            this.label4.Text = "获取Token";
+            this.label4.Click += new System.EventHandler(this.label4_Click);
+            // 
             // Form1
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(295, 330);
+            this.Controls.Add(this.label4);
             this.Controls.Add(this.statusStrip1);
             this.Controls.Add(this.textBox2);
             this.Controls.Add(this.button1);
@@ -165,6 +179,7 @@ namespace SheepSheep
         private System.Windows.Forms.TextBox textBox2;
         private System.Windows.Forms.StatusStrip statusStrip1;
         private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1;
+        private System.Windows.Forms.Label label4;
     }
 }
 

+ 14 - 4
SheepSheep/Form1.cs

@@ -27,6 +27,13 @@ namespace SheepSheep
 
         private void init() {
             this.comboBox1.SelectedIndex = 0;
+            getWechatToken();
+        }
+
+        [DllImport("GetTokenFromWechat.dll")]
+        static extern IntPtr GetTokenFromWechat();
+
+        private void getWechatToken() {
             string token = "";
             try
             {
@@ -37,14 +44,12 @@ namespace SheepSheep
             {
                 MessageBox.Show(this, "未检测到\"微信->羊了个羊\",请重新登陆微信并打开羊了个羊游戏。\n仍然显示此提示的话请自行抓包获取Token。", "Tips:", MessageBoxButtons.OK, MessageBoxIcon.Warning);
             }
-            else {
+            else
+            {
                 this.textBox1.Text = token;
                 MessageBox.Show(this, "检测到Token,已自动填写,请直接\"羊它!\"即可", "Tips:", MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
         }
-
-        [DllImport("GetTokenFromWechat.dll")]
-        static extern IntPtr GetTokenFromWechat();
         private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
         {
             this.passWay = this.comboBox1.SelectedIndex;
@@ -138,5 +143,10 @@ namespace SheepSheep
                 }
             }
         }
+
+        private void label4_Click(object sender, EventArgs e)
+        {
+            getWechatToken();
+        }
     }
 }