{"id":192030,"date":"2020-10-31T21:57:56","date_gmt":"2020-10-31T13:57:56","guid":{"rendered":"http:\/\/4563.org\/?p=192030"},"modified":"2020-10-31T21:57:56","modified_gmt":"2020-10-31T13:57:56","slug":"%e7%88%ac%e8%99%ab-post-%e8%af%b7%e6%b1%82-data-%e4%b8%ba-list-%e7%9a%84%e6%83%85%e5%86%b5%e6%b1%82%e5%8a%a9","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=192030","title":{"rendered":"\u722c\u866b post \u8bf7\u6c42 data \u4e3a list \u7684\u60c5\u51b5\u6c42\u52a9"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u722c\u866b post \u8bf7\u6c42 data \u4e3a list \u7684\u60c5\u51b5\u6c42\u52a9               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : d0v0b <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u76ee\u524d\u60c5\u51b5\uff0c\u901a\u8fc7\u6e90 URL \u5f97\u5230 ajax\uff0c\u8fd9\u4e2a ajax \u5728\u82f1\u6587\u5173\u952e\u8bcd\u60c5\u51b5\u4e0b\u80fd\u8bf7\u6c42\u5230\u6570\u636e\uff0c\u4f46\u4e2d\u6587\u5173\u952e\u8bcd\u60c5\u51b5\u65e0\u6cd5\u8fd4\u56de\u503c \u521d\u6b65\u5224\u65ad\u662f encode \u7f16\u7801\u95ee\u9898\uff0c\u4f46\u5e38\u7528\u7684\u51e0\u4e2a\u90fd\u8bd5\u4e86\u5747\u4e0d\u884c\uff0c\u6c42\u52a9\uff0c\u611f\u8c22<\/p>\n<p>\u6e90 URL\uff1a http:\/\/ggzyjy.abazhou.gov.cn\/Jyweb\/searchList.aspx?searchName=%E9%87%87%E8%B4%AD&amp;Type=%E7%AB%99%E5%86%85%E6%90%9C%E7%B4%A2<\/p>\n<p>Ajax\uff1a http:\/\/ggzyjy.abazhou.gov.cn\/TrueLoreAjax\/TrueLore.Web.WebUI.AjaxHelper,TrueLore.Web.WebUI.ashx<\/p>\n<p>payload\uff1a[&#8220;TrueLore.Web.WebUI.WebAjaxService&#8221;,&#8221;SearchByCondition&#8221;,[0,15,&#8221;\u67e5\u8be2\u5173\u952e\u8bcd&#8221;,&#8221;&#8221;,200,670,190,410,3,&#8221;&#8221;,&#8221;&#8221;,&#8221;Fbqssj DESC&#8221;],None,None]&#8217;)<\/p>\n<p>&#8221;&#8217; #python<\/p>\n<pre><code>import requests import json  url = \"http:\/\/ggzyjy.abazhou.gov.cn\/TrueLoreAjax\/TrueLore.Web.WebUI.AjaxHelper,TrueLore.Web.WebUI.ashx\"  data = [\"TrueLore.Web.WebUI.WebAjaxService\",\"SearchByCondition\",[0,15,\"xe5x85xb3xe9x94xaexe8xafx8d\",\"\",200,670,190,410,3,\"\",\"\",\"Fbqssj DESC\"],None,None]  headers = {     'Ajax-method': 'AjaxMethodFactory',  # \u8fd9\u4e2a\u5f88\u91cd\u8981     'User-Agent': 'Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/75.0.3738.0 Safari\/537.36 Edg\/75.0.107.0' }  html = requests.post(url, headers=headers, data=json.dumps(data)) <\/code><\/pre>\n<p>&#8221;&#8217;<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4135316\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ila <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             eval \u6216 exec                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4135317\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ticotic <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             dumps \u628a&#8221;xe5x85xb3xe9x94xaexe8xafx8d&#8221;\u5f53\u6210 str \u8f6c\u4e49\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4135318\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sujin190 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8981\u7528 Unicode \u5b57\u7b26\u4e32\u554a\uff0c\u7136\u540e\u53ef\u4ee5\u8bd5\u8bd5\u8fd9\u6837 json.dumps(result, ensure_ascii=False).encode(&#8220;utf-8&#8221;)\uff0c\u57fa\u672c\u5c31\u548c\u6d4f\u89c8\u5668\u4e00\u81f4\u4e86\uff0c\u4e0d\u52a0 ensure_ascii \u5728 encode \u4e2d\u6587\u4f1a\u53d8\u6210u \u8f6c\u4e49\u8f93\u51fa\uff0c\u4f3c\u4e4e\u5bf9\u65b9\u4e0d\u652f\u6301\u5904\u7406u \u8f6c\u4e49\uff0c\u800c\u4e14\u4f3c\u4e4e\u8fd9\u4e2a json \u540e\u9762\u8fd8\u5e94\u8be5\u6709\u4e2a\u65f6\u95f4\u6233\u554a\uff0c\u6ce8\u610f\u770b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u722c\u866b post \u8bf7\u6c42 data \u4e3a&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/192030"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=192030"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/192030\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192030"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}