{"id":725,"date":"2016-02-23T15:43:53","date_gmt":"2016-02-23T07:43:53","guid":{"rendered":"http:\/\/www.luwl.net\/?p=725"},"modified":"2016-02-24T11:01:48","modified_gmt":"2016-02-24T03:01:48","slug":"crysadm","status":"publish","type":"post","link":"http:\/\/www.luwl.net\/?p=725","title":{"rendered":"crysadm+\u642d\u5efa"},"content":{"rendered":"<p>\u6839\u636ehttp:\/\/blog.csdn.net\/haven200\/article\/details\/50636407\u5b9e\u8df5\u6210\u529f\u3002<br \/>\n\u4e3a\u4e86crysadm+\uff0c\u6211\u7279\u610f\u4e0b\u8f7d\u4e86kali2.0\u7cfb\u7edf\u3002<br \/>\nkali2.0\u7cfb\u7edf\u6709\u4e09\u4e2a\u7248\u672c\uff0cmini\u7248\/ligth\u7248\/\u5b8c\u6574\u7248\u3002<br \/>\nmini\u7248\u6700\u5c0f\uff0c\u4f46\u5f15\u5bfc\u540e\u53d1\u73b0\u9700\u8981\u8054\u7f51\u4e0b\u8f7d\u955c\u50cf\u624d\u80fd\u6b63\u5e38\u88c5\u3002<br \/>\nlight\u7248\u4e3a\u8f7b\u91cf\u7ea7\u7248\uff0c\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u6587\u6ca1\u6709\u95ee\u9898\uff0c\u4f46\u8fdb\u5165\u7cfb\u7edf\u540e\u4e2d\u6587\u4e0d\u80fd\u663e\u793a\u3002\u653e\u5f03\u3002<br \/>\n\u6700\u540e\u5b8c\u6574\u7248\u5b89\u88c5\u987a\u5229\uff0c\u81ea\u5e26\u4e86\u597d\u591a\u8f6f\u4ef6\u3002kali\u8fd9\u4e2a\u4e13\u4e1a\u7684\u7cfb\u7edf\u5e94\u8be5\u8fd8\u662f\u4e0d\u9519\u4e86\u3002<br \/>\nkali\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u66f4\u65b0\u5230\u6700\u65b0\u7cfb\u7edf\u53ef\u4ee5\u4f7f\u7528\u56fd\u5185\u7684\u6e90\uff0c\u901f\u5ea6\u5feb\u3002<br \/>\n\u8fdb\u5165\u7cfb\u7edf\u540e\u53ef\u4ee5\u6253\u5f00\/etc\/apt\/sources.list<br \/>\n\u66f4\u6539\u4e3a\u81ea\u5df1\u8f83\u5feb\u7684\u6e90\uff1a<br \/>\n#\u4e2d\u79d1\u5927kali\u6e90<br \/>\ndeb http:\/\/mirrors.ustc.edu.cn\/kali sana main non-free contrib<br \/>\ndeb http:\/\/mirrors.ustc.edu.cn\/kali-security\/ sana\/updates main contrib non-free<br \/>\ndeb-src http:\/\/mirrors.ustc.edu.cn\/kali-security\/ sana\/updates main contrib non-free<br \/>\n#\u963f\u91cc\u4e91kali\u6e90<br \/>\ndeb http:\/\/mirrors.aliyun.com\/kali sana main non-free contrib<br \/>\ndeb http:\/\/mirrors.aliyun.com\/kali-security\/ sana\/updates main contrib non-free<br \/>\ndeb-src http:\/\/mirrors.aliyun.com\/kali-security\/ sana\/updates main contrib non-free<br \/>\n\u6211\u9009\u62e9\u4e86\u963f\u91cc\u4e91\uff0c\u901f\u5ea6\u8fd8\u975e\u5e38\u5feb\u3002<br \/>\n\u4fdd\u5b58\u540e\u5bf9\u8f6f\u4ef6\u8fdb\u884c\u4e00\u6b21\u6574\u4f53\u66f4\u65b0\uff1a<br \/>\napt-get update &#038; apt-get upgrade<br \/>\napt-get dist-upgrade<br \/>\napt-get clean<br \/>\n\u81f3\u6b64\uff0ckali\u7cfb\u7edf\u90e8\u5206\u7684\u5de5\u4f5c\u5b8c\u6210\u3002<\/p>\n<p>crysadm+\u9700\u8981\u4e00\u4e9b\u7279\u5b9a\u7684\u73af\u5883\u624d\u80fd\u6b63\u5e38\u8fd0\u884c\u3002<br \/>\n1. \u5b89\u88c5Python3.4+\uff0c\u6211\u4eec\u8fd9\u91cc\u5b89\u88c5python3.4\u7248\u672c<br \/>\n:~$ sudo apt-get update<br \/>\n:~$ sudo apt-get install python3.4 python3.4-dev  <\/p>\n<p>2. \u5b89\u88c5redis-server\uff0crequests\uff0cflask<br \/>\n:~$ sudo apt-get install redis-server python3-flask python3-requests python3-redis  <\/p>\n<p>3. \u8bbe\u7f6eredis-server<br \/>\n:~$ sudo vim \/etc\/redis\/redis.conf<br \/>\n&#8230;..<br \/>\nport 6379  #\u67e5\u770b\u6b64\u8bbe\u7f6e\u662f\u5426\u4e3a6379<br \/>\n&#8230;..<br \/>\n:~$ sudo systemctl restart redis-server.service<br \/>\n:~$ redis-cli<br \/>\n127.0.0.1:6379>   # \u663e\u793a\u6b64\u884c\u4ee3\u8868redis-server\u8bbe\u7f6e\u6210\u529f\uff0c\u5982\u679c\u6ca1\u6709\u663e\u793a\u6b64\u884c\uff0c\u4ee3\u8868redis\u914d\u7f6e\u6709\u95ee\u9898\uff0c\u8bf7\u81ea\u884cgoogle\u89e3\u51b3<br \/>\n127.0.0.1:6379>exit<br \/>\n:~$<br \/>\n4. \u5b89\u88c5\u8fc5\u96f7\u4e91\u76d1\u5de5(Crysadm)<br \/>\n# \u6b64\u5e93\u4e3a\u5f53\u524d2016-02-04\u6700\u65b0\u7248\uff0c\u53ef\u4ee5\u6b63\u5e38\u7ba1\u7406\u8d5a\u94b1\u5b9d\uff0c\u4f46\u7f3a\u5c11config.py\u6587\u4ef6\uff0c\u6240\u4ee5\u9700\u8981\u4ece\u5176\u5b83\u5e93\u91cc\u4e0b\u8f7d\u6b64\u6587\u4ef6<br \/>\n:~$ git clone https:\/\/github.com\/sanzuwu\/crysadm.git<br \/>\n:~$ cd crysadm<br \/>\n# \u6b64\u5e93\u7f3a\u5c11config.py,\u6240\u4ee5\u6211\u4eec\u53bbgithub\u4e2d\u7684\u5176\u5b83crysadm\u4e0b\u8f7dconfig.py<br \/>\n:crysadm$ wget https:\/\/raw.githubusercontent.com\/zhansw\/crysadm\/master\/config.py.example<br \/>\n:crysadm$ mv config.py.example config.py  <\/p>\n<p>5. \u542f\u52a8\u8fc5\u96f7\u4e91\u76d1\u5de5(Crysadm)<br \/>\n:crysadm$ sudo python3.4 crysadm_helper.py &#038;<br \/>\n:crysadm$ sudo python3.4 crysadm.py &#038;  <\/p>\n<p>\u7528\u6d4f\u89c8\u5668\u6253\u5f00http:\/\/127.0.0.1:5000\/install\uff0c\u6b64\u9875\u9762\u53ea\u663e\u793a\u4e00\u6b21\uff0c\u6240\u4ee5\u8bf7\u8bb0\u4f4f\u6b64\u9875\u9762\u4e0a\u7684\u7528\u6237\u540d\u4e0e\u5bc6\u7801<\/p>\n<p>\u95ee\u98981\uff1a\u5fd8\u8bb0\u7528\u6237\u540d\u4e0e\u5bc6\u7801\u4e86\uff0c\u5982\u4f55\u91cd\u7f6ecrysadm\uff1f<br \/>\n view plain copy \u5728CODE\u4e0a\u67e5\u770b\u4ee3\u7801\u7247\u6d3e\u751f\u5230\u6211\u7684\u4ee3\u7801\u7247<br \/>\n# \u4e00\u5b9a\u8981\u505c\u6b62crysadm\u4e0eredis-server<br \/>\n# \u4e00\u5b9a\u8981\u505c\u6b62crysadm\u4e0eredis-server<br \/>\n:~$ sudo killall python3.4<br \/>\n:~$ sudo systemctl stop redis-server.service  <\/p>\n<p># \u5982\u679c\u4f60\u7684redis-server\u4e3a\u9ed8\u8ba4\u7684\uff0c\u5219\u5176\u6570\u636e\u5e93\u5b58\u50a8\u5728var\/lib\/redis\/dump.rdb\uff0c\u5220\u9664\u5176\u5373\u53ef<br \/>\n# \u5982\u679c\u4f60\u4fee\u6539\u4e86redis-server\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u8bf7\u81ea\u884c\u5220\u9664\u5176\u7684\u7f13\u5b58\u6587\u4ef6<br \/>\n# PS\uff1a\u5220\u9664\u6b64\u6587\u4ef6\u540e\uff0ccrysadm\u4e2d\u6dfb\u52a0\u7684\u6c34\u6676\u5e10\u53f7\u7b49\u76f8\u5173\u7684\u4fe1\u606f\u4f1a\u5168\u90e8\u6d88\u5931<br \/>\n:~$ sudo rm \/var\/lib\/redis\/dump.rdb  <\/p>\n<p># \u542f\u52a8redis-server\u4e0ecrysadm<br \/>\n:~$ sudo systemctl start redis-server.service<br \/>\n:~$ sudo python3.4 ~\/crysadm\/crysadm.py &#038;<br \/>\n:~$ sudo python3.4 ~\/crysadm\/crysadm_helper.py &#038;  <\/p>\n<p># \u7528\u6d4f\u89c8\u5668\u6253\u5f00http:\/\/127.0.0.1:5000\/install\uff0c\u4f1a\u518d\u6b21\u663e\u793a\u7528\u6237\u540d\u4e0e\u5bc6\u7801<br \/>\n\u95ee\u98982\uff1a\u5982\u4f55\u4fee\u6539crysadm\u7f51\u7ad9\u7684\u7aef\u53e3\uff1f<br \/>\n view plain copy \u5728CODE\u4e0a\u67e5\u770b\u4ee3\u7801\u7247\u6d3e\u751f\u5230\u6211\u7684\u4ee3\u7801\u7247<br \/>\n# \u4fee\u6539config.py<br \/>\n:~$ vim ~\/crysadm\/config.py<br \/>\n&#8230;.<br \/>\nclass Config(object):<br \/>\n&#8230;.<br \/>\n    SERVER_PORT = 5000  # \u4fee\u6539\u6b64\u53d8\u91cf\u5373\u53ef\uff0c\u5982\u6539\u4e3a80  <\/p>\n<p># \u91cd\u542fcrysadm\u4e0eredis-server<br \/>\n# \u7528\u6d4f\u89c8\u5668\u6253\u5f00http:\/\/127.0.0.1\/\u5373\u53ef  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6839\u636ehttp:\/\/blog.csdn.net\/haven200\/article\/ &hellip; <a href=\"http:\/\/www.luwl.net\/?p=725\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-725","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.luwl.net\/index.php?rest_route=\/wp\/v2\/posts\/725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.luwl.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.luwl.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.luwl.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.luwl.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=725"}],"version-history":[{"count":3,"href":"http:\/\/www.luwl.net\/index.php?rest_route=\/wp\/v2\/posts\/725\/revisions"}],"predecessor-version":[{"id":728,"href":"http:\/\/www.luwl.net\/index.php?rest_route=\/wp\/v2\/posts\/725\/revisions\/728"}],"wp:attachment":[{"href":"http:\/\/www.luwl.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.luwl.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=725"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.luwl.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}