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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
小众软件
小众软件
MongoDB | Blog
MongoDB | Blog
Jina AI
Jina AI
G
Google Developers Blog
H
Help Net Security
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
The GitHub Blog
The GitHub Blog
Y
Y Combinator Blog
爱范儿
爱范儿
B
Blog
云风的 BLOG
云风的 BLOG
H
Hackread – Cybersecurity News, Data Breaches, AI and More
GbyAI
GbyAI
博客园 - 叶小钗
aimingoo的专栏
aimingoo的专栏
Blog — PlanetScale
Blog — PlanetScale
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
博客园_首页
Google DeepMind News
Google DeepMind News
M
MIT News - Artificial intelligence

ABB00717

HTB - SpeedNet PHP Filter to RCE Redis HTB - Pollution HTB - Pollution 工具 常見服務 HTB - BroScience HTB - BroScience 滲透筆記 HTB - Imagery HTB - Imagery HTB - Reset HTB - Reset HTB - Trick HTB - Trick HTB - Editorial HTB - Editorial 150. Evaluate Reverse Polish Notation droopescan 安裝找不到 module imp 解決「桌面背景被當成一個視窗不斷重新彈出並覆蓋其他視窗」的問題 桌面不斷彈出覆蓋其他視窗 medusa 找不到 ssh module 中文文案排版指北 BugBounty Playbook 小知識 透過 Ubuntu 26 設定 Windows 11 雙系統並使用 Image Recovery 之踩坑全紀錄 透過 Ubuntu 26 設定 Windows 11 雙系統並使用 Image Recovery 之踩坑全紀錄 清除 git history 中的機敏資料 編譯器筆記
如何把爛爛的 shell 升級成好用的 TTY
2026-08-30 · via ABB00717

閱讀時間約 1 分鐘

打滲透必學的技能之一。你有幾個方法可以叫出 bash

  • python3 -c 'import pty; pty.spawn("/bin/bash")'
  • /bin/bash -i
  • vim -c ':!/bin/bash'
  • /usr/bin/script -qc /bin/bash /dev/null

接著:

svc@busqueda:/var/www/app$ python3 -c 'import pty; pty.spawn("/bin/bash")'

svc@busqueda:/var/www/app$ ^Z
[1]+  Stopped                    nc -lvnp 443

$ stty raw -echo && fg

# 在自己的 Terminal 檢查 `stty -a`

svc@busqueda:/var/www/app$ stty rows 43 columns 182
svc@busqueda:/var/www/app$ export TERM=xterm

詳細的原理在 0xdf 的影片中都有解釋了,有興趣可以直接去看: