Skip to content

Commit

Permalink
Beautification document
Browse files Browse the repository at this point in the history
  • Loading branch information
Ascotbe committed Feb 2, 2023
1 parent 95228fb commit a57d97b
Show file tree
Hide file tree
Showing 17 changed files with 245 additions and 54 deletions.
4 changes: 2 additions & 2 deletions DocumentGeneration.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
window_failure_list=[]
def WindowsConfig():
#中文配置的开头
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 },"""
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 },"""
#所有配置的结尾
config_end="""\n ]\n },\n ],\n tocVisibleDepth: 10,\n plugins: []\n};"""
#下表是黑名单,垃圾文件
reject_list=['.DS_Store', '.git','.idea', '.gitignore','LICENSE', 'Patch', 'README.CN.md', 'README.md', 'TestFailure', 'docs', 'DocumentGeneration.py','StencilPlate']
#英文配置的开头
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 },"""
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 },"""
#处理成功的编号
for i in os.listdir(Path+"/Windows"):
if i not in reject_list:
Expand Down
2 changes: 2 additions & 0 deletions README.CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ http://kernelhub.ascotbe.com(重写中

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

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

### 免责声明

本项目仅面向**合法授权**的企业安全建设行为,在使用本项目进行检测时,您应确保该行为符合当地的法律法规,并且已经取得了足够的授权。
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ http://kernelhub.ascotbe.com(重写中

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

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

### Disclaimer

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.
Expand Down
55 changes: 55 additions & 0 deletions docs/Home/Docs/Info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<h1 align="center" >Welcome to Kernelhub</h1>
<p align="center">
<a href="https://github.com/Ascotbe/Kernelhub"><img alt="Release" src="https://img.shields.io/badge/Ascotbe-Kernelhub-green"></a>
<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>
<a href="https://github.com/Ascotbe/Kernelhub"><img alt="Release" src="https://img.shields.io/badge/LICENSE-GPL-ff69b4"></a>
<a href="https://github.com/Ascotbe/Kernelhub/stargazers"><img alt="Release" src="https://img.shields.io/github/stars/ascotbe/Kernelhub.svg"></a>
<a href="https://github.com/Ascotbe/Medusa"><img alt="Release" src="https://img.shields.io/badge/scope-2000—2021-success"></a>
<a href="https://github.com/Ascotbe/Medusa"><img alt="Release" src="https://img.shields.io/github/repo-size/Ascotbe/Kernelhub"></a>
</p>




> 前言
- 制作该项目的初衷是为了,学习、分析、研究最新的内核漏洞不在需要话大量时间去寻找系统以及相关内容
- 本项目是一个提权相关的集合,除测试失败或者未测试的EXP都有详细说明以及演示GIF图
- 如有本项目存在遗漏的CVE漏洞,欢迎提Issues并带上利用代码
- 项目代码禁止在真实环境进行测试!代码的可靠性自行验证,您造成的过失项目作者概不负责

> 协助
项目中暂缺单个文档的英文翻译,如果英文好的小伙伴欢迎提交PR

### 详情页面

点击下列图表进行跳转

<p align="center">
<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;
<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;
<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>
</p>

### 关于错误

由于项目内容较多,难免有些错别字或者遗漏的CVE编号等问题,如果您发现了错误,还望提交Issues来帮助我维护该项目。

### 免责声明

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

如您在使用本项目的过程中存在任何非法行为,您需自行承担相应后果,我们将不承担任何法律及连带责任。

在使用本项目前,请您**务必审慎阅读、充分理解各条款内容**,限制、免责条款或者其他涉及您重大权益的条款可能会以加粗、加下划线等形式提示您重点注意。 除非您已充分阅读、完全理解并接受本协议所有条款,否则,请您不要使用本项目。您的使用行为或者您以其他任何明示或者默示方式表示接受本协议的,即视为您已阅读并同意本协议的约束。


### 参考项目&网站

- [windows-kernel-exploits](https://github.com/SecWiki/windows-kernel-exploits)
- [WindowsExploits](https://github.com/abatchy17/WindowsExploits)
- [Exploits](https://github.com/WindowsExploits/Exploits)
- [CVE](https://cve.mitre.org)
- [CVE Details](https://www.cvedetails.com/)

12 changes: 12 additions & 0 deletions docs/Home/Docs/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
let config = {
title: 'Kernelhub',
home: 'Info.md',
repo: 'Ascotbe/Kernelhub',
nav: [
{
title: '简介', path: '/'
}
],
tocVisibleDepth: 10,
plugins: []
};
22 changes: 22 additions & 0 deletions docs/Home/Docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<title>Kernelhub</title>
<link href="https://unpkg.com/docute@3/dist/docute.css" rel="stylesheet">
<link href="../main.css" rel="stylesheet">
</head>
<body>
<div id="app"></div>
<script src="https://unpkg.com/docute@3/dist/docute.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-ini.min.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-http.min.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-json.min.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-python.min.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-bash.min.js"></script>
<script src="./config.js"></script>
<script src="../init.js"></script>
</body>
</html>
59 changes: 59 additions & 0 deletions docs/Home/EnglishDocs/Info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<h1 align="center" >Welcome to Kernelhub</h1>
<p align="center">
<a href="https://github.com/Ascotbe/Kernelhub"><img alt="Release" src="https://img.shields.io/badge/Ascotbe-Kernelhub-green"></a>
<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>
<a href="https://github.com/Ascotbe/Kernelhub"><img alt="Release" src="https://img.shields.io/badge/LICENSE-GPL-ff69b4"></a>
<a href="https://github.com/Ascotbe/Kernelhub/stargazers"><img alt="Release" src="https://img.shields.io/github/stars/ascotbe/Kernelhub.svg"></a>
<a href="https://github.com/Ascotbe/Medusa"><img alt="Release" src="https://img.shields.io/badge/scope-2000—2021-success"></a>
<a href="https://github.com/Ascotbe/Medusa"><img alt="Release" src="https://img.shields.io/github/repo-size/Ascotbe/Kernelhub"></a>
</p>



> Preface
- 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.
- This project is a collection of proprietary, except for test failure or unspecified Exp, Demo GIF map
- If there is an omission of the omission of CVE vulnerabilities, please join your issues and bring your use of code.
- 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.

> Assist
In the project, the lack of ordinary order documentation, if English is good, friends welcome to submit PR

### Detail page

Click the following chart to jump

<p align="center">
<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;
<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;
<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>
</p>

### About the error

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.

> No test success number
The following numbers are all CVEs that failed to pass the recurrence test after screening, with reasons for failure, and welcome to submit PR


### Disclaimer

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.

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.

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.


### Reference project & website

- [windows-kernel-exploits](https://github.com/SecWiki/windows-kernel-exploits)
- [WindowsExploits](https://github.com/abatchy17/WindowsExploits)
- [Exploits](https://github.com/WindowsExploits/Exploits)
- [CVE](https://cve.mitre.org)
- [CVE Details](https://www.cvedetails.com/)

12 changes: 12 additions & 0 deletions docs/Home/EnglishDocs/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
let config = {
title: 'Kernelhub',
home: 'Info.md',
repo: 'Ascotbe/Kernelhub',
nav: [
{
title: 'Introduction', path: '/'
},
],
tocVisibleDepth: 10,
plugins: []
};
22 changes: 22 additions & 0 deletions docs/Home/EnglishDocs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<title>Kernelhub</title>
<link href="https://unpkg.com/docute@3/dist/docute.css" rel="stylesheet">
<link href="../main.css" rel="stylesheet">
</head>
<body>
<div id="app"></div>
<script src="https://unpkg.com/docute@3/dist/docute.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-ini.min.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-http.min.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-json.min.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-python.min.js"></script>
<script src="https://unpkg.com/prismjs/components/prism-bash.min.js"></script>
<script src="./config.js"></script>
<script src="../init.js"></script>
</body>
</html>
44 changes: 44 additions & 0 deletions docs/Home/init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
var rootUrl = 'https://www.ascotbe.com/kernelhub';

var versions = [
{ title: '中文', path: '/Docs/' },
{ title: 'English', path: '/EnglishDocs/' },
]

var latestVersionIndex = 0;
var currentVersionIndex = -1;

versions[latestVersionIndex].title += '';

versions.forEach(function (v, idx) {
if (v.path) {
var pathname = window.location.pathname;
if (pathname.lastIndexOf(v.path) == pathname.length - v.path.length /* pathname.endsWith(v.path) */) {
currentVersionIndex = idx;
rootUrl = window.location.origin + pathname.substr(0, pathname.length - v.path.length);
}
}
});

versions.forEach(function (v) {
if (v.path) {
v.path = rootUrl + v.path;
}
});

config.nav.push({
title: 'Language: ' + versions[currentVersionIndex].title, type: 'dropdown', items: versions
});



docute.init(config);

// Google Analytics
window.ga = window.ga || function () { (ga.q = ga.q || []).push(arguments) }; ga.l = +new Date;
ga('create', 'UA-115509121-1', 'auto');
ga('send', 'pageview');
docute.router.afterEach(function (to) {
ga('set', 'page', to.fullPath);
ga('send', 'pageview');
});
4 changes: 4 additions & 0 deletions docs/Home/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
body {
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,"Hiragino Sans GB", "Microsoft YaHei",
"WenQuanYi Micro Hei",sans-serif;
}
26 changes: 2 additions & 24 deletions docs/Windows/Docs/Info.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h1 align="center" >Welcome to Kernelhub</h1>
<p align="center">
<h1 align="center" ><img src="https://github.com/Ascotbe/Image/blob/master/Kernelhub/Windows.gif?raw=true" alt="giphy" style="zoom:43%;" /></h1>
<p align="center">
<a href="https://github.com/Ascotbe/Kernelhub"><img alt="Release" src="https://img.shields.io/badge/Ascotbe-Kernelhub-green"></a>
<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>
<a href="https://github.com/Ascotbe/Kernelhub"><img alt="Release" src="https://img.shields.io/badge/LICENSE-GPL-ff69b4"></a>
Expand All @@ -10,18 +10,6 @@




> 前言
- 制作该项目的初衷是为了,学习、分析、研究最新的内核漏洞不在需要话大量时间去寻找系统以及相关内容
- 本项目是一个提权相关的集合,除测试失败或者未测试的EXP都有详细说明以及演示GIF图
- 如有本项目存在遗漏的CVE漏洞,欢迎提Issues并带上利用代码
- 项目代码禁止在真实环境进行测试!代码的可靠性自行验证,您造成的过失项目作者概不负责

> 协助
项目中暂缺单个文档的英文翻译,如果英文好的小伙伴欢迎提交PR

### 所需环境

- 测试目标系统
Expand Down Expand Up @@ -87,13 +75,3 @@
如您在使用本项目的过程中存在任何非法行为,您需自行承担相应后果,我们将不承担任何法律及连带责任。

在使用本项目前,请您**务必审慎阅读、充分理解各条款内容**,限制、免责条款或者其他涉及您重大权益的条款可能会以加粗、加下划线等形式提示您重点注意。 除非您已充分阅读、完全理解并接受本协议所有条款,否则,请您不要使用本项目。您的使用行为或者您以其他任何明示或者默示方式表示接受本协议的,即视为您已阅读并同意本协议的约束。


### 参考项目&网站

- [windows-kernel-exploits](https://github.com/SecWiki/windows-kernel-exploits)
- [WindowsExploits](https://github.com/abatchy17/WindowsExploits)
- [Exploits](https://github.com/WindowsExploits/Exploits)
- [CVE](https://cve.mitre.org)
- [CVE Details](https://www.cvedetails.com/)

4 changes: 2 additions & 2 deletions docs/Windows/Docs/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let config = {
title: 'Kernelhub',
title: 'Windows',
home: 'Info.md',
repo: 'Ascotbe/Kernelhub',
repo: 'Ascotbe/Kernelhub/Windows',
nav: [
{
title: '简介', path: '/'
Expand Down
24 changes: 1 addition & 23 deletions docs/Windows/EnglishDocs/Info.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 align="center" >Welcome to Kernelhub</h1>
<h1 align="center" ><img src="https://github.com/Ascotbe/Image/blob/master/Kernelhub/Windows.gif?raw=true" alt="giphy" style="zoom:43%;" /></h1>
<p align="center">
<a href="https://github.com/Ascotbe/Kernelhub"><img alt="Release" src="https://img.shields.io/badge/Ascotbe-Kernelhub-green"></a>
<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>
Expand All @@ -8,19 +8,6 @@
<a href="https://github.com/Ascotbe/Medusa"><img alt="Release" src="https://img.shields.io/github/repo-size/Ascotbe/Kernelhub"></a>
</p>



> Preface
- 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.
- This project is a collection of proprietary, except for test failure or unspecified Exp, Demo GIF map
- If there is an omission of the omission of CVE vulnerabilities, please join your issues and bring your use of code.
- 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.

> Assist
In the project, the lack of ordinary order documentation, if English is good, friends welcome to submit PR

### Required environment

- Test target system
Expand Down Expand Up @@ -92,12 +79,3 @@ If you have any illegal behavior in the process of using this project, you need

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.


### Reference project & website

- [windows-kernel-exploits](https://github.com/SecWiki/windows-kernel-exploits)
- [WindowsExploits](https://github.com/abatchy17/WindowsExploits)
- [Exploits](https://github.com/WindowsExploits/Exploits)
- [CVE](https://cve.mitre.org)
- [CVE Details](https://www.cvedetails.com/)

4 changes: 2 additions & 2 deletions docs/Windows/EnglishDocs/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let config = {
title: 'Kernelhub',
title: 'Windows',
home: 'Info.md',
repo: 'Ascotbe/Kernelhub',
repo: 'Ascotbe/Kernelhub/Windows',
nav: [
{
title: 'Introduction', path: '/'
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</head>
<body>
<script>
var latest_version = 'Windows/Docs';
var latest_version = 'Home/Docs';//首页文件夹,用于跳转各个系统位置
var hash = window.location.hash;
if (!hash || hash.length == 0) {
hash = '#/';
Expand Down
1 change: 1 addition & 0 deletions macOS/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
🚧施工中.......

0 comments on commit a57d97b

Please sign in to comment.