{"id":512336,"date":"2021-06-13T10:34:18","date_gmt":"2021-06-13T02:34:18","guid":{"rendered":"http:\/\/4563.org\/?p=512336"},"modified":"2021-06-13T10:34:18","modified_gmt":"2021-06-13T02:34:18","slug":"%e4%ba%91%e5%87%bd%e6%95%b0%e6%97%a0%e6%b3%95%e5%86%99%e5%85%a5","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=512336","title":{"rendered":"\u4e91\u51fd\u6570\u65e0\u6cd5\u5199\u5165"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1> \u4e91\u51fd\u6570\u65e0\u6cd5\u5199\u5165 <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhuangzhelia9908 <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> import string<br \/>import requests<br \/>SCKEY = &#8216;666&#8217;<br \/>url2 = &#8216;https:\/\/api.tokyo.biliob233.com\/user\/check-in&#8217;<br \/>cookie2 = &#8216;666&#8217;<br \/>def it():<br \/> headers = {<br \/> &#8216;user-agent&#8217;: &#8216;Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/80.0.3987.163 Safari\/537.36&#8217;, &#8216;cookie&#8217;: cookie2<br \/> }<br \/> res = requests.post(url=url2, headers=headers).text<br \/> f = open(&#8220;bilibiliob.txt&#8221;, &#8216;w+&#8217;)<br \/> f.write(res)<br \/> f.close()<br \/># \u5fae\u4fe1\u63a8\u9001<br \/>ssckey = SCKEY<br \/>send_url = &#8216;https:\/\/sc.ftqq.com\/&#8217; + ssckey + &#8216;.send&#8217;<br \/>with open(&#8216;bilibiliob.txt&#8217;, &#8216;a+&#8217;) as f2:<br \/> text = f2.read()<br \/> punctuation_string = string.punctuation<br \/>for i in punctuation_string:<br \/> text = text.replace(i, &#8221;)<br \/>if &#8216;code1msg \u672a\u767b\u5f55&#8217; or &#8216;code1msg \u5df2\u7ecf\u7b7e\u8fc7\u5230\u4e86&#8217; in text:<br \/> params = {<br \/> &#8216;text&#8217;: &#8216;bilibiliob \u7b7e\u5230\u5931\u8d25\u63d0\u9192&#8217;<br \/> }<br \/>else:<br \/> params = {<br \/> &#8216;text&#8217;: &#8216;bilibiliob \u7b7e\u5230\u63d0\u9192&#8217;<br \/> }<br \/>requests.post(send_url, params=params)<br \/>def main_handler(event, context):<br \/> return it()<br \/>if __name__ == &#8216;__main__&#8217;:<br \/> it()<br \/>\u7a0b\u5e8f\u80fd\u884c\u4e86\uff0c\u53ef\u653e\u5728\u4e91\u51fd\u6570\u4e0a\u4e0d\u884c\uff0c\u8bf7\u95ee\u600e\u4e48\u8ba9\u4e91\u51fd\u6570\u80fd\u8bfb\u5199\u6587\u4ef6\uff0c\u6216\u8005\u8ba9\u7a0b\u5e8f\u4e0d\u9700\u8981\u521b\u5efa\u6587\u4ef6\u5c31\u80fd\u6267\u884c  <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>13<\/span>) <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"6039777\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : l4ever <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u6211\u5e2e\u4f60\u683c\u5f0f\u5316\u4e00\u4e0b https:\/\/paste.ubuntu.com\/p\/Tg2t3jzXVH\/ <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"6039778\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ihipop <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u4e00\u822c\u4e91\u51fd\u6570\u90fd\u6709\u4e2a\u53ef\u5199\u7684\u7a7a\u95f4\u6709\u9650\u7684 tmp \u76ee\u5f55\u7684\uff0c\u6587\u4ef6\u4e0d\u5927\u7684\u8bdd\u5199\u90a3\u91cc\u9762\u5c31\u884c\u4e86\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"6039779\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u8bf7\u5b66 Python <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"6039780\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : graetdk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u817e\u8baf\u4e91\u4e91\u51fd\u6570\u7684\u53ef\u5199\u76ee\u5f55\u662f \/tmp\/\uff0c\u4f60\u8981\u5199\u7684\u8bdd\u9700\u8981\u5728\u8fd9\u4e2a\u76ee\u5f55\u91cc\u5199 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"6039781\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : l4ever <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u7ed9\u4f60\u6539\u6539<br \/>https:\/\/paste.ubuntu.com\/p\/Bz6t3wGh2q\/ <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"6039782\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zhuangzhelia9908 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @l4ever \u611f\u8c22 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"6039783\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zhuangzhelia9908 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @graetdk \u6211\u627e\u4e0d\u5230\uff1e\ufe4f\uff1c <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"6039784\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zhuangzhelia9908 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @graetdk \u9ebb\u70e6\u53d1\u4e2a\u5177\u4f53\u94fe\u63a5\u6216\u8005\u56fe\u7247\u94fe\u63a5\uff0c\u8c22\u8c22 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"6039785\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cdlnls <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u4e0a\u9762\u8bf4\u7684\u53ef\u5199\u76ee\u5f55\u662f \/tmp\/ \uff0c\u4f60\u6253\u5f00\u6587\u4ef6\u7684\u65f6\u5019\u5c31\u8fd9\u6837\uff1af = open(&#8220;\/tmp\/hello.txt&#8221;,&#8221;w&#8221;)\uff0c\u52a0\u4e0a\u5177\u4f53\u7684\u8def\u5f84 \/tmp \u5c31\u53ef\u4ee5\u4e86\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"6039786\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zhuangzhelia9908 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div>  @cdlnls \u884c\u4e86\uff0c\u592a\u611f\u8c22\u4f60\u4e86 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"6039787\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zhuangzhelia9908 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @l4ever \u8fd9\u91cc\u53ea\u9700\u8981 session\uff0c\u600e\u4e48\u81ea\u52a8\u63d0\u53d6\u5b83 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"6039788\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u4f60\u628a\u4e00\u4e2a\u5b57\u7b26\u4e32\u5199\u5165\u4e00\u4e2a\u6587\u4ef6\uff0c\u518d\u4ece\u540c\u4e00\u4e2a\u6587\u4ef6\u628a\u5185\u5bb9\u8bfb\u51fa\u6765\uff0c\u5c5e\u4e8e\u5982\u871c\u4f20\u5982\u871c<br \/>\u6309 #1 \u7684\u683c\u5f0f\u5316\uff0c\u53bb\u6389 L13-L15,L21-L22\uff0c\u7136\u540e\u628a L23 \u964d\u4e00\u7ea7\u7f29\u8fdb\uff0c\u524d\u9762\u52a0\u4e00\u884c text=res \u5c31\u884c\u4e86<br \/>\u53cd\u6b63\u5904\u7406\u5b8c\u4e86\u6587\u4ef6\u4e5f\u4f1a\u88ab\u5220\uff0c\u4e91\u51fd\u6570\u561b\uff0c\u7528\u8fc7\u5c31\u4e22\u4e86\uff0c\u5b58\u6587\u4ef6\u5b8c\u5168\u6ca1\u5fc5\u8981\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"6039789\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zhuangzhelia9908 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @no1xsyzy \u77e5\u9053\u4e86\uff0c\u611f\u8c22 <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e91\u51fd\u6570\u65e0\u6cd5\u5199\u5165 \u8cc7\u6df1\u5927\u4f6c : zh&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\/512336"}],"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=512336"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/512336\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=512336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=512336"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=512336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}