Skip to content

Commit a57d97b

Browse files
committed
Beautification document
1 parent 95228fb commit a57d97b

File tree

17 files changed

+245
-54
lines changed

17 files changed

+245
-54
lines changed

DocumentGeneration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
window_failure_list=[]
88
def WindowsConfig():
99
#中文配置的开头
10-
chinese_begin="""let config = {\n title: 'Kernelhub',\n home: 'Info.md',\n repo: 'Ascotbe/Kernelhub',\n nav: [\n {\n title: '简介', path: '/'\n },\n {\n title: '目录导航',type: 'dropdown', items: [\n {\n title: "有利用脚本(测试成功)",path: '/TestSuccess'\n },"""
10+
chinese_begin="""let config = {\n title: 'Windows',\n home: 'Info.md',\n repo: 'Ascotbe/Kernelhub/Windows',\n nav: [\n {\n title: '简介', path: '/'\n },\n {\n title: '目录导航',type: 'dropdown', items: [\n {\n title: "有利用脚本(测试成功)",path: '/TestSuccess'\n },"""
1111
#所有配置的结尾
1212
config_end="""\n ]\n },\n ],\n tocVisibleDepth: 10,\n plugins: []\n};"""
1313
#下表是黑名单,垃圾文件
1414
reject_list=['.DS_Store', '.git','.idea', '.gitignore','LICENSE', 'Patch', 'README.CN.md', 'README.md', 'TestFailure', 'docs', 'DocumentGeneration.py','StencilPlate']
1515
#英文配置的开头
16-
english_begin="""let config = {\n title: 'Kernelhub',\n home: 'Info.md',\n repo: 'Ascotbe/Kernelhub',\n nav: [\n {\n title: 'Introduction', path: '/'\n },\n {\n title: 'DirectoryNavigation',type: 'dropdown', items: [\n {\n title: "exploit script (successful test)",path: '/TestSuccess'\n },"""
16+
english_begin="""let config = {\n title: 'Windows',\n home: 'Info.md',\n repo: 'Ascotbe/Kernelhub/Windows',\n nav: [\n {\n title: 'Introduction', path: '/'\n },\n {\n title: 'DirectoryNavigation',type: 'dropdown', items: [\n {\n title: "exploit script (successful test)",path: '/TestSuccess'\n },"""
1717
#处理成功的编号
1818
for i in os.listdir(Path+"/Windows"):
1919
if i not in reject_list:

README.CN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ http://kernelhub.ascotbe.com(重写中
3030

3131
🚧:[Linux](https://github.com/Ascotbe/Kernelhub/tree/master/Linux)(施工中
3232

33+
🚧:[macOS](https://github.com/Ascotbe/Kernelhub/tree/master/macOS)(施工中
34+
3335
### 免责声明
3436

3537
本项目仅面向**合法授权**的企业安全建设行为,在使用本项目进行检测时,您应确保该行为符合当地的法律法规,并且已经取得了足够的授权。

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ http://kernelhub.ascotbe.com(重写中
3030

3131
🚧:[Linux](https://github.com/Ascotbe/Kernelhub/tree/master/Linux)(Constructing
3232

33+
🚧:[macOS](https://github.com/Ascotbe/Kernelhub/tree/master/macOS)(Constructing
34+
3335
### Disclaimer
3436

3537
This project is only oriented to **legally authorized** corporate safety construction behaviors. When using this project for testing, you should ensure that the behavior complies with local laws and regulations and has obtained sufficient authorization.

docs/Home/Docs/Info.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<h1 align="center" >Welcome to Kernelhub</h1>
2+
<p align="center">
3+
<a href="https://github.com/Ascotbe/Kernelhub"><img alt="Release" src="https://img.shields.io/badge/Ascotbe-Kernelhub-green"></a>
4+
<a href="https://github.com/Ascotbe/Kernelhub"><img alt="Release" src="https://visitor-badge.glitch.me/badge?page_id=https://github.com/Ascotbe/Kernelhub/README.md"></a>
5+
<a href="https://github.com/Ascotbe/Kernelhub"><img alt="Release" src="https://img.shields.io/badge/LICENSE-GPL-ff69b4"></a>
6+
<a href="https://github.com/Ascotbe/Kernelhub/stargazers"><img alt="Release" src="https://img.shields.io/github/stars/ascotbe/Kernelhub.svg"></a>
7+
<a href="https://github.com/Ascotbe/Medusa"><img alt="Release" src="https://img.shields.io/badge/scope-2000—2021-success"></a>
8+
<a href="https://github.com/Ascotbe/Medusa"><img alt="Release" src="https://img.shields.io/github/repo-size/Ascotbe/Kernelhub"></a>
9+
</p>
10+
11+
12+
13+
14+
> 前言
15+
16+
- 制作该项目的初衷是为了,学习、分析、研究最新的内核漏洞不在需要话大量时间去寻找系统以及相关内容
17+
- 本项目是一个提权相关的集合,除测试失败或者未测试的EXP都有详细说明以及演示GIF图
18+
- 如有本项目存在遗漏的CVE漏洞,欢迎提Issues并带上利用代码
19+
- 项目代码禁止在真实环境进行测试!代码的可靠性自行验证,您造成的过失项目作者概不负责
20+
21+
> 协助
22+
23+
项目中暂缺单个文档的英文翻译,如果英文好的小伙伴欢迎提交PR
24+
25+
### 详情页面
26+
27+
点击下列图表进行跳转
28+
29+
<p align="center">
30+
<a href="http://kernelhub.ascotbe.com/Windows/Docs/"><img src="https://raw.githubusercontent.com/Ascotbe/Image/master/Kernelhub/Windows_icon.png" style="zoom:30%;" /></a>&nbsp; &nbsp;
31+
<a href="http://kernelhub.ascotbe.com/macOS/Docs/"><img src="https://raw.githubusercontent.com/Ascotbe/Image/master/Kernelhub/macos_icon.png" style="zoom:10%;" /></a>&nbsp; &nbsp;
32+
<a href="http://kernelhub.ascotbe.com/Linux/Docs/"><img src="https://raw.githubusercontent.com/Ascotbe/Image/master/Kernelhub/linux_icon.png" style="zoom:10%;" /></a>
33+
</p>
34+
35+
### 关于错误
36+
37+
由于项目内容较多,难免有些错别字或者遗漏的CVE编号等问题,如果您发现了错误,还望提交Issues来帮助我维护该项目。
38+
39+
### 免责声明
40+
41+
本项目仅面向**合法授权**的企业安全建设行为,在使用本项目进行检测时,您应确保该行为符合当地的法律法规,并且已经取得了足够的授权。
42+
43+
如您在使用本项目的过程中存在任何非法行为,您需自行承担相应后果,我们将不承担任何法律及连带责任。
44+
45+
在使用本项目前,请您**务必审慎阅读、充分理解各条款内容**,限制、免责条款或者其他涉及您重大权益的条款可能会以加粗、加下划线等形式提示您重点注意。 除非您已充分阅读、完全理解并接受本协议所有条款,否则,请您不要使用本项目。您的使用行为或者您以其他任何明示或者默示方式表示接受本协议的,即视为您已阅读并同意本协议的约束。
46+
47+
48+
### 参考项目&网站
49+
50+
- [windows-kernel-exploits](https://github.com/SecWiki/windows-kernel-exploits)
51+
- [WindowsExploits](https://github.com/abatchy17/WindowsExploits)
52+
- [Exploits](https://github.com/WindowsExploits/Exploits)
53+
- [CVE](https://cve.mitre.org)
54+
- [CVE Details](https://www.cvedetails.com/)
55+

docs/Home/Docs/config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
let config = {
2+
title: 'Kernelhub',
3+
home: 'Info.md',
4+
repo: 'Ascotbe/Kernelhub',
5+
nav: [
6+
{
7+
title: '简介', path: '/'
8+
}
9+
],
10+
tocVisibleDepth: 10,
11+
plugins: []
12+
};

docs/Home/Docs/index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
7+
<title>Kernelhub</title>
8+
<link href="https://unpkg.com/docute@3/dist/docute.css" rel="stylesheet">
9+
<link href="../main.css" rel="stylesheet">
10+
</head>
11+
<body>
12+
<div id="app"></div>
13+
<script src="https://unpkg.com/docute@3/dist/docute.js"></script>
14+
<script src="https://unpkg.com/prismjs/components/prism-ini.min.js"></script>
15+
<script src="https://unpkg.com/prismjs/components/prism-http.min.js"></script>
16+
<script src="https://unpkg.com/prismjs/components/prism-json.min.js"></script>
17+
<script src="https://unpkg.com/prismjs/components/prism-python.min.js"></script>
18+
<script src="https://unpkg.com/prismjs/components/prism-bash.min.js"></script>
19+
<script src="./config.js"></script>
20+
<script src="../init.js"></script>
21+
</body>
22+
</html>

docs/Home/EnglishDocs/Info.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<h1 align="center" >Welcome to Kernelhub</h1>
2+
<p align="center">
3+
<a href="https://github.com/Ascotbe/Kernelhub"><img alt="Release" src="https://img.shields.io/badge/Ascotbe-Kernelhub-green"></a>
4+
<a href="https://github.com/Ascotbe/Kernelhub"><img alt="Release" src="https://visitor-badge.glitch.me/badge?page_id=https://github.com/Ascotbe/Kernelhub/README.md"></a>
5+
<a href="https://github.com/Ascotbe/Kernelhub"><img alt="Release" src="https://img.shields.io/badge/LICENSE-GPL-ff69b4"></a>
6+
<a href="https://github.com/Ascotbe/Kernelhub/stargazers"><img alt="Release" src="https://img.shields.io/github/stars/ascotbe/Kernelhub.svg"></a>
7+
<a href="https://github.com/Ascotbe/Medusa"><img alt="Release" src="https://img.shields.io/badge/scope-2000—2021-success"></a>
8+
<a href="https://github.com/Ascotbe/Medusa"><img alt="Release" src="https://img.shields.io/github/repo-size/Ascotbe/Kernelhub"></a>
9+
</p>
10+
11+
12+
13+
> Preface
14+
15+
- The original intention of making the project is for, learning, analyzing, and research the latest kernel vulnerabilities are not needed to see the system and related content.
16+
- This project is a collection of proprietary, except for test failure or unspecified Exp, Demo GIF map
17+
- If there is an omission of the omission of CVE vulnerabilities, please join your issues and bring your use of code.
18+
- Project code is prohibited from testing in a real environment! The reliability of the code is self-verified, and the cause of the fault you have is not responsible.
19+
20+
> Assist
21+
22+
In the project, the lack of ordinary order documentation, if English is good, friends welcome to submit PR
23+
24+
### Detail page
25+
26+
Click the following chart to jump
27+
28+
<p align="center">
29+
<a href="http://kernelhub.ascotbe.com/Windows/Docs/"><img src="https://raw.githubusercontent.com/Ascotbe/Image/master/Kernelhub/Windows_icon.png" style="zoom:30%;" /></a>&nbsp; &nbsp;
30+
<a href="http://kernelhub.ascotbe.com/macOS/Docs/"><img src="https://raw.githubusercontent.com/Ascotbe/Image/master/Kernelhub/macos_icon.png" style="zoom:10%;" /></a>&nbsp; &nbsp;
31+
<a href="http://kernelhub.ascotbe.com/Linux/Docs/"><img src="https://raw.githubusercontent.com/Ascotbe/Image/master/Kernelhub/linux_icon.png" style="zoom:10%;" /></a>
32+
</p>
33+
34+
### About the error
35+
36+
Due to the large content of the project, it is inevitable that there will be some typos or missing CVE numbers. If you find an error, you still hope to submit Issues to help me maintain the project.
37+
38+
> No test success number
39+
40+
The following numbers are all CVEs that failed to pass the recurrence test after screening, with reasons for failure, and welcome to submit PR
41+
42+
43+
### Disclaimer
44+
45+
This project is only oriented to **legally authorized** corporate safety construction behaviors. When using this project for testing, you should ensure that the behavior complies with local laws and regulations and has obtained sufficient authorization.
46+
47+
If you have any illegal behavior in the process of using this project, you need to bear the corresponding consequences yourself, and we will not bear any legal and joint liabilities.
48+
49+
Before using this project, please **read carefully and fully understand the content of each clause**. Restrictions, exemption clauses or other clauses involving your major rights and interests may be bolded, underlined, etc. to remind you to pay attention. Unless you have fully read, fully understood and accepted all the terms of this agreement, please do not use this item. Your use behavior or your acceptance of this agreement in any other express or implied manner shall be deemed to have been read and agreed to be bound by this agreement.
50+
51+
52+
### Reference project & website
53+
54+
- [windows-kernel-exploits](https://github.com/SecWiki/windows-kernel-exploits)
55+
- [WindowsExploits](https://github.com/abatchy17/WindowsExploits)
56+
- [Exploits](https://github.com/WindowsExploits/Exploits)
57+
- [CVE](https://cve.mitre.org)
58+
- [CVE Details](https://www.cvedetails.com/)
59+

docs/Home/EnglishDocs/config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
let config = {
2+
title: 'Kernelhub',
3+
home: 'Info.md',
4+
repo: 'Ascotbe/Kernelhub',
5+
nav: [
6+
{
7+
title: 'Introduction', path: '/'
8+
},
9+
],
10+
tocVisibleDepth: 10,
11+
plugins: []
12+
};

docs/Home/EnglishDocs/index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
7+
<title>Kernelhub</title>
8+
<link href="https://unpkg.com/docute@3/dist/docute.css" rel="stylesheet">
9+
<link href="../main.css" rel="stylesheet">
10+
</head>
11+
<body>
12+
<div id="app"></div>
13+
<script src="https://unpkg.com/docute@3/dist/docute.js"></script>
14+
<script src="https://unpkg.com/prismjs/components/prism-ini.min.js"></script>
15+
<script src="https://unpkg.com/prismjs/components/prism-http.min.js"></script>
16+
<script src="https://unpkg.com/prismjs/components/prism-json.min.js"></script>
17+
<script src="https://unpkg.com/prismjs/components/prism-python.min.js"></script>
18+
<script src="https://unpkg.com/prismjs/components/prism-bash.min.js"></script>
19+
<script src="./config.js"></script>
20+
<script src="../init.js"></script>
21+
</body>
22+
</html>

docs/Home/init.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
var rootUrl = 'https://www.ascotbe.com/kernelhub';
2+
3+
var versions = [
4+
{ title: '中文', path: '/Docs/' },
5+
{ title: 'English', path: '/EnglishDocs/' },
6+
]
7+
8+
var latestVersionIndex = 0;
9+
var currentVersionIndex = -1;
10+
11+
versions[latestVersionIndex].title += '';
12+
13+
versions.forEach(function (v, idx) {
14+
if (v.path) {
15+
var pathname = window.location.pathname;
16+
if (pathname.lastIndexOf(v.path) == pathname.length - v.path.length /* pathname.endsWith(v.path) */) {
17+
currentVersionIndex = idx;
18+
rootUrl = window.location.origin + pathname.substr(0, pathname.length - v.path.length);
19+
}
20+
}
21+
});
22+
23+
versions.forEach(function (v) {
24+
if (v.path) {
25+
v.path = rootUrl + v.path;
26+
}
27+
});
28+
29+
config.nav.push({
30+
title: 'Language: ' + versions[currentVersionIndex].title, type: 'dropdown', items: versions
31+
});
32+
33+
34+
35+
docute.init(config);
36+
37+
// Google Analytics
38+
window.ga = window.ga || function () { (ga.q = ga.q || []).push(arguments) }; ga.l = +new Date;
39+
ga('create', 'UA-115509121-1', 'auto');
40+
ga('send', 'pageview');
41+
docute.router.afterEach(function (to) {
42+
ga('set', 'page', to.fullPath);
43+
ga('send', 'pageview');
44+
});

0 commit comments

Comments
 (0)