From 42b8faf42283f0d761fe2f80b37698d55acc1a0c Mon Sep 17 00:00:00 2001 From: sunbeam0529 Date: Fri, 18 Apr 2025 08:38:26 +0800 Subject: [PATCH] vault backup: 2025-04-18 08:38:25 --- .obsidian/core-plugins.json | 3 ++- .obsidian/workspace.json | 39 +++++++++++++++++++++-------------- 技术/gitlab/数据库.md | 21 +++++++++++++++++++ 技术/python/虚拟环境.md | 7 +++++++ 技术/培训/Boot流程及原理.md | 31 ++++++++++++++++++++++++++++ 技术/破解/centos安装opencl.md | 9 ++++++++ 技术/破解/hashcat.md | 7 +++++++ 7 files changed, 100 insertions(+), 17 deletions(-) create mode 100644 技术/gitlab/数据库.md create mode 100644 技术/python/虚拟环境.md create mode 100644 技术/培训/Boot流程及原理.md create mode 100644 技术/破解/centos安装opencl.md create mode 100644 技术/破解/hashcat.md diff --git a/.obsidian/core-plugins.json b/.obsidian/core-plugins.json index 436f43c..c89a841 100644 --- a/.obsidian/core-plugins.json +++ b/.obsidian/core-plugins.json @@ -26,5 +26,6 @@ "workspaces": false, "file-recovery": true, "publish": false, - "sync": false + "sync": false, + "webviewer": false } \ No newline at end of file diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 6148676..f4e1c02 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -4,24 +4,21 @@ "type": "split", "children": [ { - "id": "1264f9922b3f4518", + "id": "fee09a12cb76f23e", "type": "tabs", "children": [ { - "id": "86a6b4067288b6c1", + "id": "c25621e4a0d45c93", "type": "leaf", "state": { - "type": "canvas", + "type": "markdown", "state": { - "file": "家里/宝宝/需要准备的东西.canvas", - "viewState": { - "x": 633.1666259765625, - "y": 82, - "zoom": 0 - } + "file": "技术/gitlab/数据库.md", + "mode": "source", + "source": false }, - "icon": "lucide-layout-dashboard", - "title": "需要准备的东西" + "icon": "lucide-file", + "title": "数据库" } } ] @@ -43,7 +40,8 @@ "state": { "type": "file-explorer", "state": { - "sortOrder": "alphabetical" + "sortOrder": "alphabetical", + "autoReveal": false }, "icon": "lucide-folder-closed", "title": "文件列表" @@ -159,7 +157,7 @@ } }, { - "id": "8600f43b21caaa96", + "id": "996d18a77bd9f12d", "type": "leaf", "state": { "type": "side-panel-control-view", @@ -173,7 +171,7 @@ } ], "direction": "horizontal", - "width": 336.5 + "width": 326.5 }, "left-ribbon": { "hiddenItems": { @@ -187,9 +185,19 @@ "obsidian-markdown-formatting-assistant-plugin:Open Markdown Formatting Assistant": false } }, - "active": "86a6b4067288b6c1", + "active": "c25621e4a0d45c93", "lastOpenFiles": [ + "技术/破解/hashcat.md", + "技术/破解/centos安装opencl.md", + "技术/gitlab/数据库.md", + "技术/培训/Boot流程及原理.md", + "技术/培训", + "技术/python/虚拟环境.md", "家里/宝宝/需要准备的东西.canvas", + "技术/破解", + "技术/gitlab", + "技术/python", + "技术", "家里/宝宝/未命名.md", "家里/宝宝", "家里", @@ -201,7 +209,6 @@ "Pasted image 20241106105842.png", "Pasted image 20241106105836.png", "公司/座椅调节模块", - "公司", "2024-11-06.md" ] } \ No newline at end of file diff --git a/技术/gitlab/数据库.md b/技术/gitlab/数据库.md new file mode 100644 index 0000000..6cf0898 --- /dev/null +++ b/技术/gitlab/数据库.md @@ -0,0 +1,21 @@ + +连接数据库 +```bash +sudo gitlab-psql +``` + +显示所有用户名密码 +```bash +SELECT id, username, email, encrypted_password FROM users; +``` + +```bash + +``` +```bash +nohup hashcat -m 3200 -a 0 -o ./cracked.txt ./hashes.txt ./name_dir.txt --workload-profile 4 > output.log 2>&1 & +nohup ./hashcat.bin -m 3200 -a 0 -o ../hashdata/cracked.txt ../hashdata/hashes.txt ../hashdata/name_dir.txt --status --status-timer 10 --workload-profile 4 > output.log 2>&1 & +nohup ./hashcat.bin -m 3200 -a 0 -o ../hashdata/cracked.txt ../hashdata/hashes.txt ../hashdata/dictionary.txt --status --status-timer 10 --workload-profile 4 > output.log 2>&1 & +``` +hashcat -m 3200 -a 0 -o ./cracked.txt ./hashes.txt ./name_dir.txt --workload-profile 4 +dictionary.txt \ No newline at end of file diff --git a/技术/python/虚拟环境.md b/技术/python/虚拟环境.md new file mode 100644 index 0000000..255364c --- /dev/null +++ b/技术/python/虚拟环境.md @@ -0,0 +1,7 @@ +创建虚拟环境 +python -m venv .venv +1.进入虚拟环境 +source .venv/bin/activate + +退出虚拟环境 +deactivate \ No newline at end of file diff --git a/技术/培训/Boot流程及原理.md b/技术/培训/Boot流程及原理.md new file mode 100644 index 0000000..1a1a8d9 --- /dev/null +++ b/技术/培训/Boot流程及原理.md @@ -0,0 +1,31 @@ +# 一、基本原理 + +boot_main() -> app_main() + +# 二、MCU上电工作流程 +1. 电压上升触发POR +2. 内部晶振起振稳定 +3. 寄存器等硬件内核初始化 +4. PC指针指向复位中断函数 +5. 执行复位中断向量(初始化代码startup.s) + +# 三、boot代码内容 +1. 跳转APP +2. 校验APP +3. 擦除刷写 +4. 流程图 + +# 四、UDS刷写流程 +1. 读版本 $22 +2. 进boot $10 +3. 解锁 $27 +4. 擦除 $31 +5. 请求下载 $34 +6. 发送数据 $36 +7. 停止发送 $37 +8. 校验 $31 +9. 复位进入APP $11 +# 五、其它 +1. boot标志 +2. flash driver +3. icf文件、map文件 \ No newline at end of file diff --git a/技术/破解/centos安装opencl.md b/技术/破解/centos安装opencl.md new file mode 100644 index 0000000..876bf6c --- /dev/null +++ b/技术/破解/centos安装opencl.md @@ -0,0 +1,9 @@ + +来自github +> https://github.com/intel/compute-runtime/issues/193 + +``` +yum install yum-plugin-copr +yum copr enable jdanecki/intel-opencl +yum install intel-opencl +``` \ No newline at end of file diff --git a/技术/破解/hashcat.md b/技术/破解/hashcat.md new file mode 100644 index 0000000..a7359e6 --- /dev/null +++ b/技术/破解/hashcat.md @@ -0,0 +1,7 @@ + + +继续上次 + +```bash +hashcat.exe --session hashcat --restore +```