httpbin - 协议调试工具
httpstatuses - 协议状态码查询
httpie - cURL-like tool for humans
Fiddler
chackchackGO
V2EX  ›  HTTP

什么工具适合方便的发送原始 HTTP 包?

  •  
  •   chackchackGO · Jan 3, 2024 · 2965 views
    This topic created in 882 days ago, the information mentioned may be changed or developed.

    例如

    POST /jars/upload HTTP/1.1
    Host: localhost:8081
    Accept-Encoding: gzip, deflate
    Accept: */*
    Accept-Language: en
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
    Connection: close
    Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryoZ8meKnrrso89R6Y
    Content-Length: 187
    
    ------WebKitFormBoundaryoZ8meKnrrso89R6Y
    Content-Disposition: form-data; name="jarfile"; filename="../../../../../../tmp/success"
    
    success
    ------WebKitFormBoundaryoZ8meKnrrso89R6Y--
    

    这样一段 HTTP 包,无论用 postman ,postwoman, curl 之类的工具都需要自行修改这个字符串以符合他们的使用格式, 有些不方便。

    7 replies    2024-01-03 10:01:42 +08:00
    2wex
        1
    2wex  
       Jan 3, 2024
    `cat xxxxxxxx > /dev/tcp/127.0.0.1/80`
    2wex
        2
    2wex  
       Jan 3, 2024   ❤️ 1
    或者 netcat `nc 127.0.0.1 80` 然后粘贴原始数据
    chackchackGO
        3
    chackchackGO  
    OP
       Jan 3, 2024
    @2wex 有在用, 但是偶尔看不到响应。 目前姑且用 burp 的 repeater 了。
    jifengg
        4
    jifengg  
       Jan 3, 2024
    我记得 Fiddler Classic 的 Composer 是可以的。选到“Raw”
    moonheart
        5
    moonheart  
       Jan 3, 2024
    https://github.com/Huachao/vscode-restclient

    可以直接粘贴原始请求
    proxytoworld
        6
    proxytoworld  
       Jan 3, 2024
    修改哪个字符串,另外你要发送 raw 的 http 的话可以用 nuclei ,一个 yaml 搞定,你这是测试目录穿越吧
    ThirdFlame
        7
    ThirdFlame  
       Jan 3, 2024
    nc xx.xx.xxx.xx 8081 < 1.txt
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4992 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 09:43 · PVG 17:43 · LAX 02:43 · JFK 05:43
    ♥ Do have faith in what you're doing.