{"id":152,"date":"2015-12-19T03:17:02","date_gmt":"2015-12-19T03:17:02","guid":{"rendered":""},"modified":"2015-12-19T03:17:02","modified_gmt":"2015-12-19T03:17:02","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=152","title":{"rendered":"zmap\u5b89\u88c5\u65b9\u6cd5\u6574\u7406"},"content":{"rendered":"<p>\n\t<strong>\u4e00\u3001Kali<\/strong>\n<\/p>\n<p>\n\t1\u3001sudo apt-get install build-essential cmake libgmp3-dev libpcap-dev gengetopt byacc flex\n<\/p>\n<p>\n\t2\u3001git clone git:\/\/github.com\/zmap\/zmap.git\n<\/p>\n<p>\n\t3\u3001cd zmap\/\n<\/p>\n<p>\n\t4\u3001cmake -DENABLE_HARDENING=ON\n<\/p>\n<p>\n\t5\u3001make\n<\/p>\n<p>\n\t6\u3001make install\n<\/p>\n<p>\n\t<strong>\u53ef\u80fd\u51fa\u9519\uff1a<\/strong>\n<\/p>\n<p>\n\t<strong>1.fatal error: unistr.h: No such file or directory\uff0c\u5219\u9700\u8981\u5b89\u88c5 libunistring-dev\u5e93\uff1a<\/strong> <br \/>\nsudo apt-get install libunistring-dev\n<\/p>\n<p>\n\t<strong>2.\u672a\u5b89\u88c5cmake\uff1a<\/strong>\n<\/p>\n<p>\u83b7\u53d6cmake 2.8.12\u6e90\u7801\u5305<br \/>\ncd \/root\/Downloads\/<br \/>\nwget <a href=\"http:\/\/www.cmake.org\/files\/v2.8\/cmake-2.8.12.1.tar.gz\">http:\/\/www.cmake.org\/files\/v2.8\/cmake-2.8.12.1.tar.gz<\/a><br \/>\ntar -xvzf cmake-2.8.12.1.tar.gz<br \/>\n&nbsp;\u7f16\u8bd1\u5e76\u5b89\u88c5cmake<br \/>\ncd cmake-2.8.12.1<br \/>\n.\/bootstrap<br \/>\nmake<br \/>\nmake install<br \/>\ncmake \u2013version<\/p>\n<p>\n\t<strong>3.\u672a\u5b89\u88c5json-c\uff1a<\/strong>\n<\/p>\n<p>\n\t\u83b7\u53d6json-c<br \/>\n$ git clone git:\/\/github.com\/json-c\/json-c.git<br \/>\n$ cd json-c<br \/>\n$ sh autogen.sh\n<\/p>\n<p>\n\t$ .\/configure<br \/>\n$ make<br \/>\n$ make install<br \/>\n$ make check<br \/>\n$ ldconfig&nbsp;\n<\/p>\n<p>\n\t<strong>4.\u5b89\u88c5json-c\u53ef\u80fd\u9700\u8981\u5b89\u88c5libtool\uff1a<\/strong>\n<\/p>\n<p>\n\tsudo apt-get install autoconf automake libtool\n<\/p>\n<p>\n\t<br \/>\n\u7f16\u8bd1\u5e76\u5b89\u88c5json-c<br \/>\n$ .\/configure<br \/>\n$ make<br \/>\n$ make install<br \/>\n$ make check<br \/>\n$ ldconfig&nbsp;&nbsp;\n<\/p>\n<p>\n\t<strong>5.<\/strong><strong>\u7f3a\u5c11gengetopt\u547d\u4ee4\uff1a<\/strong>\n<\/p>\n<p>\n\t\u5728gengetopt\u5b98\u65b9\u7f51\u7ad9\u4e0a\u8fdb\u5165ftp\u7ad9\u70b9\uff0c\u4e0b\u8f7d\u6700\u65b0\u7248\uff0croot\u6743\u9650\u4e0b\u6267\u884c.\/configure &amp; make &amp; make install\u5373\u53ef\n<\/p>\n<p>\n\t<br \/>\n<strong>\u4e8c\u3001CentOS<\/strong><strong>&nbsp;<\/strong>\n<\/p>\n<p>rpm -Uvh <a href=\"http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm\">http:\/\/dl.fedoraproject.org\/pub\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm<\/a><br \/>\nyum&nbsp; -y&nbsp; install&nbsp; zmap<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t\u53c2\u8003\uff1a\n<\/p>\n<p>\n\t<a href=\"http:\/\/www.dzwanli.com.cn\/?p=1253\">http:\/\/www.dzwanli.com.cn\/?p=1253<\/a>\n<\/p>\n<p>\n\t<a href=\"http:\/\/vipscu.blog.163.com\/blog\/static\/181808372201532714332980\/\">http:\/\/vipscu.blog.163.com\/blog\/static\/181808372201532714332980\/<\/a>\n<\/p>\n<p>\n\t<a href=\"http:\/\/r4bb17.com\/2015\/11\/zmap\/\">http:\/\/r4bb17.com\/2015\/11\/zmap\/<\/a>\n<\/p>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\n\t<strong>\u4e00\u3001Kali<\/strong>\n<\/p>\n<p>\n\t1\u3001sudo apt-get install build-essential cmake libgmp3-dev libpcap-dev gengetopt byacc flex\n<\/p>\n<p>\n\t2\u3001git clone git:\/\/github.com\/zmap\/zmap.git\n<\/p>\n<p>\n\t3\u3001cd zmap\/\n<\/p>\n<p>\n\t4\u3001cmake -DENABLE_HARDENING=ON\n<\/p>\n<p>\n\t5&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[321],"tags":[],"class_list":["post-152","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>zmap\u5b89\u88c5\u65b9\u6cd5\u6574\u7406 - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=152\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"zmap\u5b89\u88c5\u65b9\u6cd5\u6574\u7406 - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001Kali    1\u3001sudo apt-get install build-essential cmake libgmp3-dev libpcap-dev gengetopt byacc flex    2\u3001git clone git:\/\/github.com\/zmap\/zmap.git    3\u3001cd zmap\/    4\u3001cmake -DENABLE_HARDENING=ON    5...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=152\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-12-19T03:17:02+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=152#webpage\",\"url\":\"http:\/\/weizn.net\/?p=152\",\"name\":\"zmap\\u5b89\\u88c5\\u65b9\\u6cd5\\u6574\\u7406 - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"datePublished\":\"2015-12-19T03:17:02+00:00\",\"dateModified\":\"2015-12-19T03:17:02+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=152#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=152\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=152#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"zmap\\u5b89\\u88c5\\u65b9\\u6cd5\\u6574\\u7406\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=152#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=152#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"zmap\\u5b89\\u88c5\\u65b9\\u6cd5\\u6574\\u7406\",\"datePublished\":\"2015-12-19T03:17:02+00:00\",\"dateModified\":\"2015-12-19T03:17:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=152#webpage\"},\"wordCount\":166,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"articleSection\":[\"\\u5e94\\u7528\\u5b89\\u5168\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=152#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"zmap\u5b89\u88c5\u65b9\u6cd5\u6574\u7406 - Wayne&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/weizn.net\/?p=152","og_locale":"zh_CN","og_type":"article","og_title":"zmap\u5b89\u88c5\u65b9\u6cd5\u6574\u7406 - Wayne&#039;s Blog","og_description":"\u4e00\u3001Kali    1\u3001sudo apt-get install build-essential cmake libgmp3-dev libpcap-dev gengetopt byacc flex    2\u3001git clone git:\/\/github.com\/zmap\/zmap.git    3\u3001cd zmap\/    4\u3001cmake -DENABLE_HARDENING=ON    5...","og_url":"http:\/\/weizn.net\/?p=152","og_site_name":"Wayne&#039;s Blog","article_published_time":"2015-12-19T03:17:02+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=152#webpage","url":"http:\/\/weizn.net\/?p=152","name":"zmap\u5b89\u88c5\u65b9\u6cd5\u6574\u7406 - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"datePublished":"2015-12-19T03:17:02+00:00","dateModified":"2015-12-19T03:17:02+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=152#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=152"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=152#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"zmap\u5b89\u88c5\u65b9\u6cd5\u6574\u7406"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=152#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=152#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"zmap\u5b89\u88c5\u65b9\u6cd5\u6574\u7406","datePublished":"2015-12-19T03:17:02+00:00","dateModified":"2015-12-19T03:17:02+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=152#webpage"},"wordCount":166,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"articleSection":["\u5e94\u7528\u5b89\u5168"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=152#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=152"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/152\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=152"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}