更新完善网页逻辑,工具迁移至html逻辑
This commit is contained in:
1 parent
c3bfce7afb
commit
646754c04d
26 files changed
+1606
-167
No files matched your search
+20
-16
@@ -1,18 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* func/av.php —— 杀软识别
|
||||
* 粘贴 tasklist 输出 → 匹配 data/avlist.js 进程表 → 表格输出 + 统计
|
||||
*/
|
||||
$P = '../';
|
||||
require_once dirname(__DIR__) . '/includes/layout.php';
|
||||
require_once __DIR__ . '/_bar.php';
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="renderer" content="webkit">
|
||||
<script>(function(){var t;try{t=localStorage.getItem("hp-theme")}catch(e){}if(!t){t=(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)?"dark":"light"}document.documentElement.setAttribute("data-theme",t);})();</script>
|
||||
<title>杀软识别</title>
|
||||
<link rel="icon" href="../assets/img/logo.svg">
|
||||
<link rel="stylesheet" href="../assets/css/common.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="func-bar"><div class="wrap func-bar-inner">
|
||||
<a class="btn btn-sm js-fb-back" href="index.php" title="返回功能区首页">← 返回功能区首页</a>
|
||||
<span class="func-bar-title">杀软识别</span>
|
||||
<a class="btn btn-sm" href="../index.php">首页</a>
|
||||
</div></div>
|
||||
|
||||
layout_head('杀软识别');
|
||||
func_bar('杀软识别');
|
||||
?>
|
||||
<main class="page-main">
|
||||
<div class="wrap page-body">
|
||||
<div class="panel-card">
|
||||
<p class="tip" style="margin-top:0">🔒 粘贴的 tasklist 输出仅在本机浏览器内解析匹配,不会上传服务器;如需离线独立使用,请将 <code>data/avlist.js</code> 一并拷贝。</p>
|
||||
<h2>使用说明</h2>
|
||||
<p class="tip">在目标机器执行 <code>tasklist</code> 复制全部输出,粘贴到下方输入框后点击“识别”。
|
||||
系统会逐行解析进程名并与预置的安全软件进程表(data/avlist.js)进行大小写不敏感匹配,<strong>表格仅展示识别出的安全软件进程</strong>,常规进程不展示。</p>
|
||||
@@ -37,8 +44,8 @@ func_bar('杀软识别');
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php layout_theme_fab(); ?>
|
||||
<?php layout_footer(); ?>
|
||||
<button type="button" class="theme-fab js-theme-btn" title="切换昼夜模式" aria-label="切换昼夜模式"><span class="js-theme-icon"></span></button>
|
||||
<button type="button" class="theme-fab to-top js-to-top" title="返回顶部" aria-label="返回顶部">↑</button>
|
||||
<script src="../data/avlist.js"></script>
|
||||
<script src="../assets/js/common.js"></script>
|
||||
<script>
|
||||
@@ -52,7 +59,6 @@ func_bar('杀软识别');
|
||||
for (var i = 0; i < lines.length; i++) {
|
||||
var line = lines[i].trim();
|
||||
if (!line) continue;
|
||||
// 跳过表头与分隔行
|
||||
if (/映像名称|Image Name|进程名|PID|===/i.test(line) && !/\d$/.test(line.trim())) continue;
|
||||
var name = line.split(/[\s,]+/)[0];
|
||||
if (!name) continue;
|
||||
@@ -99,7 +105,6 @@ func_bar('杀软识别');
|
||||
}
|
||||
var body = $('avBody');
|
||||
body.innerHTML = '';
|
||||
// 仅保留识别(命中安全软件进程表)的行
|
||||
var matched = [];
|
||||
rows.forEach(function (r) {
|
||||
var info = lookup(r.name);
|
||||
@@ -132,7 +137,6 @@ func_bar('杀软识别');
|
||||
$('avMsg').innerHTML = '';
|
||||
$('taskInput').focus();
|
||||
});
|
||||
// 输入内容后可用 Ctrl/Cmd + Enter 快速识别
|
||||
$('taskInput').addEventListener('keydown', function (ev) {
|
||||
if (ev.key === 'Enter' && (ev.ctrlKey || ev.metaKey)) run();
|
||||
});
|
||||
@@ -1,19 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* func/codec.php —— 编码 / 加解密工具
|
||||
* Base64 / Base32 / URL / Unicode(支持中文与 emoji)双向;MD5 / SHA-1/224/256/384/512 哈希。
|
||||
* 输入输出文本区均可自由编辑、可竖向拉伸。
|
||||
*/
|
||||
$P = '../';
|
||||
require_once dirname(__DIR__) . '/includes/layout.php';
|
||||
require_once __DIR__ . '/_bar.php';
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="renderer" content="webkit">
|
||||
<script>(function(){var t;try{t=localStorage.getItem("hp-theme")}catch(e){}if(!t){t=(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)?"dark":"light"}document.documentElement.setAttribute("data-theme",t);})();</script>
|
||||
<title>编码 / 加解密</title>
|
||||
<link rel="icon" href="../assets/img/logo.svg">
|
||||
<link rel="stylesheet" href="../assets/css/common.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="func-bar"><div class="wrap func-bar-inner">
|
||||
<a class="btn btn-sm js-fb-back" href="index.php" title="返回功能区首页">← 返回功能区首页</a>
|
||||
<span class="func-bar-title">编码 / 加解密</span>
|
||||
<a class="btn btn-sm" href="../index.php">首页</a>
|
||||
</div></div>
|
||||
|
||||
layout_head('编码 / 加解密');
|
||||
func_bar('编码 / 加解密');
|
||||
?>
|
||||
<main class="page-main">
|
||||
<div class="wrap page-body">
|
||||
<div class="panel-card">
|
||||
<p class="tip" style="margin-top:0">🔒 本页全部运算均在浏览器本地完成,粘贴的文本不会上传到任何服务器,可放心处理大段内容。MD5 / SHA-224 在无内置加密库时需联网加载组件(仅下载代码,不含你的内容)。</p>
|
||||
<div class="field-row" style="align-items:center">
|
||||
<label class="fl" style="margin:0" for="selAlgo">算法</label>
|
||||
<select id="selAlgo">
|
||||
@@ -58,8 +64,8 @@ func_bar('编码 / 加解密');
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php layout_theme_fab(); ?>
|
||||
<?php layout_footer(); ?>
|
||||
<button type="button" class="theme-fab js-theme-btn" title="切换昼夜模式" aria-label="切换昼夜模式"><span class="js-theme-icon"></span></button>
|
||||
<button type="button" class="theme-fab to-top js-to-top" title="返回顶部" aria-label="返回顶部">↑</button>
|
||||
<script src="../assets/js/common.js"></script>
|
||||
<script src="../assets/js/codec.js"></script>
|
||||
<script>
|
||||
@@ -1,21 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* func/gmcodec.php —— 国密加解密
|
||||
* SM2 非对称加解密 / SM3 摘要 / SM4 对称加解密。
|
||||
* 说明:SM1 为国密硬件算法(不公开、依赖专用芯片),无法在浏览器纯软件实现,故未提供。
|
||||
*/
|
||||
$P = '../';
|
||||
require_once dirname(__DIR__) . '/includes/layout.php';
|
||||
require_once __DIR__ . '/_bar.php';
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="renderer" content="webkit">
|
||||
<script>(function(){var t;try{t=localStorage.getItem("hp-theme")}catch(e){}if(!t){t=(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)?"dark":"light"}document.documentElement.setAttribute("data-theme",t);})();</script>
|
||||
<title>国密加解密</title>
|
||||
<link rel="icon" href="../assets/img/logo.svg">
|
||||
<link rel="stylesheet" href="../assets/css/common.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="func-bar"><div class="wrap func-bar-inner">
|
||||
<a class="btn btn-sm js-fb-back" href="index.php" title="返回功能区首页">← 返回功能区首页</a>
|
||||
<span class="func-bar-title">国密加解密</span>
|
||||
<a class="btn btn-sm" href="../index.php">首页</a>
|
||||
</div></div>
|
||||
|
||||
layout_head('国密加解密');
|
||||
func_bar('国密加解密');
|
||||
?>
|
||||
<main class="page-main">
|
||||
<div class="wrap page-body">
|
||||
<div class="panel-card">
|
||||
<p class="tip" style="margin-top:0">支持 SM2 / SM3 / SM4 三种国密算法;SM1 为不公开的硬件算法(需国密芯片),无法纯软件实现。
|
||||
SM2/SM4 运算依赖在线加载 <code>sm-crypto</code> 组件(双 CDN),加载失败会明确提示。</p>
|
||||
<p class="tip" style="margin-top:0">🔒 SM2 / SM3 / SM4 运算全部在本机浏览器完成,明文 / 密钥 / 密文不会上传服务器。算法组件优先加载本地 <code>assets/js/sm-crypto/</code> 下的 <code>sm2.js / sm3.js / sm4.js</code>,未找到时自动回退公共 CDN(仅加载代码,不含你的内容)。</p>
|
||||
<p class="tip" style="margin-top:0">支持 SM2 / SM3 / SM4 三种国密算法;SM1 为不公开的硬件算法(需国密芯片),无法纯软件实现。</p>
|
||||
|
||||
<div class="field-row" style="align-items:center;margin-top:12px">
|
||||
<label class="fl" style="margin:0" for="gmAlgo">算法</label>
|
||||
@@ -69,7 +74,7 @@ func_bar('国密加解密');
|
||||
</div>
|
||||
|
||||
<!-- SM3 提示区 -->
|
||||
<div id="gmSm3Tip" class="tip" hidden style="margin-top:8px">SM3 输出固定 64 位十六进制摘要(HMAC 场景暂不提供,如需请使用后台维护的其它方案)。</div>
|
||||
<div id="gmSm3Tip" class="tip" hidden style="margin-top:8px">SM3 输出固定 64 位十六进制摘要(HMAC 场景暂不提供)。</div>
|
||||
|
||||
<div id="gmMsg"></div>
|
||||
</div>
|
||||
@@ -93,8 +98,8 @@ func_bar('国密加解密');
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php layout_theme_fab(); ?>
|
||||
<?php layout_footer(); ?>
|
||||
<button type="button" class="theme-fab js-theme-btn" title="切换昼夜模式" aria-label="切换昼夜模式"><span class="js-theme-icon"></span></button>
|
||||
<button type="button" class="theme-fab to-top js-to-top" title="返回顶部" aria-label="返回顶部">↑</button>
|
||||
<script src="../assets/js/common.js"></script>
|
||||
<script src="../assets/js/gmcrypto.js"></script>
|
||||
<script>
|
||||
+38
-24
@@ -1,27 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* func/ip.php —— IP 地址处理
|
||||
* 提取输入文本 / 上传文本文件中的全部 IPv4,按 /24 段聚合输出纯文本结果:
|
||||
* IP段 发现数量(段内去重IP数) IP段性质 出现次数
|
||||
* 1.2.3.0/24 8 公网 56
|
||||
* 1.2.3.4 出现次数
|
||||
*
|
||||
* 出现次数:具体 IP 为其在原文中的出现总次数;段行出现次数为段内全部 IP 次数之和。
|
||||
* 段默认按出现次数从高到低排列,命中「重点匹配 IP」的段优先置顶。
|
||||
* 段性质区分:内网(含保留)/ CDN / 公网;IPv6 暂不参与。
|
||||
* 支持上传常见文本格式文件(txt / json / log / md / csv / conf / ini)自动载入,
|
||||
* 支持将结果导出为 UTF-8 TXT 文件。
|
||||
*/
|
||||
$P = '../';
|
||||
require_once dirname(__DIR__) . '/includes/layout.php';
|
||||
require_once __DIR__ . '/_bar.php';
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="renderer" content="webkit">
|
||||
<script>(function(){var t;try{t=localStorage.getItem("hp-theme")}catch(e){}if(!t){t=(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)?"dark":"light"}document.documentElement.setAttribute("data-theme",t);})();</script>
|
||||
<title>IP 地址处理</title>
|
||||
<link rel="icon" href="../assets/img/logo.svg">
|
||||
<link rel="stylesheet" href="../assets/css/common.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="func-bar"><div class="wrap func-bar-inner">
|
||||
<a class="btn btn-sm js-fb-back" href="index.php" title="返回功能区首页">← 返回功能区首页</a>
|
||||
<span class="func-bar-title">IP 地址处理</span>
|
||||
<a class="btn btn-sm" href="../index.php">首页</a>
|
||||
</div></div>
|
||||
|
||||
layout_head('IP 地址处理');
|
||||
func_bar('IP 地址处理');
|
||||
?>
|
||||
<main class="page-main">
|
||||
<div class="wrap page-body">
|
||||
<div class="panel-card">
|
||||
<p class="tip" style="margin-top:0">🔒 粘贴的日志 / 上传的文本文件<b>全部在本机浏览器内解析</b>,不会上传到服务器,可放心处理大文件(≤ 20MB 由浏览器本地读取)。</p>
|
||||
<h2>使用说明</h2>
|
||||
<p class="tip">粘贴任意日志 / 文本,或直接<b>上传文本文件</b>(txt / json / log / md / csv / conf / ini,≤ 20MB),
|
||||
系统提取其中全部 <strong>IPv4</strong>(IPv6 暂不参与),按 <strong>/24 段</strong>聚合:
|
||||
@@ -56,15 +54,31 @@ func_bar('IP 地址处理');
|
||||
</div>
|
||||
<div id="ipPreview" class="ip-pre"></div>
|
||||
<p class="tip" id="ipStat" style="margin:8px 0"></p>
|
||||
<p class="tip">段行为 <code>IP段 / 发现数量 / 性质 / 出现次数</code>(出现次数为段内全部 IP 原文出现次数之和);具体 IP 行为 <code>IP / 出现次数</code>。段按出现次数降序排列,含重点 IP 的段置顶;复制或导出的纯文本不含颜色。若 /24 段内混有不同性质,按数量多者标注“xx为主(混合)”。</p>
|
||||
<p class="tip">段行为 <code>IP段 / 发现数量 / 性质 / 出现次数</code>(出现次数为段内全部 IP 原文出现次数之和);具体 IP 行为 <code>IP / 出现次数</code>。段按出现次数降序排列,含重点 IP 的段置顶;复制或导出的纯文本不含颜色。若 /24 段内混有不同性质,按数量多者标注“xx为主(混合)”。CDN 段库为页面内置默认,可用文本编辑器在本 HTML 文件的 <code>ipCdnRaw</code> 中增补厂商。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php layout_theme_fab(); ?>
|
||||
<?php layout_footer(); ?>
|
||||
<textarea id="ipCdnRaw" hidden><?= he(cdn_ranges_text()) ?></textarea>
|
||||
<textarea id="ipCdnRaw" hidden># 内置默认:Cloudflare 官方 IPv4 段(可在本 HTML 的 ipCdnRaw 内补充其它厂商,每行:CIDR + 空格 + 厂商名;# 开头为注释)
|
||||
103.21.244.0/22 Cloudflare
|
||||
103.22.200.0/22 Cloudflare
|
||||
103.31.4.0/22 Cloudflare
|
||||
104.16.0.0/13 Cloudflare
|
||||
104.24.0.0/14 Cloudflare
|
||||
108.162.192.0/18 Cloudflare
|
||||
131.0.72.0/22 Cloudflare
|
||||
141.101.64.0/18 Cloudflare
|
||||
162.158.0.0/15 Cloudflare
|
||||
172.64.0.0/13 Cloudflare
|
||||
173.245.48.0/20 Cloudflare
|
||||
188.114.96.0/20 Cloudflare
|
||||
190.93.240.0/20 Cloudflare
|
||||
197.234.240.0/22 Cloudflare
|
||||
198.41.128.0/17 Cloudflare</textarea>
|
||||
|
||||
<button type="button" class="theme-fab js-theme-btn" title="切换昼夜模式" aria-label="切换昼夜模式"><span class="js-theme-icon"></span></button>
|
||||
<button type="button" class="theme-fab to-top js-to-top" title="返回顶部" aria-label="返回顶部">↑</button>
|
||||
<script src="../assets/js/common.js"></script>
|
||||
<script src="../assets/js/ip.js"></script>
|
||||
</body>
|
||||
@@ -1,18 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* func/password.php —— 随机密码生成
|
||||
* 字符集多选 + 自定义字符集 + 长度 + 一次生成多组 + 复制
|
||||
*/
|
||||
$P = '../';
|
||||
require_once dirname(__DIR__) . '/includes/layout.php';
|
||||
require_once __DIR__ . '/_bar.php';
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="renderer" content="webkit">
|
||||
<script>(function(){var t;try{t=localStorage.getItem("hp-theme")}catch(e){}if(!t){t=(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)?"dark":"light"}document.documentElement.setAttribute("data-theme",t);})();</script>
|
||||
<title>随机密码生成</title>
|
||||
<link rel="icon" href="../assets/img/logo.svg">
|
||||
<link rel="stylesheet" href="../assets/css/common.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="func-bar"><div class="wrap func-bar-inner">
|
||||
<a class="btn btn-sm js-fb-back" href="index.php" title="返回功能区首页">← 返回功能区首页</a>
|
||||
<span class="func-bar-title">随机密码生成</span>
|
||||
<a class="btn btn-sm" href="../index.php">首页</a>
|
||||
</div></div>
|
||||
|
||||
layout_head('随机密码生成');
|
||||
func_bar('随机密码生成');
|
||||
?>
|
||||
<main class="page-main">
|
||||
<div class="wrap page-body">
|
||||
<div class="panel-card">
|
||||
<p class="tip" style="margin-top:0">🔒 密码在本机浏览器内随机生成,不会上传服务器,生成后请妥善保存。</p>
|
||||
<div class="field-row">
|
||||
<label class="seg-check"><input type="checkbox" id="ckUpper" checked> 大写 A-Z</label>
|
||||
<label class="seg-check"><input type="checkbox" id="ckLower" checked> 小写 a-z</label>
|
||||
@@ -39,8 +46,8 @@ func_bar('随机密码生成');
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php layout_theme_fab(); ?>
|
||||
<?php layout_footer(); ?>
|
||||
<button type="button" class="theme-fab js-theme-btn" title="切换昼夜模式" aria-label="切换昼夜模式"><span class="js-theme-icon"></span></button>
|
||||
<button type="button" class="theme-fab to-top js-to-top" title="返回顶部" aria-label="返回顶部">↑</button>
|
||||
<script src="../assets/js/common.js"></script>
|
||||
<script>
|
||||
(function () {
|
||||
@@ -78,7 +85,6 @@ func_bar('随机密码生成');
|
||||
|
||||
function genOne(chars, len) {
|
||||
var out = '';
|
||||
// 确保自定义字符集大小时每个字符都可能出现
|
||||
for (var i = 0; i < len; i++) {
|
||||
out += chars.charAt(randInt(chars.length));
|
||||
}
|
||||
@@ -108,7 +114,7 @@ func_bar('随机密码生成');
|
||||
var line = document.createElement('div');
|
||||
line.className = 'pwd-line';
|
||||
var code = document.createElement('code');
|
||||
code.textContent = pwd; // 用 textContent 写入,避免 HTML 注入
|
||||
code.textContent = pwd;
|
||||
var copyBtn = document.createElement('button');
|
||||
copyBtn.type = 'button';
|
||||
copyBtn.className = 'btn btn-sm js-copy';
|
||||
@@ -1,20 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* func/persist.php —— 辅助维权(教学辅助)
|
||||
* 仅面向内网教学 / 授权实验环境。三个模块:
|
||||
* 1) 反弹 Shell 构建:输入监听 IP / 端口,按 Linux / Windows 目标机分别生成三类语句
|
||||
* (普通反弹 / Python 动态 Shell / Base64 编码版本);
|
||||
* 2) Windows 辅助:SAM、SYSTEM 注册表配置单元提取、mimikatz 常用命令与票据提取参考;
|
||||
* 3) Linux 自启服务:输入执行文件绝对路径,生成 systemd(高版本)或 init.d(低版本)
|
||||
* 可编辑配置,默认不产生 / 不落盘日志且崩溃自动重启。
|
||||
*/
|
||||
$P = '../';
|
||||
require_once dirname(__DIR__) . '/includes/layout.php';
|
||||
require_once __DIR__ . '/_bar.php';
|
||||
|
||||
layout_head('辅助维权');
|
||||
func_bar('辅助维权');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="renderer" content="webkit">
|
||||
<script>(function(){var t;try{t=localStorage.getItem("hp-theme")}catch(e){}if(!t){t=(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)?"dark":"light"}document.documentElement.setAttribute("data-theme",t);})();</script>
|
||||
<title>辅助维权</title>
|
||||
<link rel="icon" href="../assets/img/logo.svg">
|
||||
<link rel="stylesheet" href="../assets/css/common.css">
|
||||
<style>
|
||||
.p-sec { margin-top: 16px; }
|
||||
.p-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
|
||||
@@ -24,9 +17,18 @@ func_bar('辅助维权');
|
||||
.b64-note { font-size: 12px; color: var(--text-3); margin: 6px 0 4px; }
|
||||
.p-sec code, .tip code { font-family: Consolas, Menlo, monospace; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="func-bar"><div class="wrap func-bar-inner">
|
||||
<a class="btn btn-sm js-fb-back" href="index.php" title="返回功能区首页">← 返回功能区首页</a>
|
||||
<span class="func-bar-title">辅助维权</span>
|
||||
<a class="btn btn-sm" href="../index.php">首页</a>
|
||||
</div></div>
|
||||
|
||||
<main class="page-main">
|
||||
<div class="wrap page-body">
|
||||
<div class="panel-card">
|
||||
<p class="tip" style="margin-top:0">🔒 全部配置 / 命令均由本机浏览器本地生成,输入内容不会上传服务器。</p>
|
||||
<h2>辅助维权 · 教学辅助</h2>
|
||||
<p class="tip">本工具<b>仅供内网教学 / 授权实验环境使用</b>,请勿用于任何未经授权的真实目标。
|
||||
三类输出全部在浏览器本地生成:① <b>反弹 Shell 构建</b>(Linux / Windows 目标机,含普通、Python 动态与 Base64 编码版本);
|
||||
@@ -166,8 +168,8 @@ mimikatz.exe "kerberos::ptt 1-40a0000-xxx.kirbi" exit
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php layout_theme_fab(); ?>
|
||||
<?php layout_footer(); ?>
|
||||
<button type="button" class="theme-fab js-theme-btn" title="切换昼夜模式" aria-label="切换昼夜模式"><span class="js-theme-icon"></span></button>
|
||||
<button type="button" class="theme-fab to-top js-to-top" title="返回顶部" aria-label="返回顶部">↑</button>
|
||||
<script src="../assets/js/common.js"></script>
|
||||
<script src="../assets/js/persist.js"></script>
|
||||
</body>
|
||||
@@ -1,18 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* func/qrcode.php —— 二维码生成器
|
||||
* 使用 qrcodejs(CDN 双源加载);支持尺寸调节、放大预览与 PNG 下载。
|
||||
*/
|
||||
$P = '../';
|
||||
require_once dirname(__DIR__) . '/includes/layout.php';
|
||||
require_once __DIR__ . '/_bar.php';
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="renderer" content="webkit">
|
||||
<script>(function(){var t;try{t=localStorage.getItem("hp-theme")}catch(e){}if(!t){t=(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)?"dark":"light"}document.documentElement.setAttribute("data-theme",t);})();</script>
|
||||
<title>二维码生成器</title>
|
||||
<link rel="icon" href="../assets/img/logo.svg">
|
||||
<link rel="stylesheet" href="../assets/css/common.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="func-bar"><div class="wrap func-bar-inner">
|
||||
<a class="btn btn-sm js-fb-back" href="index.php" title="返回功能区首页">← 返回功能区首页</a>
|
||||
<span class="func-bar-title">二维码生成器</span>
|
||||
<a class="btn btn-sm" href="../index.php">首页</a>
|
||||
</div></div>
|
||||
|
||||
layout_head('二维码生成器');
|
||||
func_bar('二维码生成器');
|
||||
?>
|
||||
<main class="page-main">
|
||||
<div class="wrap page-body">
|
||||
<div class="panel-card">
|
||||
<p class="tip" style="margin-top:0">🔒 二维码内容仅在本机浏览器内编码,不会上传服务器。组件优先加载本地 <code>assets/js/qrcode.min.js</code>,未找到时自动回退公共 CDN(仅加载代码,不含你的内容)。</p>
|
||||
<div class="field-row">
|
||||
<input type="text" id="qrText" placeholder="输入需要生成二维码的内容,如网址 / 文本…" style="flex:1;min-width:260px">
|
||||
<button type="button" class="btn btn-primary" id="qrGen">生成二维码</button>
|
||||
@@ -35,15 +42,16 @@ func_bar('二维码生成器');
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php layout_theme_fab(); ?>
|
||||
<?php layout_footer(); ?>
|
||||
<button type="button" class="theme-fab js-theme-btn" title="切换昼夜模式" aria-label="切换昼夜模式"><span class="js-theme-icon"></span></button>
|
||||
<button type="button" class="theme-fab to-top js-to-top" title="返回顶部" aria-label="返回顶部">↑</button>
|
||||
<script src="../assets/js/common.js"></script>
|
||||
<script>
|
||||
(function () {
|
||||
'use strict';
|
||||
var CDNS = [
|
||||
'https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js',
|
||||
'https://cdn.jsdelivr.net/npm/qrcodejs@1.0.0/qrcode.min.js'
|
||||
'../assets/js/qrcode.min.js', // 本地内置(离线可用)
|
||||
'https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js', // 回退 1
|
||||
'https://cdn.jsdelivr.net/npm/qrcodejs@1.0.0/qrcode.min.js' // 回退 2
|
||||
];
|
||||
function $(id) { return document.getElementById(id); }
|
||||
|
||||
@@ -52,7 +60,7 @@ func_bar('二维码生成器');
|
||||
var idx = 0;
|
||||
(function next() {
|
||||
if (window.QRCode) { cb(null); return; }
|
||||
if (idx >= CDNS.length) { cb(new Error('二维码组件加载失败,请检查网络后重试')); return; }
|
||||
if (idx >= CDNS.length) { cb(new Error('二维码组件加载失败,请检查网络后重试,或将 qrcode.min.js 放入 assets/js/ 目录离线使用')); return; }
|
||||
var s = document.createElement('script');
|
||||
s.src = CDNS[idx++];
|
||||
s.onload = function () { cb(window.QRCode ? null : new Error('二维码组件加载失败')); };
|
||||
@@ -69,7 +77,7 @@ func_bar('二维码生成器');
|
||||
if (!value) { msg.innerHTML = '<div class="err-msg">请输入内容。</div>'; $('qrText').focus(); return; }
|
||||
loadQR(function (err) {
|
||||
if (err) { msg.innerHTML = '<div class="err-msg">' + err.message + '</div>'; return; }
|
||||
if ($('qrText').value.trim() !== value) return; // 期间内容已变
|
||||
if ($('qrText').value.trim() !== value) return;
|
||||
var size = parseInt($('qrSize').value, 10);
|
||||
var box = $('qrBox');
|
||||
box.innerHTML = '';
|
||||
Reference in new issue
Block a user