这个第七步是判断有没有登陆成功,如果提示有登陆成功这四个源码,那这个逻辑判断就不执行,通常登陆不成功,只有验证码错误导致的。
POST /e/DoInfo/ecms.php HTTP/1.1
注意这里,他因为是HTTPS协义的,所以我们必须要用:443这样的方式进行发帖包。
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Cookie: [COOKIE缓存]
完整发包的时候,不要忘了调用缓存,这里不能写自动
Connection: keep-alive
Content-Length: 3869
content-type: multipart/form-data; boundary=----WebKitFormBoundarymTtJBGIzxZMS1VGL
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="enews"
MAddInfo
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="classid"
18
这个也是发帖版块分类,注意的是他和发帖版块ID是不同的,但有的又刚好是一样的。
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="id"
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="filepass"
[当前时间字符串]
这个其实是时间,但网站对于这个参数并不感兴趣。有的网站严格,会很在乎这个参数。
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="mid"
18
注意这个是发帖子版块网址ID
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="title"
{获取列表值}总标题总内容|标题|自动{/获取列表值}
这里调用的是标题列表。
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="newstime"
2021-05-13 02:07:36
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="typpe"
我求租
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="jushi"
1间
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="dressroom"
1间
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="typee"
House
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="price"
5222
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="address"
{获取列表值}总标题总内容|标题|自动{/获取列表值}
这里调用的是地址,直接调用的也是标题写法。
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="phone"
[文本框:手机]
这个手机号码是调用点开始按钮的那个手机号码。
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="email"
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="wechat"
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="QQ"
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="addwater"
1
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="mcreatespic"
1
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="mcreatespicwidth"
105
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="mcreatespicheight"
118
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="pic1file"; filename=""
Content-Type: application/octet-stream
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="pic2file"; filename=""
Content-Type: application/octet-stream
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="pic3file"; filename=""
Content-Type: application/octet-stream
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="pic4file"; filename=""
Content-Type: application/octet-stream
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="pic5file"; filename=""
Content-Type: application/octet-stream
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="content"
{获取列表值}总标题总内容|内容|自动{/获取列表值}
这个是发帖内容。
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="key"
[验证码识别结果]
------WebKitFormBoundarymTtJBGIzxZMS1VGL
Content-Disposition: form-data; name="addnews"
提交
------WebKitFormBoundarymTtJBGIzxZMS1VGL--
这个逻辑判断是判断当发帖成功后就去采采网址,网站这样就做完了,但是POST包肯定是比较复杂一些的。