Spawning a TTY Shell
来源:互联网 发布:nginx epoll 编辑:程序博客网 时间:2024/04/27 12:39
原文地址:
netsec.ws/?p=337
Often during pen tests you may obtain a shell without having tty, yet wish to interact further with the system. Here are some commands which will allow you to spawn a tty shell. Obviously some of this will depend on the system environment and installed packages.
Shell Spawning
若已经安装python
python -c 'import pty; pty.spawn("/bin/sh")'
在python的交互式命令行中
>>> import os; os.system('/bin/bash')
进入sh交互式命令行
/bin/sh -i
这前三个最常见!!!
0 0
- Spawning a TTY Shell
- TTY
- tty
- tty
- tty
- TTY
- tty
- tty
- TTY
- TTY
- A soft watchdog of tty driver
- 常用shell命令:rsh-crontab-email-ed-tty--ymatch$
- 关于终端,tty,shell之间的定义区别和关系
- 控制台,终端,虚拟终端,tty,shell等概念的区别
- shell中的特殊文件:/dev/null与/dev/tty
- 控制台,终端,虚拟终端,tty,shell等概念的区别
- 控制台,终端,虚拟终端,tty,shell等概念的区别
- 终端、虚拟终端、shell、控制台、tty的区别
- java中String、StringBuffer、StringBuilder的区别
- AsSystemRum 系统提权工具 实现思路及其源码
- python:字符串中的转义字符
- stm32f4 - 启动过程
- PackageKit概述
- Spawning a TTY Shell
- 一个据说第一次接触都会做错的Java面试题和类加载器的介绍
- 一个有意思的题目:单循环实现乘法表
- [ACM湖南省赛] CSU 1806 动态最短路的积分
- UVa 10976 Fraction Again?! 分数拆解 (例题7-3)
- 51单片机 指纹模块 波特率问题解决和命令分析2
- stl remove 和 erase
- cf437C The Child and Toy 贪心
- emplace_back() 和 push_back 的区别