{"id":110,"date":"2014-11-05T16:06:28","date_gmt":"2014-11-05T16:06:28","guid":{"rendered":""},"modified":"2014-11-05T16:06:28","modified_gmt":"2014-11-05T16:06:28","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=110","title":{"rendered":"Linux\u4e0bettercap\u7684\u5b89\u88c5"},"content":{"rendered":"<p>\n\tCentOS:\n<\/p>\n<p>\n\t\u4e00\u3001 \u5b89\u88c5libpcap\u8fc7\u7a0b\u53c2\u7167\u4ee5\u4e0b\u6b65\u9aa4\uff1a\n<\/p>\n<p>\n\t1\u3001\u6253\u5f00\u7f51\u5740\uff1awww.tcpdump.org\/ \u4e0b\u8f7d libpcap-1.0.0.tar.gz (512.0KB) \u8f6f\u4ef6\u5305\uff0c\u901a\u8fc7\u547d\u4ee4 tar zxvf libpcap-1.0.0.tar.gz \u89e3\u538b\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u653e\u5165\u81ea\u5b9a\u4e49\u7684\u5b89\u88c5\u76ee\u5f55\u3002\n<\/p>\n<p>\n\t2\u3001\u6253\u5f00\u7f51\u5740\uff1aflex.sourceforge.net\/ \u4e0b\u8f7d flex-2.5.35.tar.gz (1.40MB) \u8f6f\u4ef6\u5305\uff0c\u901a\u8fc7 tar zxvf flex-2.5.35.tar.gz \u89e3\u538b\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u653e\u5165\u4e0a\u8ff0\u81ea\u5b9a\u4e49\u7684\u5b89\u88c5\u76ee\u5f55\u4e2d\u3002\n<\/p>\n<p>\n\t\u6ce8\uff1a\u5982\u679c\u6ca1\u6709\u7f16\u8bd1\u5b89\u88c5\u6b64\u6587\u4ef6\uff0c\u5728\u7f16\u8bd1\u5b89\u88c5libpcap\u65f6\uff0c\u5c31\u4f1a\u51fa\u73b0 \u201cconfigure: error: Your operating system&#8217;s lex is insufficient to compile libpcap.\u201d\u7684\u9519\u8bef\u63d0\u793a\u3002\n<\/p>\n<p>\n\t3\u3001\u6253\u5f00\u7f51\u5740\uff1a<a style=\"color:#336699;text-decoration:none;\" href=\"ftp:\/\/ftp.gnu.org\/gnu\/bison\/\">ftp.gnu.org\/gnu\/bison\/<\/a> \u4e0b\u8f7d bison-2.4.1.tar.gz (1.9MB) \u8f6f\u4ef6\u5305\uff0c\u901a\u8fc7 tar zxvf bison-2.4.1.tar.gz \u89e3\u538b\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u653e\u5165\u4e0a\u8ff0\u81ea\u5b9a\u4e49\u7684\u5b89\u88c5\u76ee\u5f55\u4e2d\u3002\n<\/p>\n<p>\n\t\u6ce8\uff1a\u5982\u679c\u6ca1\u6709\u7f16\u8bd1\u5b89\u88c5\u6b64\u6587\u4ef6\uff0c\u5728\u7f16\u8bd1\u5b89\u88c5libpcap\u65f6\uff0c\u5c31\u4f1a\u51fa\u73b0 &#8220;configure: WARNING: don&#8217;t have both flex and bison; reverting to lex\/yacc checking for capable lex&#8230; insufficient&#8221; \u7684\u9519\u8bef\u63d0\u793a\u3002\n<\/p>\n<p>\n\t4\u3001\u6253\u5f00\u7f51\u5740\uff1a<a style=\"color:#336699;text-decoration:none;\" href=\"ftp:\/\/ftp.gnu.org\/gnu\/m4\/\">ftp.gnu.org\/gnu\/m4\/<\/a> \u4e0b\u8f7d m4-1.4.13.tar.gz (1.2MB)\u8f6f\u4ef6\u5305\uff0c\u901a\u8fc7 tar zxvf m4-1.4.13.tar.gz \u89e3\u538b\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u653e\u5165\u4e0a\u8ff0\u81ea\u5b9a\u4e49\u7684\u5b89\u88c5\u76ee\u5f55\u4e2d\u3002\n<\/p>\n<p>\n\t\u6ce8\uff1a\u5982\u679c\u6ca1\u6709\u7f16\u8bd1\u5b89\u88c5\u6b64\u6587\u4ef6\uff0c\u5728\u7f16\u8bd1\u5b89\u88c5bison-2.4.1\u65f6\uff0c\u5c31\u4f1a\u51fa\u73b0 \u201cconfigure: error: GNU M4 1.4 is required\u201d\u7684\u9519\u8bef\u63d0\u793a\u3002\n<\/p>\n<p>\n\t5\u3001\u800c\u540e\u4f9d\u6b21\u8fdb\u5165\u76ee\u5f55m4-1.4.13\uff0cbison-2.4.1\uff0cflex-2.5.35\uff0clibpcap-1.0.0 \u5e76\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a\n<\/p>\n<p>\n\t(sudo) .\/configure\n<\/p>\n<p>\n\t(sudo) make\n<\/p>\n<p>\n\t(sudo) make install\n<\/p>\n<p>\n\t\u4e8c.\u5b89\u88c5libnet&gt;=libnet-1.1.2.1\n<\/p>\n<p>\n\t\u4e09.\u5b89\u88c5ettercap\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\tubuntu:\n<\/p>\n<p>\n\tsudo apt-get install debhelper cmake bison flex libgtk2.0-dev libltdl3-dev libncurses-dev libncurses5-dev libnet1-dev libpcap-dev libpcre3-dev libssl-dev libcurl4-openssl-dev ghostscript&nbsp;\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\thttps:\/\/github.com\/Ettercap\/ettercap<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\n\t\u4e00\u3001 \u5b89\u88c5\u8fc7\u7a0b\u53c2\u7167\u4ee5\u4e0b\u6b65\u9aa4\uff1a\n<\/p>\n<p>\n\t1\u3001\u6253\u5f00\u7f51\u5740\uff1awww.tcpdump.org\/ \u4e0b\u8f7d libpcap-1.0.0.tar.gz (512.0KB) \u8f6f\u4ef6\u5305\uff0c\u901a\u8fc7\u547d\u4ee4 tar zxvf libpcap-1.0.0.tar.gz \u89e3\u538b\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u653e\u5165\u81ea\u5b9a\u4e49\u7684\u5b89\u88c5\u76ee\u5f55\u3002\n<\/p>\n<p>\n\t2\u3001\u6253\u5f00\u7f51\u5740\uff1aflex.sourceforge.net\/ \u4e0b\u8f7d flex-2.5.35.tar.gz (1.40MB) \u8f6f\u4ef6&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[332],"tags":[],"class_list":["post-110","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>Linux\u4e0bettercap\u7684\u5b89\u88c5 - 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=110\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux\u4e0bettercap\u7684\u5b89\u88c5 - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001 \u5b89\u88c5\u8fc7\u7a0b\u53c2\u7167\u4ee5\u4e0b\u6b65\u9aa4\uff1a    1\u3001\u6253\u5f00\u7f51\u5740\uff1awww.tcpdump.org\/ \u4e0b\u8f7d libpcap-1.0.0.tar.gz (512.0KB) \u8f6f\u4ef6\u5305\uff0c\u901a\u8fc7\u547d\u4ee4 tar zxvf libpcap-1.0.0.tar.gz \u89e3\u538b\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u653e\u5165\u81ea\u5b9a\u4e49\u7684\u5b89\u88c5\u76ee\u5f55\u3002    2\u3001\u6253\u5f00\u7f51\u5740\uff1aflex.sourceforge.net\/ \u4e0b\u8f7d flex-2.5.35.tar.gz (1.40MB) \u8f6f\u4ef6...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=110\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-11-05T16:06:28+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=110#webpage\",\"url\":\"http:\/\/weizn.net\/?p=110\",\"name\":\"Linux\\u4e0bettercap\\u7684\\u5b89\\u88c5 - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"datePublished\":\"2014-11-05T16:06:28+00:00\",\"dateModified\":\"2014-11-05T16:06:28+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=110#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=110\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=110#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\\u4e0bettercap\\u7684\\u5b89\\u88c5\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=110#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=110#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"Linux\\u4e0bettercap\\u7684\\u5b89\\u88c5\",\"datePublished\":\"2014-11-05T16:06:28+00:00\",\"dateModified\":\"2014-11-05T16:06:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=110#webpage\"},\"wordCount\":143,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"articleSection\":[\"Linux\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=110#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":"Linux\u4e0bettercap\u7684\u5b89\u88c5 - 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=110","og_locale":"zh_CN","og_type":"article","og_title":"Linux\u4e0bettercap\u7684\u5b89\u88c5 - Wayne&#039;s Blog","og_description":"\u4e00\u3001 \u5b89\u88c5\u8fc7\u7a0b\u53c2\u7167\u4ee5\u4e0b\u6b65\u9aa4\uff1a    1\u3001\u6253\u5f00\u7f51\u5740\uff1awww.tcpdump.org\/ \u4e0b\u8f7d libpcap-1.0.0.tar.gz (512.0KB) \u8f6f\u4ef6\u5305\uff0c\u901a\u8fc7\u547d\u4ee4 tar zxvf libpcap-1.0.0.tar.gz \u89e3\u538b\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u653e\u5165\u81ea\u5b9a\u4e49\u7684\u5b89\u88c5\u76ee\u5f55\u3002    2\u3001\u6253\u5f00\u7f51\u5740\uff1aflex.sourceforge.net\/ \u4e0b\u8f7d flex-2.5.35.tar.gz (1.40MB) \u8f6f\u4ef6...","og_url":"http:\/\/weizn.net\/?p=110","og_site_name":"Wayne&#039;s Blog","article_published_time":"2014-11-05T16:06:28+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=110#webpage","url":"http:\/\/weizn.net\/?p=110","name":"Linux\u4e0bettercap\u7684\u5b89\u88c5 - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"datePublished":"2014-11-05T16:06:28+00:00","dateModified":"2014-11-05T16:06:28+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=110#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=110"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=110#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"Linux\u4e0bettercap\u7684\u5b89\u88c5"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=110#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=110#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"Linux\u4e0bettercap\u7684\u5b89\u88c5","datePublished":"2014-11-05T16:06:28+00:00","dateModified":"2014-11-05T16:06:28+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=110#webpage"},"wordCount":143,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"articleSection":["Linux"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=110#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\/110","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=110"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/110\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}