├── media
└── 1.jpg
├── git-leaker
├── App.config
├── Properties
│ ├── Settings.settings
│ ├── AssemblyInfo.cs
│ ├── Settings.Designer.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── packages.config
├── Program.cs
├── ProxyHttpClientFactory.cs
├── QuickType
│ ├── Commits.cs
│ └── SearchResult.cs
├── git-leaker.csproj
├── Main.cs
├── Main.resx
└── Main.Designer.cs
├── README.md
├── GithubLeaker.sln
└── .gitignore
/media/1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Slzdude/GithubLeaker/HEAD/media/1.jpg
--------------------------------------------------------------------------------
/git-leaker/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/git-leaker/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Github Leaker
2 |
3 | 现在各式各样的Github信息泄露扫描工具很多,但是有时候过于重量级,需要配合扫描器一起使用,但是很多时候我们只是想验证一下某个Repo的信息,或者想手动进行参数的调整,这时候只能使用Github原生的搜索,比较麻烦,所以就开发了这个小工具
4 |
5 |
6 |
7 | 如果有对本工具有意见或建议,欢迎提issus
8 |
9 | ## 已实现功能
10 |
11 | - 使用Github API Token增加调用次数
12 | - 单查项目的提交历史
13 | - 基于关键词进行搜索
14 | - 查看命中内容
15 |
16 | ## 使用截图
17 |
18 | 
19 |
20 | ## TODO
21 |
22 | - [ ] 增加右键菜单
23 | - [ ] 增加搜索内容高亮
24 | - [ ] 可以选择项目的Branch进行查询
25 | - [ ] 高级搜索辅助工具
26 | - [ ] 结果导出
--------------------------------------------------------------------------------
/git-leaker/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/git-leaker/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 git_leaker
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 Main());
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/git-leaker/ProxyHttpClientFactory.cs:
--------------------------------------------------------------------------------
1 | using System.Net;
2 | using System.Net.Http;
3 |
4 | using Flurl.Http.Configuration;
5 |
6 | namespace git_leaker
7 | {
8 | public class ProxyHttpClientFactory : DefaultHttpClientFactory
9 | {
10 | private string _address;
11 |
12 | public ProxyHttpClientFactory(string address)
13 | {
14 | _address = address;
15 | }
16 |
17 | public override HttpMessageHandler CreateMessageHandler()
18 | {
19 | return new HttpClientHandler
20 | {
21 | Proxy = new WebProxy(_address),
22 | UseProxy = true
23 | };
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/git-leaker/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("git-leaker")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("git-leaker")]
13 | [assembly: AssemblyCopyright("Copyright © 2019")]
14 | [assembly: AssemblyTrademark("")]
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("66036f69-7493-4701-be1e-293b9ca02dd0")]
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 |
--------------------------------------------------------------------------------
/GithubLeaker.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.29519.87
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "git-leaker", "git-leaker\git-leaker.csproj", "{66036F69-7493-4701-BE1E-293B9CA02DD0}"
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 | {66036F69-7493-4701-BE1E-293B9CA02DD0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {66036F69-7493-4701-BE1E-293B9CA02DD0}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {66036F69-7493-4701-BE1E-293B9CA02DD0}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {66036F69-7493-4701-BE1E-293B9CA02DD0}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {AE60826D-13A7-4C10-AED7-AF68FFEF4598}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/git-leaker/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace git_leaker.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/git-leaker/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本: 4.0.30319.42000
5 | //
6 | // 对此文件的更改可能导致不正确的行为,如果
7 | // 重新生成代码,则所做更改将丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace git_leaker.Properties
12 | {
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 |
28 | private static global::System.Resources.ResourceManager resourceMan;
29 |
30 | private static global::System.Globalization.CultureInfo resourceCulture;
31 |
32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
33 | internal Resources()
34 | {
35 | }
36 |
37 | ///
38 | /// 返回此类使用的缓存 ResourceManager 实例。
39 | ///
40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
41 | internal static global::System.Resources.ResourceManager ResourceManager
42 | {
43 | get
44 | {
45 | if ((resourceMan == null))
46 | {
47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("git_leaker.Properties.Resources", typeof(Resources).Assembly);
48 | resourceMan = temp;
49 | }
50 | return resourceMan;
51 | }
52 | }
53 |
54 | ///
55 | /// 覆盖当前线程的 CurrentUICulture 属性
56 | /// 使用此强类型的资源类的资源查找。
57 | ///
58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
59 | internal static global::System.Globalization.CultureInfo Culture
60 | {
61 | get
62 | {
63 | return resourceCulture;
64 | }
65 | set
66 | {
67 | resourceCulture = value;
68 | }
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/git-leaker/QuickType/Commits.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 |
4 | public class Author
5 | {
6 | public string name { get; set; }
7 | public string email { get; set; }
8 | public DateTime date { get; set; }
9 | }
10 |
11 | public class Committer
12 | {
13 | public string name { get; set; }
14 | public string email { get; set; }
15 | public DateTime date { get; set; }
16 | }
17 |
18 | public class Tree
19 | {
20 | public string sha { get; set; }
21 | public string url { get; set; }
22 | }
23 |
24 | public class Verification
25 | {
26 | public bool verified { get; set; }
27 | public string reason { get; set; }
28 | public object signature { get; set; }
29 | public object payload { get; set; }
30 | }
31 |
32 | public class Commit
33 | {
34 | public Author author { get; set; }
35 | public Committer committer { get; set; }
36 | public string message { get; set; }
37 | public Tree tree { get; set; }
38 | public string url { get; set; }
39 | public int comment_count { get; set; }
40 | public Verification verification { get; set; }
41 | }
42 |
43 | public class Author2
44 | {
45 | public string login { get; set; }
46 | public int id { get; set; }
47 | public string node_id { get; set; }
48 | public string avatar_url { get; set; }
49 | public string gravatar_id { get; set; }
50 | public string url { get; set; }
51 | public string html_url { get; set; }
52 | public string followers_url { get; set; }
53 | public string following_url { get; set; }
54 | public string gists_url { get; set; }
55 | public string starred_url { get; set; }
56 | public string subscriptions_url { get; set; }
57 | public string organizations_url { get; set; }
58 | public string repos_url { get; set; }
59 | public string events_url { get; set; }
60 | public string received_events_url { get; set; }
61 | public string type { get; set; }
62 | public bool site_admin { get; set; }
63 | }
64 |
65 | public class Committer2
66 | {
67 | public string login { get; set; }
68 | public int id { get; set; }
69 | public string node_id { get; set; }
70 | public string avatar_url { get; set; }
71 | public string gravatar_id { get; set; }
72 | public string url { get; set; }
73 | public string html_url { get; set; }
74 | public string followers_url { get; set; }
75 | public string following_url { get; set; }
76 | public string gists_url { get; set; }
77 | public string starred_url { get; set; }
78 | public string subscriptions_url { get; set; }
79 | public string organizations_url { get; set; }
80 | public string repos_url { get; set; }
81 | public string events_url { get; set; }
82 | public string received_events_url { get; set; }
83 | public string type { get; set; }
84 | public bool site_admin { get; set; }
85 | }
86 |
87 | public class Commits
88 | {
89 | public string sha { get; set; }
90 | public string node_id { get; set; }
91 | public Commit commit { get; set; }
92 | public string url { get; set; }
93 | public string html_url { get; set; }
94 | public string comments_url { get; set; }
95 | public Author2 author { get; set; }
96 | public Committer2 committer { get; set; }
97 | public List