{"id":47,"date":"2008-06-17T04:44:00","date_gmt":"2008-06-17T09:44:00","guid":{"rendered":"http:\/\/www.rajatswarup.com\/blog\/?p=47"},"modified":"2010-02-10T23:40:54","modified_gmt":"2010-02-11T04:40:54","slug":"installing-firewalk-on-kubuntu","status":"publish","type":"post","link":"https:\/\/www.rajatswarup.com\/blog\/2008\/06\/17\/installing-firewalk-on-kubuntu\/","title":{"rendered":"Installing Firewalk on KUbuntu"},"content":{"rendered":"<p>Installing <a href=\"http:\/\/www.packetfactory.net\/projects\/firewalk\/\">Firewalk<\/a> turned out to be more complicated than I thought it would be.  There were some compilation issues and some library errors.<br \/>The chief amongst them was:<\/p>\n<pre><br \/>checking for arp_get in -ldnet... no<br \/>configure: error: No libdnet?  http:\/\/libdnet.sourceforge.net.<\/pre>\n<p>I did install libdnet using aptitude but it did not do the trick.  Thereafer, searching a few forums got me this information.  The &#8220;Libdnet&#8221; that Firewalk looks for is libdumbnet1 in the ubuntu language.<br \/>So I got the Debian packages from the following links:<br \/><a style=\"font-family: courier new;\" href=\"http:\/\/http.us.debian.org\/debian\/pool\/main\/libd\/libdumbnet\/libdumbnet1_1.8-1.4_i386.deb\">libdnet1<\/a><br \/><a style=\"font-family: courier new;\" href=\"http:\/\/http.us.debian.org\/debian\/pool\/main\/libd\/libdumbnet\/libdumbnet-dev_1.8-1.4_i386.deb\">libdnet-dev<\/a><br \/>I continued to get that error and no wonder because there was nothing in \/usr\/lib.<br \/>So I executed the following commands :<\/p>\n<pre><br \/>$ cd \/usr\/lib<br \/>$ sudo ln -s libdumbnet.so libdnet.so<br \/>$ cd \/usr\/include<br \/>$ sudo ln -s dumbnet.h dnet.h<\/pre>\n<p>Then there was a compilation error:<\/p>\n<pre><br \/>firewalk.c: In function \u2018firewalk\u2019:<br \/>firewalk.c:193: error: label at end of compound statement<br \/>make[1]: *** [firewalk.o] Error 1<br \/>make[1]: Leaving directory `\/home\/trance\/Desktop\/Firewalk\/src'<br \/>make: *** [all-recursive] Error 1<\/pre>\n<p>So then opening the firewalk.c file in vim (and following up on line 193) showed that the &#8220;break;&#8221; statement was missing after default: switch statement.<br \/>So then I added the the following characters (without quotes) &#8220;break;&#8221; at a line above the comment as shown below:<\/p>\n<pre><br \/>                    default:<br \/>                        break;<br \/>                        \/* empty *\/<\/pre>\n<p><\/p>\n<pre><br \/>$ .\/configure<br \/>$ make<br \/>$ sudo make install<br \/>$ sudo cp man\/firewalk.8 \/usr\/local\/man\/man8<\/pre>\n<p>Now firewalk was installed and ready to use!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing Firewalk turned out to be more complicated than I thought it would be. There were some compilation issues and some library errors.The chief amongst them was: checking for arp_get in -ldnet&#8230; noconfigure: error: No libdnet? http:\/\/libdnet.sourceforge.net. I did install libdnet using aptitude but it did not do the trick. Thereafer, searching a few forums [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[230,197],"tags":[285,229,284,286,465],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-howto","category-tools","tag-compilation","tag-error","tag-firewalk","tag-penetration-testing","tag-tools"],"_links":{"self":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":1,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"predecessor-version":[{"id":124,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/posts\/47\/revisions\/124"}],"wp:attachment":[{"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rajatswarup.com\/blog\/wp-json\/wp\/v2\/tags?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}