{"id":973,"date":"2021-07-05T21:04:02","date_gmt":"2021-07-06T01:04:02","guid":{"rendered":"http:\/\/darthjedi.logiodice.com\/?p=973"},"modified":"2021-07-05T21:04:02","modified_gmt":"2021-07-06T01:04:02","slug":"building-gnudisassembler-for-ghidra-on-kali-2020-3","status":"publish","type":"post","link":"https:\/\/darthjedi.logiodice.com\/?p=973","title":{"rendered":"Building GnuDisassembler for Ghidra on Kali 2020.3"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Let me save you all an hour+ of your life.\u00a0 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Grab the latest version of Ghidra: https: <a href=\"https:\/\/ghidra-sre.org\/\">https:\/\/ghidra-sre.org\/<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use the Ghidra GUI to install the GnuDisassembler and the SleighDevTools. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Install the following dependencies to Kali: <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>flex<\/p><p>bison<\/p><p>texinfo<\/p><p>zlib1g-dev<\/p><p>grade<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Download the latest binutils source into your ~\/.ghidra\/ghidra_&lt;version&gt;\/ directory.\u00a0 Link for the right version can be found in the build.gradle file in that directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Set your GHIDRA_INSTALL_DIR to the location of your ghidra install (mine was \/opt\/ghidra\/ghidra_&lt;version&gt;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check your version of gradle:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>gradle &#8211;version<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Compare the version of gradle Kali installed, to the required version listed in the \/Ghidra\/application.properties file from the source for the version of ghidra you installed. <\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p>Kali installed version 4.4.1 for me, but the minimum for gradle for ghidra 10 is 6!!<\/p><\/blockquote><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If there is a version difference, download the binary for the right version of gradle and use that to run your build command..  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sad to say, I spent over an hour trying to debug completely ambiguous errors from gradle (e.g. Could not find method get() for arguments [] on platform &#8216;linux64&#8217; of type org.gradle.platform.internal.DefaultNativePlatform).<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>gradle build<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let me save you all an hour+ of your life.\u00a0 Grab the latest version of Ghidra: https: https:\/\/ghidra-sre.org\/ Use the Ghidra GUI to install the GnuDisassembler and the SleighDevTools. Install the following dependencies to Kali: flex bison texinfo zlib1g-dev grade Download the latest binutils source into your ~\/.ghidra\/ghidra_&lt;version&gt;\/ directory.\u00a0 Link for the right version can &hellip; <a href=\"https:\/\/darthjedi.logiodice.com\/?p=973\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Building GnuDisassembler for Ghidra on Kali 2020.3&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[53,25,28],"tags":[],"class_list":["post-973","post","type-post","status-publish","format-standard","hentry","category-hacking","category-security","category-technology"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/posts\/973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=973"}],"version-history":[{"count":0,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=\/wp\/v2\/posts\/973\/revisions"}],"wp:attachment":[{"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darthjedi.logiodice.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}