{"id":67630,"date":"2020-04-17T17:18:52","date_gmt":"2020-04-17T09:18:52","guid":{"rendered":"http:\/\/4563.org\/?p=67630"},"modified":"2020-04-17T17:18:52","modified_gmt":"2020-04-17T09:18:52","slug":"%e5%88%86%e4%ba%ab%e4%b8%aa%e3%80%90%e6%8c%82%e6%9c%ba%e5%b8%ae%e3%80%91%e7%ad%be%e5%88%b0%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=67630","title":{"rendered":"\u5206\u4eab\u4e2a\u3010\u6302\u673a\u5e2e\u3011\u7b7e\u5230\u811a\u672c"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u4f3c\u6bdb\u975e\u6bdb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u5206\u4eab\u4e2a\u3010\u6302\u673a\u5e2e\u3011\u7b7e\u5230\u811a\u672c<\/h3>\n<p>  \t\t\u4e0d\u60f3\u73a9\u4e86\u3002\u3002\u8c8c\u4f3c\u5149\u8fde\u7eed\u7b7e\u5230\u4e00\u4e2a\u6708\u5c31\u80fd\u67094\u5757\u3002\u3002\u4f46\u662f\u4e00\u5b9a\u8981\u6709\u6302\u673a\u9879\u76ee\u624d\u80fd\u63d0\u73b0\u3002\u3002<\/p>\n<p>  \u63d0\u73b0\u9700\u8981\u771f\u5b9e\u59d3\u540d\u548c\u8eab\u4efd\u8bc1\u53f7\u3002\u3002\u4e0d\u60f3\u641e\u4e86~~<\/p>\n<p>  \u4e91\u51fd\u6570\u90e8\u7f72~~<\/p>\n<p>  \u5931\u8d25SERVER\u9171\u901a\u77e5\u3002\u3002<\/p>\n<p>  # -*- coding: utf8 -*-<\/p>\n<p>  import requests<br \/>  import re<br \/>  import time<br \/>  from urllib.parse import quote<\/p>\n<p>  def&nbsp; &nbsp; &nbsp; &nbsp; start():<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; try:<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s =&nbsp; &nbsp; &nbsp; &nbsp; requests.session()<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; headers1 = {<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8216;X-Requested-With&#8217;:&#8217;XMLHttpRequest&#8217;,<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8216;User-Agent&#8217;: &#8216;Mozilla\/5.0 (Windows NT 10.0; WOW64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/64.0.3282.204 Safari\/537.36&#8217;}<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; username = &#8216;\u7528\u6237\u540d&#8217;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; password = &#8216;\u5bc6\u7801&#8217;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; login_url =&nbsp; &nbsp; &nbsp; &nbsp; &#8216;http:\/\/www.guajibang.com\/index.asp?type=loginform&amp;json=y&#8217;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; res1 = s.post(login_url, {&quot;account&quot;: username, &#8216;password&#8217;: password, &#8216;verifyCode&#8217;:&#8221;, &#8216;previous&#8217;:&#8217;http:\/\/www.guajibang.com\/&#8217;},headers=headers1).text<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print(res1)<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #exit()<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #\u7b7e\u5230&nbsp; &nbsp; &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; headers1 = {&#8216;x-requested-with&#8217;:&#8217;XMLHttpRequest&#8217;}<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; qd_res = s.post(url =&#8217;http:\/\/www.guajibang.com\/?type=signinStart&#8217;,headers=headers1, ).text<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print(qd_res)<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #\u83b7\u53d6\u79ef\u5206<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; user_info =&nbsp; &nbsp; &nbsp; &nbsp; s.get(&#8216;http:\/\/www.guajibang.com\/?user.html&#8217;).text<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; current_money =&nbsp; &nbsp; &nbsp; &nbsp; re.search(r'&lt;font color=&quot;#EC7357&quot;&gt;(d+)&lt;\/font&gt;&#8217;, user_info).group(1)<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print(&quot;\u7528\u6237%s\u7684\u90a6\u5e01\u4e3a%s&quot; % (username, current_money))<\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; except Exception as e:<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; print(&quot;\u7b7e\u5230\u5931\u8d25\uff0c\u901a\u77e5SERVER\u9171\uff01&quot;)<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; requests.get(&#8216;https:\/\/sc.ftqq.com\/SCU3493&#8230;.[\u6362\u6210\u81ea\u5df1\u7684SERVER\u9171\u5730\u5740]&#8230;&#8230;&#8230;d597bf5e857.send?text=&#8217; + quote(&#8216;guajibang\u81ea\u52a8\u7b7e\u5230\u5931\u8d25~&#8217;+time.strftime(&#8216;%Y.%m.%d&#8217;,time.localtime(time.time()))) +&#8217;&amp;desp=&#8217;+quote(&#8216;\u5f02\u5e38\u4ee3\u7801\uff1an&#8217;+str(e)))<\/p>\n<p>  def&nbsp; &nbsp; &nbsp; &nbsp; main_handler(event,&nbsp; &nbsp; &nbsp; &nbsp; context):<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; return start()<\/p>\n<p>  if __name__&nbsp; &nbsp; &nbsp; &nbsp; == &#8216;__main__&#8217;:<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; start()<\/p>\n<p>  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>zzidc<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 zzidc \u4e8e 2020-4-17 17:13 \u7f16\u8f91 <\/p>\n<p> \u611f\u8c22\u697c\u4e3b\u5206\u4eab:)\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>sh3dowin<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e00\u4e2a\u67084\u5757\uff0c\u4e0d\u5b9e\u540d\u8fd8\u80fd\u641e\u641e\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4f3c\u6bdb\u975e\u6bdb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tpython3.6<\/p>\n<p>  \u6302\u4e86\u534a\u4e2a\u6708\u4e86\u3002\u4e0d\u63d0\u4f9b\u6280\u672f\u652f\u6301\u3002\u3002\u4fee\u6539\u3002<\/p>\n<p>  \u7528\u6237\u540d\u3002<br \/>  \u5bc6\u7801<br \/>  SERVER\u9171\u5730\u5740<\/p>\n<p>  \u5c31OK\u4e86\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4f3c\u6bdb\u975e\u6bdb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tsh3dowin \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-17 17:12<br \/>  \u4e00\u4e2a\u67084\u5757\uff0c\u4e0d\u5b9e\u540d\u8fd8\u80fd\u641e\u641e<\/p>\n<p> \u662f\u7684\u3002\u63d0\u73b0\u53d1\u73b0\u8981\u5b9e\u540d\u3002\u3002\u7b97\u4e86\u3002\u3002\u7ed9\u4f53\u73b0\u8fc7\u7684\u4eba\u597d\u4e86\u3002\u3002\u5c0f\u9e21\u8fd8\u4e0d\u5982\u6302\u6d41\u91cf\u5b9d\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>sh3dowin<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4f3c\u6bdb\u975e\u6bdb \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-17 17:14<br \/>  \u662f\u7684\u3002\u63d0\u73b0\u53d1\u73b0\u8981\u5b9e\u540d\u3002\u3002\u7b97\u4e86\u3002\u3002\u7ed9\u4f53\u73b0\u8fc7\u7684\u4eba\u597d\u4e86\u3002\u3002\u5c0f\u9e21\u8fd8\u4e0d\u5982\u6302\u6d41\u91cf\u5b9d &#8230;<\/p>\n<p> \u6765\u64b8idena \u4e00\u5929\u81f3\u5c1130\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u897f\u5317\u8001\u6c49<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u770b\u5230\u8981\u5b9e\u540d\u5c31\u544a\u8f9e\u4e86:lol:lol&nbsp; &nbsp; \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>sunpma<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u624b\u52a8\u7b7e\u5230<br \/>  https:\/\/sunpma.com\/other\/loc<br \/>  \u81ea\u52a8\u7b7e\u5230<br \/>  https:\/\/sunpma.com\/612.html\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>maxmak1107<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tsh3dowin \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-17 17:16<br \/>  \u6765\u64b8idena \u4e00\u5929\u81f3\u5c1130<\/p>\n<p> \u8fd9\u4e48\u9ad8\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4f3c\u6bdb\u975e\u6bdb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tsunpma \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-17 17:21<br \/>  \u624b\u52a8\u7b7e\u5230<br \/>  https:\/\/sunpma.com\/other\/loc<br \/>  \u81ea\u52a8\u7b7e\u5230<\/p>\n<p> \u8fd9\u4e2a\u662f\u4e00\u4e2a\u7f51\u8d5a\u7f51\u7ad9\u7684\u7b7e\u5230\u3002\u4e0d\u662f\u8fd9\u4e2a\u8bba\u575b\u7684\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f3c\u6bdb\u975e\u6bdb \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u5206\u4eab\u4e2a\u3010&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\/67630"}],"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=67630"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/67630\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=67630"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=67630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}