Skip to content

Commit

Permalink
Deployed 739275e with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 21, 2024
0 parents commit 48bf90e
Show file tree
Hide file tree
Showing 147 changed files with 158,376 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
2,350 changes: 2,350 additions & 0 deletions 404.html

Large diffs are not rendered by default.

2,500 changes: 2,500 additions & 0 deletions Cyber/Competition/ACM/index.html

Large diffs are not rendered by default.

2,500 changes: 2,500 additions & 0 deletions Cyber/Competition/Blue-Bridge/index.html

Large diffs are not rendered by default.

2,500 changes: 2,500 additions & 0 deletions Cyber/Competition/CTF/index.html

Large diffs are not rendered by default.

2,490 changes: 2,490 additions & 0 deletions Cyber/Competition/index.html

Large diffs are not rendered by default.

2,500 changes: 2,500 additions & 0 deletions Cyber/Organization/Club/index.html

Large diffs are not rendered by default.

2,500 changes: 2,500 additions & 0 deletions Cyber/Organization/Lab/index.html

Large diffs are not rendered by default.

2,500 changes: 2,500 additions & 0 deletions Cyber/Organization/Student-Union/index.html

Large diffs are not rendered by default.

2,490 changes: 2,490 additions & 0 deletions Cyber/Organization/index.html

Large diffs are not rendered by default.

2,490 changes: 2,490 additions & 0 deletions Cyber/Start/index.html

Large diffs are not rendered by default.

2,500 changes: 2,500 additions & 0 deletions Cyber/Study/Grade-Point/index.html

Large diffs are not rendered by default.

2,500 changes: 2,500 additions & 0 deletions Cyber/Study/Professional-Skills/index.html

Large diffs are not rendered by default.

2,490 changes: 2,490 additions & 0 deletions Cyber/Study/index.html

Large diffs are not rendered by default.

2,489 changes: 2,489 additions & 0 deletions Cyber/index.html

Large diffs are not rendered by default.

Binary file added Groups/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Groups/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,488 changes: 2,488 additions & 0 deletions Math/index.html

Large diffs are not rendered by default.

2,675 changes: 2,675 additions & 0 deletions Others/api-examples/index.html

Large diffs are not rendered by default.

2,642 changes: 2,642 additions & 0 deletions Others/dingtalk/index.html

Large diffs are not rendered by default.

2,580 changes: 2,580 additions & 0 deletions Others/eat_error/index.html

Large diffs are not rendered by default.

2,775 changes: 2,775 additions & 0 deletions Others/favorite-website/index.html

Large diffs are not rendered by default.

2,638 changes: 2,638 additions & 0 deletions Others/markdown-examples/index.html

Large diffs are not rendered by default.

Binary file added Start/About/blog.w1ndys.top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,521 changes: 2,521 additions & 0 deletions Start/About/index.html

Large diffs are not rendered by default.

Binary file added Start/About/www.w1ndys.top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,464 changes: 2,464 additions & 0 deletions Start/Agreement/agreement/index.html

Large diffs are not rendered by default.

2,519 changes: 2,519 additions & 0 deletions Start/Authors/index.html

Large diffs are not rendered by default.

Binary file added Start/Data-Submission/image-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Start/Data-Submission/image-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Start/Data-Submission/image-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Start/Data-Submission/image-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Start/Data-Submission/image-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Start/Data-Submission/image-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Start/Data-Submission/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,724 changes: 2,724 additions & 0 deletions Start/Data-Submission/index.html

Large diffs are not rendered by default.

2,524 changes: 2,524 additions & 0 deletions Start/Reward/index.html

Large diffs are not rendered by default.

Binary file added Start/Reward/vxzfb_reward.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Start/Tutorial/image-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Start/Tutorial/image-11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Start/Tutorial/image-12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Start/Tutorial/image-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Start/Tutorial/image-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Start/Tutorial/image-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,786 changes: 2,786 additions & 0 deletions Start/Tutorial/index.html

Large diffs are not rendered by default.

2,567 changes: 2,567 additions & 0 deletions Start/index.html

Large diffs are not rendered by default.

4,808 changes: 4,808 additions & 0 deletions Test/index.html

Large diffs are not rendered by default.

2,544 changes: 2,544 additions & 0 deletions Update/2024-03-08/index.html

Large diffs are not rendered by default.

2,594 changes: 2,594 additions & 0 deletions Update/2024-03-09/index.html

Large diffs are not rendered by default.

2,692 changes: 2,692 additions & 0 deletions Update/2024-03-10/index.html

Large diffs are not rendered by default.

2,560 changes: 2,560 additions & 0 deletions Update/2024-03-11/index.html

Large diffs are not rendered by default.

2,561 changes: 2,561 additions & 0 deletions Update/2024-03-14/index.html

Large diffs are not rendered by default.

2,593 changes: 2,593 additions & 0 deletions Update/2024-03-15/index.html

Large diffs are not rendered by default.

2,565 changes: 2,565 additions & 0 deletions Update/2024-03-16/index.html

Large diffs are not rendered by default.

2,628 changes: 2,628 additions & 0 deletions Update/2024-03-17/index.html

Large diffs are not rendered by default.

2,562 changes: 2,562 additions & 0 deletions Update/2024-03-18/index.html

Large diffs are not rendered by default.

3,106 changes: 3,106 additions & 0 deletions Update/2024-03-23/index.html

Large diffs are not rendered by default.

2,561 changes: 2,561 additions & 0 deletions Update/2024-03-29/index.html

Large diffs are not rendered by default.

2,563 changes: 2,563 additions & 0 deletions Update/2024-03-31/index.html

Large diffs are not rendered by default.

2,560 changes: 2,560 additions & 0 deletions Update/2024-04-02/index.html

Large diffs are not rendered by default.

2,561 changes: 2,561 additions & 0 deletions Update/2024-04-04/index.html

Large diffs are not rendered by default.

2,562 changes: 2,562 additions & 0 deletions Update/2024-04-06/index.html

Large diffs are not rendered by default.

2,561 changes: 2,561 additions & 0 deletions Update/2024-04-09/index.html

Large diffs are not rendered by default.

2,561 changes: 2,561 additions & 0 deletions Update/2024-04-10/index.html

Large diffs are not rendered by default.

2,563 changes: 2,563 additions & 0 deletions Update/2024-04-11/index.html

Large diffs are not rendered by default.

2,544 changes: 2,544 additions & 0 deletions Update/2024-04-17/index.html

Large diffs are not rendered by default.

3,028 changes: 3,028 additions & 0 deletions Update/archive/2024/index.html

Large diffs are not rendered by default.

2,971 changes: 2,971 additions & 0 deletions Update/archive/2024/page/2/index.html

Large diffs are not rendered by default.

Binary file added Update/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2,912 changes: 2,912 additions & 0 deletions Update/index.html

Large diffs are not rendered by default.

2,866 changes: 2,866 additions & 0 deletions Update/page/2/index.html

Large diffs are not rendered by default.

Binary file added Update/探姬.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Update/石蒜.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions _data/site.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
social:
- icon: material-home
link: https://w1ndys.top
name: 作者主页

- icon: fontawesome-brands-qq
link: https://blog.w1ndys.top/html/QQ.html
name: 作者QQ

- icon: material-email
link: mailto:[email protected]
name: 作者邮箱

- icon: fontawesome-brands-github
link: https://github.com/W1ndys
name: 作者Github主页

- icon: fontawesome-solid-blog
link: https://blog.w1ndys.top/
name: 作者博客

- icon: simple-materialformkdocs
name: Material for MkDocs提供搭建文档服务
link: https://squidfunk.github.io-mkdocs-material-

- icon: simple-vercel
link: https://vercel.com/W1ndys
name: Vercel提供部署服务

- icon: simple-netlify
name: Netlify提供部署服务
link: https://www.netlify.com/

- icon: W1ndys-Render
name: Render提供部署服务
link: https://render.com/

- icon: simple-cloudflare
name: Cloudflare提供部署服务
link: https://www.cloudflare.com/

- icon: W1ndys-51la
name: 51la提供统计服务
link: https://v6.51.la/report/overview?comId=416432
2,535 changes: 2,535 additions & 0 deletions api-examples/index.html

Large diffs are not rendered by default.

Binary file added assets/images/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions assets/javascripts/bundle.3220b9d7.min.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions assets/javascripts/bundle.3220b9d7.min.js.map

Large diffs are not rendered by default.

319 changes: 319 additions & 0 deletions assets/javascripts/decrypt-contents.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,319 @@
/* encryptcontent/decrypt-contents.tpl.js */

function base64url_decode(input) {
try {
const binString = atob(input.replace(/-/g, '+').replace(/_/g, '/'));
const binArray = Uint8Array.from(binString, (m) => m.codePointAt(0));
return new TextDecoder().decode(binArray);
}
catch (err) {
return false;
}
}

/* Decrypts the key from the key bundle. */
function decrypt_key(pass, iv_b64, ciphertext_b64, salt_b64) {
let salt = CryptoJS.enc.Base64.parse(salt_b64),
kdfcfg = {keySize: 256 / 32,hasher: CryptoJS.algo.SHA256,iterations: encryptcontent_obfuscate ? 1 : 10000};
let kdfkey = CryptoJS.PBKDF2(pass, salt,kdfcfg);
let iv = CryptoJS.enc.Base64.parse(iv_b64),
ciphertext = CryptoJS.enc.Base64.parse(ciphertext_b64);
let encrypted = {ciphertext: ciphertext},
cfg = {iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7};
let key = CryptoJS.AES.decrypt(encrypted, kdfkey, cfg);

try {
let keystore = JSON.parse(key.toString(CryptoJS.enc.Utf8));
if (encryptcontent_id in keystore) {
return keystore;
} else {
//id not found in keystore
return false;
}
} catch (err) {
// encoding failed; wrong password
return false;
}
};

/* Split key bundle and try to decrypt it */
function decrypt_key_from_bundle(password, ciphertext_bundle, username) {
// grab the ciphertext bundle and try to decrypt it
let user, pass;
let parts, keys, userhash;
if (ciphertext_bundle) {
if (username) {
user = encodeURIComponent(username.toLowerCase());
userhash = CryptoJS.SHA256(user).toString(CryptoJS.enc.Base64);
}
for (let i = 0; i < ciphertext_bundle.length; i++) {
pass = encodeURIComponent(password);
parts = ciphertext_bundle[i].split(';');
if (parts.length == 3) {
keys = decrypt_key(pass, parts[0], parts[1], parts[2]);
if (keys) {

return keys;
}
} else if (parts.length == 4 && username) {
if (parts[3] == userhash) {
keys = decrypt_key(pass, parts[0], parts[1], parts[2]);
if (keys) {

return keys;
}
}
}
}
}
return false;
};

/* Decrypts the content from the ciphertext bundle. */
function decrypt_content(key, iv_b64, ciphertext_b64) {
let iv = CryptoJS.enc.Base64.parse(iv_b64),
ciphertext = CryptoJS.enc.Base64.parse(ciphertext_b64);
let encrypted = {ciphertext: ciphertext},
cfg = {iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7};
let plaintext = CryptoJS.AES.decrypt(encrypted, CryptoJS.enc.Hex.parse(key), cfg);
if(plaintext.sigBytes >= 0) {
try {
return plaintext.toString(CryptoJS.enc.Utf8)
} catch (err) {
// encoding failed; wrong key
return false;
}
} else {
// negative sigBytes; wrong key
return false;
}
};

/* Split cyphertext bundle and try to decrypt it */
function decrypt_content_from_bundle(key, ciphertext_bundle) {
// grab the ciphertext bundle and try to decrypt it
if (ciphertext_bundle) {
let parts = ciphertext_bundle.split(';');
if (parts.length == 2) {
return decrypt_content(key, parts[0], parts[1]);
}
}
return false;
};

/* Save decrypted keystore to sessionStorage */
function setKeys(keys_from_keystore) {
for (const id in keys_from_keystore) {
sessionStorage.setItem(id, keys_from_keystore[id]);
}
};

/* Delete key with specific name in sessionStorage */
function delItemName(key) {
sessionStorage.removeItem(key);
};

function getItemName(key) {
return sessionStorage.getItem(key);
};

/* Reload scripts src after decryption process */
function reload_js(src) {
let script_src, script_tag, new_script_tag;
let head = document.getElementsByTagName('head')[0];

if (src.startsWith('#')) {
script_tag = document.getElementById(src.substr(1));
if (script_tag) {
script_tag.remove();
new_script_tag = document.createElement('script');
if (script_tag.innerHTML) {
new_script_tag.innerHTML = script_tag.innerHTML;
}
if (script_tag.src) {
new_script_tag.src = script_tag.src;
}
if (script_tag.type) {
new_script_tag.type = script_tag.type;
}
head.appendChild(new_script_tag);
}
} else {
if (base_url == '.') {
script_src = src;
} else {
script_src = base_url + '/' + src;
}

script_tag = document.querySelector('script[src="' + script_src + '"]');
if (script_tag) {
script_tag.remove();
new_script_tag = document.createElement('script');
new_script_tag.src = script_src;
head.appendChild(new_script_tag);
}
}
};



/* Decrypt speficique html entry from mkdocs configuration */
function decrypt_somethings(key, encrypted_something) {
var html_item = '';
for (const [name, tag] of Object.entries(encrypted_something)) {
if (tag[1] == 'id') {
html_item = [document.getElementById(name)];
} else if (tag[1] == 'class') {
html_item = document.getElementsByClassName(name);
} else {
console.log('WARNING: Unknow tag html found, check "encrypted_something" configuration.');
}
if (html_item[0]) {
for (let i = 0; i < html_item.length; i++) {
// grab the cipher bundle if something exist
if (html_item[i].style.display == "none") {
let content = decrypt_content_from_bundle(key, html_item[i].innerHTML);
if (content !== false) {
// success; display the decrypted content
html_item[i].innerHTML = content;
html_item[i].style.display = null;
// any post processing on the decrypted content should be done here
}
}
}
}
}
return html_item[0];
};

/* Decrypt content of a page */
function decrypt_action(username_input, password_input, encrypted_content, decrypted_content, key_from_storage=false) {
let key=false;
let keys_from_keystore=false;

let user=false;
if (username_input) {
user = username_input.value;
}

if (key_from_storage !== false) {
key = key_from_storage;
} else {
keys_from_keystore = decrypt_key_from_bundle(password_input.value, encryptcontent_keystore, user);
if (keys_from_keystore) {
key = keys_from_keystore[encryptcontent_id];
}
}

let content = false;
if (key) {
content = decrypt_content_from_bundle(key, encrypted_content.innerHTML);
}
if (content !== false) {
// success; display the decrypted content
decrypted_content.innerHTML = content;
encrypted_content.parentNode.removeChild(encrypted_content);

if (keys_from_keystore !== false) {
return keys_from_keystore
} else {
return key
}
} else {
return false
}
};

function decryptor_reaction(key_or_keys, password_input, decrypted_content, fallback_used=false) {
if (key_or_keys) {
let key;
if (typeof key_or_keys === "object") {
key = key_or_keys[encryptcontent_id];
setKeys(key_or_keys);

} else {
key = key_or_keys;
}

// continue to decrypt others parts

if (typeof inject_something !== 'undefined') {
decrypted_content = decrypt_somethings(key, inject_something);
}
if (typeof delete_something !== 'undefined') {
let el = document.getElementById(delete_something)
if (el) {
el.remove();
}
}

// any post processing on the decrypted content should be done here
if (typeof MathJax === 'object') { MathJax.typesetPromise();};



if (typeof theme_run_after_decryption !== 'undefined') {
theme_run_after_decryption();
}
if (window.location.hash) { //jump to anchor if hash given after decryption
window.location.href = window.location.hash;
}
} else {
// remove item on sessionStorage if decryption process fail (Invalid item)
if (!fallback_used) {
if (!encryptcontent_obfuscate) {
// create HTML element for the inform message
let mkdocs_decrypt_msg = document.getElementById('mkdocs-decrypt-msg');
mkdocs_decrypt_msg.textContent = decryption_failure_message;
password_input.value = '';
password_input.focus();
}
}
delItemName(encryptcontent_id);
}
}

/* Trigger decryption process */
function init_decryptor() {
let username_input = document.getElementById('mkdocs-content-user');
let password_input = document.getElementById('mkdocs-content-password');
// adjust password field width to placeholder length
//if (password_input.hasAttribute('placeholder')) {
// password_input.setAttribute('size', password_input.getAttribute('placeholder').length);
//}
let encrypted_content = document.getElementById('mkdocs-encrypted-content');
let decrypted_content = document.getElementById('mkdocs-decrypted-content');
let content_decrypted;
/* If remember_keys is set, try to use sessionStorage item to decrypt content when page is loaded */
let key_from_storage = getItemName(encryptcontent_id);
if (key_from_storage) {
content_decrypted = decrypt_action(
username_input, password_input, encrypted_content, decrypted_content, key_from_storage
);

decryptor_reaction(content_decrypted, password_input, decrypted_content, true);
}


/* Default, try decrypt content when key enter is press */
password_input.addEventListener('keypress', function(event) {
if (event.key === "Enter") {
event.preventDefault();
content_decrypted = decrypt_action(
username_input, password_input, encrypted_content, decrypted_content
);
decryptor_reaction(content_decrypted, password_input, decrypted_content);
}
});
}
if (typeof base_url === 'undefined') {
var base_url = JSON.parse(document.getElementById('__config').textContent).base;
}
if (document.readyState === "loading") {
// Loading hasn't finished yet
document.addEventListener("DOMContentLoaded", init_decryptor);
} else {
// `DOMContentLoaded` has already fired
init_decryptor();
}
window["init_decryptor"] = init_decryptor;
1 change: 1 addition & 0 deletions assets/javascripts/glightbox.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/javascripts/lunr/min/lunr.ar.min.js

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions assets/javascripts/lunr/min/lunr.da.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 48bf90e

Please sign in to comment.