V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
d0a1ccec
V2EX  ›  程序员

关于一个投票的页面,想尽了办法,但是死活抓不到post投票的地址,大神们帮忙看看把

  •  
  •   d0a1ccec · 2012-09-05 10:54:04 +08:00 · 4481 次点击
    这是一个创建于 4263 天前的主题,其中的信息可能已经有所发展或是发生改变。
    9 条回复    1970-01-01 08:00:00 +08:00
    ong
        1
    ong  
       2012-09-05 11:01:25 +08:00
    function doSubmit
    DouO
        2
    DouO  
       2012-09-05 11:02:02 +08:00   ❤️ 1
    curl -X POST http://vh.jschina.com.cn/2012sjyy/vote.asp -d "txtID=0004&m=load"

    txtID 就是医院编号
    d0a1ccec
        3
    d0a1ccec  
    OP
       2012-09-05 11:02:36 +08:00   ❤️ 1
    @ong

    function doSubmit(id){
    document.frm.txtID.value = id;
    document.frm.action = "vote.asp?" + Math.random();
    document.frm.target = "w_hidden";
    //document.frm.encoding = "application/x-www-form-urlencoded";
    document.frm.submit();
    }

    看过了,"vote.asp?" + Math.random()

    不解啊。每次提交都是随机数
    d0a1ccec
        4
    d0a1ccec  
    OP
       2012-09-05 11:04:29 +08:00
    @DouO 囧,我乌龙了。原来txtid就是医院编号
    DouO
        5
    DouO  
       2012-09-05 11:04:47 +08:00
    @d0a1ccec 这个可以无视
    treo
        6
    treo  
       2012-09-05 11:05:55 +08:00   ❤️ 1
    这个不是吗

    POST http://vh.jschina.com.cn/2012sjyy/vote.asp?0.75825699427664 HTTP/1.1
    Accept: text/html, application/xhtml+xml, */*
    Referer: http://vh.jschina.com.cn/2012sjyy/
    Accept-Language: zh-CN,de-DE;q=0.5
    User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
    Content-Type: application/x-www-form-urlencoded
    Accept-Encoding: gzip, deflate
    Host: vh.jschina.com.cn
    Content-Length: 17
    Connection: Keep-Alive
    Pragma: no-cache
    Cookie: ASPSESSIONIDCQSQTDCQ=NOLIEKDDPKLEPPBAHLOLBPAP

    txtID=0006&m=load
    treo
        7
    treo  
       2012-09-05 11:06:56 +08:00
    来晚了,刚刚还没人回复呢。。
    d0a1ccec
        8
    d0a1ccec  
    OP
       2012-09-05 11:09:00 +08:00
    @treo 哈,这个随机的可以无视掉了

    看一下2楼~你就明白了
    enj0y
        9
    enj0y  
       2012-09-05 17:32:31 +08:00
    楼主,使用chrome开发者功能你就可以轻松抓包了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1107 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 19:30 · PVG 03:30 · LAX 12:30 · JFK 15:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.