├── BiliAccount ├── favicon_4.png ├── Properties │ └── launchSettings.json ├── Init.json ├── Framework4.0Methods │ ├── Stream4Methods.cs │ └── String4Methods.cs ├── Exceptions │ ├── Verify_Exception.cs │ ├── GetAccount_Exception.cs │ ├── Revoke_Exception.cs │ ├── SMS_Send_Exception.cs │ ├── SMS_NeedGeetest_Exception.cs │ └── InvalidColorValue.cs ├── Linq │ ├── BySMS.cs │ ├── Device_Verify.cs │ ├── ByPassword.cs │ └── ByQRCode.cs ├── QRCode │ ├── AbstractQRCode.cs │ ├── QRCodeData.cs │ └── QRCode.cs ├── Account.cs ├── Core │ ├── Config.cs │ └── BySMS.cs └── BiliAccount.csproj ├── BiliAccount.Geetest ├── favicon_4.png ├── Geetest.cs ├── Proxy.cs └── BiliAccount.Geetest.csproj ├── BiliAccount.Geetest.Controls ├── favicon_4.ico ├── favicon_4.png ├── Properties │ ├── launchSettings.json │ ├── Resources.Designer.cs │ └── Resources.resx ├── WPF │ ├── GeetestBrowser.xaml │ ├── GeetestBrowserWindow.xaml │ ├── GeetestBrowserWindow.xaml.cs │ └── GeetestBrowser.xaml.cs ├── Winforms │ ├── GeetestBrowser.Designer.cs │ ├── GeetestBrowserWindow.cs │ ├── GeetestBrowser.cs │ ├── GeetestBrowser.resx │ └── GeetestBrowserWindow.Designer.cs └── BiliAccount.Geetest.Controls.csproj ├── BiliAccount.TestProject.WPF ├── App.config ├── Properties │ ├── Settings.settings │ ├── Settings.Designer.cs │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── App.xaml.cs ├── App.xaml ├── MainWindow.xaml ├── MainWindow.xaml.cs └── BiliAccount.TestProject.WPF.csproj ├── BiliAccount.TestProject ├── App.config ├── Properties │ └── AssemblyInfo.cs ├── BiliAccount.TestProject.csproj └── Program.cs ├── BiliAccount.TestProject.Winforms ├── App.config ├── Properties │ ├── Settings.settings │ ├── AssemblyInfo.cs │ ├── Settings.Designer.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── Program.cs ├── Form1.Designer.cs ├── Form1.cs ├── BiliAccount.TestProject.Winforms.csproj └── Form1.resx ├── BiliAccount.Core31TestProject ├── BiliAccount.Core31TestProject.csproj └── Program.cs ├── LICENSE ├── .gitattributes ├── .github └── workflows │ └── async_project_files.yml ├── README.md ├── .gitignore └── BiliAccount.sln /BiliAccount/favicon_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoChen98/BiliAccount/HEAD/BiliAccount/favicon_4.png -------------------------------------------------------------------------------- /BiliAccount.Geetest/favicon_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoChen98/BiliAccount/HEAD/BiliAccount.Geetest/favicon_4.png -------------------------------------------------------------------------------- /BiliAccount.Geetest.Controls/favicon_4.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoChen98/BiliAccount/HEAD/BiliAccount.Geetest.Controls/favicon_4.ico -------------------------------------------------------------------------------- /BiliAccount.Geetest.Controls/favicon_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeoChen98/BiliAccount/HEAD/BiliAccount.Geetest.Controls/favicon_4.png -------------------------------------------------------------------------------- /BiliAccount/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "TestProject": { 4 | "commandName": "Executable" 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /BiliAccount.Geetest.Controls/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "profiles": { 3 | "TestProject": { 4 | "commandName": "Executable" 5 | } 6 | } 7 | } -------------------------------------------------------------------------------- /BiliAccount.TestProject.WPF/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /BiliAccount.TestProject/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /BiliAccount.TestProject.Winforms/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /BiliAccount.TestProject.WPF/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /BiliAccount.TestProject.Winforms/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /BiliAccount/Init.json: -------------------------------------------------------------------------------- 1 | { 2 | "appkey": "bca7e84c2d947ac6", 3 | "appsecret": "60698ba2f68e01ce44738920a0ffe768", 4 | "build": "6200400", 5 | "version": "6.20.0", 6 | "user_agent": "Mozilla/5.0 BiliDroid/6.20.0(bbcallen@gmail.com) os/android model/MI 9 mobi_app/android build/6200400 channel/master innerVer/6200400 osVer/10 network/2" 7 | } -------------------------------------------------------------------------------- /BiliAccount.Core31TestProject/BiliAccount.Core31TestProject.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | netcoreapp3.1 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /BiliAccount.TestProject.WPF/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Configuration; 4 | using System.Data; 5 | using System.Linq; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | 9 | namespace BiliAccount.TestProject.WPF 10 | { 11 | /// 12 | /// App.xaml 的交互逻辑 13 | /// 14 | public partial class App : Application 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /BiliAccount.TestProject.WPF/App.xaml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /BiliAccount/Framework4.0Methods/Stream4Methods.cs: -------------------------------------------------------------------------------- 1 | namespace BiliAccount 2 | { 3 | internal class Stream4Methods 4 | { 5 | #region Public Methods 6 | 7 | public static void CopyTo(System.IO.Stream input, System.IO.Stream output) 8 | { 9 | byte[] buffer = new byte[16 * 1024]; 10 | int bytesRead; 11 | while ((bytesRead = input.Read(buffer, 0, buffer.Length)) > 0) 12 | { 13 | output.Write(buffer, 0, bytesRead); 14 | } 15 | } 16 | 17 | #endregion Public Methods 18 | } 19 | } -------------------------------------------------------------------------------- /BiliAccount/Exceptions/Verify_Exception.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace BiliAccount.Exceptions 4 | { 5 | /// 6 | /// 设备验证错误 7 | /// 8 | public class Verify_Exception : Exception 9 | { 10 | #region Public Fields 11 | 12 | public int code; 13 | 14 | #endregion Public Fields 15 | 16 | #region Public Constructors 17 | 18 | public Verify_Exception(int code, string message) : base(message) 19 | { 20 | this.code = code; 21 | } 22 | 23 | #endregion Public Constructors 24 | } 25 | } -------------------------------------------------------------------------------- /BiliAccount/Exceptions/GetAccount_Exception.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace BiliAccount.Exceptions 4 | { 5 | /// 6 | /// 获取登录账号信息错误 7 | /// 8 | public class GetAccount_Exception : Exception 9 | { 10 | #region Public Fields 11 | 12 | public int code; 13 | 14 | #endregion Public Fields 15 | 16 | #region Public Constructors 17 | 18 | public GetAccount_Exception(int code, string message) : base(message) 19 | { 20 | this.code = code; 21 | } 22 | 23 | #endregion Public Constructors 24 | } 25 | } -------------------------------------------------------------------------------- /BiliAccount.TestProject.Winforms/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace BiliAccount.TestProject.Winforms 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// 应用程序的主入口点。 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new Form1()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /BiliAccount/Exceptions/Revoke_Exception.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | #pragma warning disable CS1591 4 | 5 | namespace BiliAccount.Exceptions 6 | { 7 | /// 8 | /// 注销错误 9 | /// 10 | public class Revoke_Exception : Exception 11 | { 12 | #region Public Constructors 13 | 14 | public Revoke_Exception(int code, string message) : base(message) 15 | { 16 | this.code = code; 17 | } 18 | 19 | #endregion Public Constructors 20 | 21 | #region Public Properties 22 | 23 | public int code { get; private set; } 24 | 25 | #endregion Public Properties 26 | } 27 | } -------------------------------------------------------------------------------- /BiliAccount/Exceptions/SMS_Send_Exception.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace BiliAccount.Exceptions 4 | { 5 | #pragma warning disable CS1591 6 | 7 | /// 8 | /// 发送验证码信息错误 9 | /// 10 | public class SMS_Send_Exception : Exception 11 | { 12 | #region Public Constructors 13 | 14 | public SMS_Send_Exception(int code, string message) : base(message) 15 | { 16 | this.code = code; 17 | } 18 | 19 | #endregion Public Constructors 20 | 21 | #region Public Properties 22 | 23 | public int code { get; private set; } 24 | 25 | #endregion Public Properties 26 | } 27 | } -------------------------------------------------------------------------------- /BiliAccount/Exceptions/SMS_NeedGeetest_Exception.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace BiliAccount.Exceptions 4 | { 5 | /// 6 | /// 发送短信需要极验验证时引发的错误 7 | /// 8 | public class SMS_NeedGeetest_Exception : Exception 9 | { 10 | #region Public Constructors 11 | 12 | /// 13 | /// 构造函数 14 | /// 15 | /// 校验弹窗地址 16 | public SMS_NeedGeetest_Exception(string recaptcha_url) : base("需要极验校验!") 17 | { 18 | url = recaptcha_url; 19 | } 20 | 21 | #endregion Public Constructors 22 | 23 | #region Public Properties 24 | 25 | /// 26 | /// 校验弹窗地址 27 | /// 28 | public string url { get; private set; } 29 | 30 | #endregion Public Properties 31 | } 32 | } -------------------------------------------------------------------------------- /BiliAccount/Exceptions/InvalidColorValue.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace BiliAccount.Exceptions 4 | { 5 | /// 6 | /// 传入了错误的颜色值 7 | /// 8 | public class InvalidColorValue : Exception 9 | { 10 | #region Public Constructors 11 | 12 | /// 13 | /// 以指定的属性名初始化 14 | /// 15 | /// 属性名 16 | public InvalidColorValue(string name) : base($"传入了错误的颜色值!{name}") 17 | { 18 | PropertyName = name; 19 | } 20 | 21 | #endregion Public Constructors 22 | 23 | #region Public Properties 24 | 25 | /// 26 | /// 错误的属性名 27 | /// 28 | public string PropertyName { get; private set; } 29 | 30 | #endregion Public Properties 31 | } 32 | } -------------------------------------------------------------------------------- /BiliAccount.Geetest.Controls/WPF/GeetestBrowser.xaml: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Leo Chen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /BiliAccount.TestProject.WPF/MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 |